MyOG Checker

v0.1.1
social.myog/checker Checked 4 days ago Published 1 month ago

Check a public page's static Open Graph and Twitter metadata locally.

Check one public page's static Open Graph and Twitter metadata from a CLI or a local stdio MCP server. Both interfaces run the same check on your machine. It reads the HTML the page returns and reports explicit tags, effective metadata fallbacks and findings such as missing or conflicting tags. It does not generate images, take screenshots, run JavaScript or fetch the images it reports. The check runs locally. Requests go from your machine straight to the page you name and its redirects, not through a hosted MyOG API. No MyOG account, API key or subscription is needed.

Summary extracted from the README.

myog-checker

Check one public page's static Open Graph and Twitter metadata from a CLI or a local stdio MCP server. Both interfaces run the same check on your machine.

It reads the HTML <head> the page returns and reports explicit tags, effective metadata fallbacks and findings such as missing or conflicting tags. It does not generate images, take screenshots, run JavaScript or fetch the images it reports.

The check runs locally. Requests go from your machine straight to the page you name and its redirects, not through a hosted MyOG API. No MyOG account, API key or subscription is needed. You own the network traffic and the results.

Requirements

Node.js 22.19.0 or later.

CLI

The package installs two commands: myog-check (CLI) and myog-check-mcp (stdio MCP server). Neither matches the package name, so name the command explicitly when running without installing:

npm exec --yes --package=myog-checker@0.1.1 -- myog-check check https://example.com/
npm exec --yes --package=myog-checker@0.1.1 -- myog-check check https://example.com/ --json
npm exec --yes --package=myog-checker@0.1.1 -- myog-check --help

Or install it into a project and run the local bin:

npm install myog-checker@0.1.1
npx --no-install myog-check check https://example.com/ --json

Use only public URLs. Do not pass signed links, tokens or customer data. Shell history may keep the arguments you type.

MCP server

Configure a stdio-capable MCP client to start the server. A typical client configuration, to adapt for your client:

{
  "mcpServers": {
    "myog-checker": {
      "command": "npm",
      "args": ["exec", "--yes", "--package=myog-checker@0.1.1", "--", "myog-check-mcp"]
    }
  }
}

If you installed the package, you can instead point command at /path/to/project/node_modules/.bin/myog-check-mcp. Pin a version so the client does not pick up a new release unexpectedly.

The server registers one tool, check_og_metadata, which takes {"url":"https://example.com/"}. Listing tools does not fetch anything. It registers no prompts or resources. Stdout carries only protocol messages. This package makes no claim about compatibility with any particular assistant app, marketplace or directory listing.

Agent skill

skill/SKILL.md in the package is a short usage guide for coding agents that support skills. Copy it into your agent's skills directory if you want one. The package does not install it anywhere.

Results and errors

JSON and MCP structured output share schemaVersion: 1 and an ok discriminant. ok: true means a metadata report was produced, including for HTTP errors and pages with findings. It does not mean the page passed. Read findings (code, severity, optional field, message). The report also contains effective metadata, explicit tags, the HTTP status, page URLs with query values redacted, limits and the work it did not do (unchecked).

ok: false has error.code and a fixed error.message, with no raw input URL, upstream exception or body. Codes: invalid_arguments, invalid_url, blocked_url, dns_error, timeout, cancelled, too_large, too_many_redirects, invalid_redirect, non_html, unsupported_encoding, network_error, busy, internal_error. MCP execution errors set isError: true and include the same envelope. Input-schema errors, including unknown arguments, come from the MCP SDK.

CLI --json always writes one object to stdout, including errors. Human errors go to stderr. Exit codes: 0 for a produced report, help or version; 2 for arguments or URL syntax; 1 for other failures. There is no interactive prompt, batch mode or saved state.

Limits

  • One GET request chain with the MyOGBot user agent, at most three redirects, and a 10-second deadline covering DNS, headers and body. No retries, cookies, auth headers or proxy environment variables.
  • HTTP(S) on default ports only. URLs with credentials, local or reserved hosts are rejected. DNS answers are checked and the connection uses the checked address. Redirects go through the same checks. The address policy is conservative and can reject some legitimate public ranges.
  • 16 KiB of response headers, a 2 MiB Content-Length ceiling and 1 MiB of streamed HTML before the end of <head>. Compressed responses are rejected. Documents are decoded as UTF-8, so pages in other encodings may be misread. Metadata values are capped at 2048 characters and control and bidirectional override characters are removed.
  • The MCP server runs one check at a time. A concurrent call returns busy.

Fallbacks: title and description fall back from Open Graph to Twitter to the document title or meta description; images fall back from Open Graph image variants to Twitter. Relative URLs resolve against the final page URL. canonicalURL means og:url, not link[rel=canonical]. Pages that build their tags with JavaScript, or that block bots, may report missing tags.

Privacy

The tool does not store or log fetched HTML or inputs, and sends no analytics. The site you check and normal DNS/network infrastructure see the request. Reports contain page-supplied metadata and URL paths, so review them before sharing. Your MCP client may keep tool results. Query redaction cannot detect secrets embedded in paths or other text. Treat fetched metadata as untrusted data, not instructions.

License

MIT. See LICENSE.