The MCP Registry is currently in preview. Breaking changes or data resets may occur before general availability. If you encounter any issues, please report them on GitHub.
server.json MUST be of the form io.github.username/* (or io.github.orgname/*). For example, io.github.alice/weather-server.
If you choose domain-based authentication, your server’s name in server.json MUST be of the form com.example.*/*, where com.example is the reverse-DNS form of your domain name. For example, io.modelcontextprotocol/everything.
GitHub Authentication
GitHub authentication uses an OAuth flow initiated by themcp-publisher CLI tool.
To perform GitHub authentication, navigate to your server project directory and run:
Output
ABCD-1234 in the above output). Once complete, go back to the terminal, and you should see output like:
Output
Personal vs. organization namespaces
GitHub authentication always grants your personal namespace,io.github.<your-username>/*.
To publish under an organization namespace (io.github.<orgname>/*), you must be an Owner of that organization. Ordinary org membership is no longer sufficient: the registry checks your membership role and only grants the org namespace to admins. This prevents anyone who merely belongs to an org from publishing — or overwriting — servers under the org’s name.
If you authenticate with a Personal Access Token (in CI, or to work around the limitation above), the token must let the registry read your organization role. A token that can’t will still publish to your personal namespace, but org publishing will be silently unavailable. The exact requirement depends on the token type:
- Classic PAT: grant the
read:orgscope. - Fine-grained PAT: grant the Organization permissions → Members → Read-only permission (the fine-grained equivalent of
read:org). Without it, GitHub returns no organization membership for the token and you’ll get your personal namespace only. Note that a fine-grained PAT is bound to a single resource owner, so it can only see the organization it was created for.
DNS Authentication
DNS authentication is a domain-based authentication method that relies on a DNS TXT record. To perform DNS authentication using themcp-publisher CLI tool, run the following commands in your server project directory to generate a TXT record based on a public/private key pair:
The Ed25519 codepath requires OpenSSL 3.0 or later. macOS ships with LibreSSL by default (the system
openssl binary), which does not implement Ed25519 in genpkey and fails with Algorithm Ed25519 not found. On macOS, install OpenSSL 3 (brew install openssl@3) and invoke it explicitly — for example, replace openssl with /opt/homebrew/opt/openssl@3/bin/openssl (Apple Silicon) or /usr/local/opt/openssl@3/bin/openssl (Intel) in the commands below. The ECDSA P-384 codepath works on LibreSSL.mcp-publisher login command:
HTTP Authentication
HTTP authentication is a domain-based authentication method that relies on a/.well-known/mcp-registry-auth file hosted on your domain. For example, https://example.com/.well-known/mcp-registry-auth.
To perform HTTP authentication using the mcp-publisher CLI tool, run the following commands in your server project directory to generate an mcp-registry-auth file based on a public/private key pair:
As with DNS authentication, the Ed25519 codepath requires OpenSSL 3.0 or later. macOS’s system LibreSSL does not support Ed25519 in
genpkey. See the note in the DNS Authentication section for the macOS workaround.mcp-registry-auth file at /.well-known/mcp-registry-auth on your domain. After the file is hosted, log in using the mcp-publisher login command:
Troubleshooting failed HTTP verification
The Registry fetches your verification file from its own infrastructure when you runmcp-publisher login http, so a curl that succeeds on your machine does not prove that login will work. The Registry itself must be able to reach the endpoint.
The fetch is a plain HTTPS request with these properties:
Because the request originates from cloud infrastructure rather than a browser on a residential network, the usual causes of failure are edge rules that block it:
- a WAF, bot-management, or “under attack” rule that challenges or blocks non-browser clients
- a geo-block or IP allowlist that excludes Google Cloud address ranges
- an
AAAA(IPv6) record pointing at an address that is not reachable. Verification fails if none of the domain’s public addresses can be reached, even when IPv4 works in a browser - a
301/302redirect to another host or path, which the Registry does not follow /.well-known/mcp-registry-authanswering200 OKwith an HTML error page instead of the proof record
v=MCPv1; k=...; p=...). When the Registry cannot use the endpoint, the login error carries the Registry’s own fetch failure, such as dial tcp <ip>:443: i/o timeout, HTTP 403: failed to fetch key from ..., or HTTP 301: failed to fetch key from .... Allow plain HTTPS clients through for /.well-known/mcp-registry-auth, serve the path without redirects, then retry.
Addresses that resolve to loopback, private, link-local, or carrier-grade NAT ranges are refused by design, so the endpoint must be reachable at a public address.
Troubleshooting DNS and HTTP authentication
Ifmcp-publisher login dns or login http fails, check the published proof record before changing keys or retrying. A fetch failure and a signature mismatch have different causes; read the detailed error returned by the Registry.
Compare the “Expected proof record” against what is actually published
Each login invocation prints anExpected proof record: line, for example:
Output
k=) and public key (p=) in the published MCPv1 record match the current login command’s output. Rerun the login command after rotating a key so you compare against the freshly derived public key. For HTTP verification, surrounding whitespace and trailing newlines are trimmed; their presence alone does not cause a signature mismatch. Avoid editing or wrapping the public-key data itself.
When a signature does not match, the Registry’s error includes fingerprints of the published keys it tried. Compare these with the key you intended to publish to help identify a stale record or a mismatch between the private key and published public key.
DNS: verify the TXT record before logging in
Confirm an MCPv1 TXT record is published at the exact domain passed to--domain, rather than at a selector such as _mcp-auth.<domain>:
dig TXT _mcp-auth.example.com +short returns the proof record but dig TXT example.com +short does not, it is published at the wrong name (see the apex warning above).
When the Registry finds a well-formed MCPv1 record at a known wrong selector (_mcp-auth.<domain> or _mcp-registry.<domain>) but none at the requested domain, it returns a specific error identifying the misplaced record.
The Registry tries all valid published MCP keys; a different key in another TXT record does not take precedence over the correct one. Ensure at least one record contains the public key for the private key used by the login command. Remove retired MCP authentication records when they are no longer needed, while preserving keys still in use and TXT records for other services.
HTTP: verify the well-known endpoint before logging in
Follow Troubleshooting failed HTTP verification for the exact request, timeout, response-size limit, redirect policy, and network requirements. A successful request from your own machine does not establish that the Registry can reach the endpoint.Confirm the algorithm matches the key
The--algorithm flag (default ed25519) must match the algorithm declared in the published proof record’s k= field. Signing an Ed25519 timestamp against an ecdsap384 proof record (or vice versa) fails verification. If you regenerated the keypair with a different algorithm than what is published, update the TXT record or the mcp-registry-auth file before retrying.