# How to publish a remote MCP server to the MCP Registry

> What the MCP Registry checks when you publish a remote server, what it never checks, why login fails with a 401, and how a listing reaches agents.

Published 2026-11-08. Source: https://toolvet.app/blog/publish-remote-mcp-server-mcp-registry

**Short answer:** a remote MCP server gets into the official MCP Registry with a `server.json` that has a `remotes` entry and no `packages`, published with the `mcp-publisher` CLI after you log in with GitHub or prove you own a domain. The registry verifies that you control the *namespace* in the server's name, `io.github.<user>/…` or `com.example/…`, and nothing about the URL itself: in its own words it "does not verify that you control the remote URL, regardless of authentication method", several listings may point at the same URL, and the moderation policy says consumers "should assume minimal-to-no moderation". The publishing failure that looks most like a bug, `token exchange failed with status 401` on HTTP authentication, is usually your edge blocking the registry's own fetch of `/.well-known/mcp-registry-auth`. This is how the pieces fit as of 8 November 2026, as read in the [registry repository](https://github.com/modelcontextprotocol/registry).

Some background: the official MCP Registry at `registry.modelcontextprotocol.io` is a metadata catalog, "like an app store for MCP servers", and it is still "in preview", so breaking changes or data resets may occur. It hosts no code: a package server points at npm, PyPI, NuGet, crates.io, a container registry or an MCPB release, and a remote server points at a URL. Aggregators, ToolVet among them, pull the catalog through its API. ToolVet imports the remote servers with a `streamable-http` or `sse` entry, drops stdio-only packages because an agent "can only call what is hosted somewhere", and then does what the registry does not: it runs the MCP handshake against the URL on a schedule, records the tools the server exposes, scans their descriptions, and scores the result ([how we check and score](https://toolvet.app/methodology)). Of the 35,555 remote servers ToolVet listed as of the 1 November 2026 snapshot, 73.9% had 30-day uptime of 99.9% or better ([November data post](https://toolvet.app/blog/how-many-x402-apis-november-2026)); the rest were still listed in the registry.

## Step 1: a `server.json` with `remotes`

From the [quickstart](https://github.com/modelcontextprotocol/registry/blob/main/docs/modelcontextprotocol-io/quickstart.mdx), a remote-only server needs no npm package and skips the package steps:

```json
{
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
  "name": "io.github.my-username/weather",
  "title": "Weather",
  "description": "A remote MCP server for weather information.",
  "version": "1.0.0",
  "remotes": [
    { "type": "streamable-http", "url": "https://weather.example.com/mcp" }
  ]
}
```

Rules that trip people up, from the quickstart, the [remote servers page](https://github.com/modelcontextprotocol/registry/blob/main/docs/modelcontextprotocol-io/remote-servers.mdx), the [FAQ](https://github.com/modelcontextprotocol/registry/blob/main/docs/modelcontextprotocol-io/faq.mdx) and the [official registry requirements](https://github.com/modelcontextprotocol/registry/blob/main/docs/reference/server-json/official-registry-requirements.md):

- The URL "MUST be publicly accessible".
- `description` is limited to 100 characters; "longer descriptions fail validation".
- `type` is `streamable-http` or `sse`. SSE is deprecated, so "publish an `"sse"` remote only to support existing clients".
- `mcp-publisher init` still generates a `packages` array; replace it with `remotes`.
- A published version is immutable. An update is a new `server.json` with a new `version`.
- Templates such as `https://{tenant_id}.analytics.example.com/mcp` are allowed, with a `variables` block that can carry `default`, `choices`, `isRequired` and `isSecret`, and a `headers` array tells clients which headers to send, with `isSecret` for API keys. An aggregator cannot probe a templated URL, so ToolVet skips remotes whose URL contains `{`.
- Custom metadata survives only under `_meta["io.modelcontextprotocol.registry/publisher-provided"]`, capped at 4 KB; every other `_meta` key is "silently dropped".

## Step 2: log in, and pick the namespace with it

The [authentication page](https://github.com/modelcontextprotocol/registry/blob/main/docs/modelcontextprotocol-io/authentication.mdx) ties the login method to the name:

| Login | Name must be | Proves |
|---|---|---|
| `mcp-publisher login github` | `io.github.<username>/*` | You control that GitHub account |
| `login dns` | `com.example/*` (reverse DNS) | A TXT record on the domain apex |
| `login http` | `com.example/*` | A file at `https://example.com/.well-known/mcp-registry-auth` |

"You do not have permission to publish this server" means the name's prefix does not match the method you logged in with. Two further traps are documented. GitHub organization namespaces (`io.github.<orgname>/*`) need an organization *Owner*, and "`mcp-publisher login github` cannot currently publish to an organization namespace" at all, because the interactive device flow's token cannot read organization memberships; use GitHub Actions with OIDC, or a personal access token with `read:org` (classic) or Organization → Members → Read-only (fine-grained). For DNS, the TXT record `v=MCPv1; k=ed25519; p=…` goes on the apex, `example.com`, not under a selector such as `_mcp-auth.example.com`; a record under a selector fails "with a generic signature error". Remove the record of a rotated key: the warning on the same page says a stale record "will be tried first and cause verification to fail", while its troubleshooting section says the registry "tries all valid published MCP keys"; either way, retired records only add ways to fail. Ed25519 key generation needs OpenSSL 3; macOS's LibreSSL fails with `Algorithm Ed25519 not found`, and the docs point to Homebrew's `openssl@3` or the ECDSA P-384 variant.

Which method to choose matters for your users, not just for you. The docs recommend domain authentication when the remote URL is on your domain, "so the server name reflects that domain. This lets users see that the server name and remote URL belong to the same publisher." A GitHub-authenticated name proves nothing about the host that serves the MCP endpoint.

## Step 3: `token exchange failed with status 401`

This is the failure the authentication page spends the most words on, and it is specific to HTTP authentication. When you run `mcp-publisher login http`, "the Registry fetches your verification file from its own infrastructure", so "a `curl` that succeeds on your machine does not prove that login will work". The fetch is:

| Property | Requirement |
|---|---|
| Request | `GET https://<domain>/.well-known/mcp-registry-auth` with `Accept: text/plain` and `User-Agent: mcp-registry/1.0` |
| Status | `200 OK`; redirects are not followed, so a `3xx` fails |
| Body | the proof record, at most 4096 bytes; surrounding whitespace is ignored |
| Timeout | 10 seconds for the whole request |
| Origin | Google Cloud addresses, not a fixed IP you can allowlist |

The usual causes are a WAF, bot-management or "under attack" rule that challenges non-browser clients; a geo-block or IP allowlist that excludes Google Cloud ranges; an `AAAA` record pointing at an address that is not reachable, because "verification fails if none of the domain's public addresses can be reached, even when IPv4 works in a browser"; a `301` or `302` to another host or path; or a `200` whose body is an HTML error page. Addresses in loopback, private, link-local or carrier-grade NAT ranges "are refused by design". The login error carries the registry's own fetch failure, such as `dial tcp <ip>:443: i/o timeout` or `HTTP 403: failed to fetch key from ...`, so read it before changing keys. To see what the registry sees, request the file the way it does, ideally from a network that is not yours:

```bash
curl -sS -o - -w '\n%{http_code}\n' \
  -H 'Accept: text/plain' \
  -A 'mcp-registry/1.0' \
  https://example.com/.well-known/mcp-registry-auth
```

The body must be the `Expected proof record:` line the login command printed (surrounding whitespace is trimmed). If it is and login still fails, compare `k=` and `p=` in the published record with the current command's output, and check that `--algorithm` (default `ed25519`) matches the record's `k=`; signing an Ed25519 timestamp against an `ecdsap384` record fails. For DNS, `dig TXT example.com +short` must return the record at the apex.

## Step 4: publish, then check the API

`mcp-publisher publish` prints the server name and version on success, and the quickstart's check is one request:

```bash
curl "https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.my-username/weather"
```

A listing can later be set to `deprecated` (still shown, with a message) or `deleted` (hidden from default listings, still retrievable with `include_deleted=true`) with `mcp-publisher status`; "server metadata is never permanently removed". The [API changelog](https://github.com/modelcontextprotocol/registry/blob/main/docs/reference/api/CHANGELOG.md) still lists the status endpoints under "Unreleased", though the FAQ and CLI reference document them as current; the same section records one change that affects anyone consuming the catalog: the registry "no longer rejects publishing ... because another server name references the same remote URL", so "consumers that index records by remote URL ... must support multiple matching server names". The remote servers page states the consequence plainly: "An existing listing does not reserve that URL or prevent another publisher from listing it under a namespace they control", and "do not ... infer publisher ownership or endorsement from a shared URL".

## What the registry does not check

Put the documented rules together and the limits of a registry entry are clear. The registry verifies the namespace, the package ownership marker for package servers, the `server.json` schema and the size limits. It does not verify the remote URL, does not run the server, and, per the [moderation policy](https://github.com/modelcontextprotocol/registry/blob/main/docs/modelcontextprotocol-io/moderation-policy.mdx), removes only "illegal content, malware, spam, and completely broken servers", while explicitly keeping "low-quality or buggy servers" and "servers with security vulnerabilities". It "largely rel[ies] on upstream package registries ... or downstream subregistries ... to do more in-depth moderation", and "there may be content in the MCP Registry that should be removed under this policy, but which we haven't yet removed". The [aggregator guidance](https://github.com/modelcontextprotocol/registry/blob/main/docs/modelcontextprotocol-io/registry-aggregators.mdx) asks downstream catalogs to sync with `updated_since`, apply deleted statuses and deduplicate by name and version.

So for a user, or an agent, a registry entry answers "who published this name", not "does this URL run, what does it expose, and does it try to steer my model". Those are the questions ToolVet's listings answer, from the handshake it runs, the tool list it records and the [security scan](https://toolvet.app/blog/mcp-tool-poisoning-in-the-wild) it applies; the free [MCP scanner](https://toolvet.app/mcp-scanner) runs the same checks on any URL. If you publish a server, that is also your checklist before you run `mcp-publisher publish`: confirm the URL answers the [2026-07-28 handshake](https://toolvet.app/blog/remote-mcp-server-not-connecting) from outside your network, that a login requirement is signalled with a proper [`401` and `WWW-Authenticate`](https://toolvet.app/blog/remote-mcp-server-401-oauth) rather than a login page, and that your tool descriptions contain nothing you would not want shown to the user. ToolVet publishes its own entry the same way: its [`/server.json`](https://toolvet.app/server.json) is the document `mcp-publisher` uploads, and it serves `/.well-known/mcp-registry-auth` for HTTP authentication.

## Frequently asked questions

### Does the MCP Registry verify that I own the remote server URL?

No. The registry verifies that you control the namespace in the server's name, a GitHub account for `io.github.*` names or a domain for reverse-DNS names, and its documentation says it "does not verify that you control the remote URL, regardless of authentication method". Several server names may reference the same URL. Domain authentication at least lets users see that the name and the URL share a publisher.

### Why does mcp-publisher login http fail with a 401?

Because the registry could not fetch `https://<your-domain>/.well-known/mcp-registry-auth` from its own infrastructure, which runs on Google Cloud. Common causes are a WAF or bot rule that blocks non-browser clients, a redirect (the registry follows none), an unreachable IPv6 address, or a `200` that returns an HTML page. The error message includes the registry's own fetch failure. Request the file with `Accept: text/plain` and `User-Agent: mcp-registry/1.0` from another network to reproduce it.

### Can I publish a remote MCP server without an npm package?

Yes. A `server.json` with a `remotes` entry and no `packages` array is valid; the package ownership verification does not apply, and the Node.js and npm steps of the quickstart can be skipped. The remote URL must be publicly accessible and `description` must be 100 characters or fewer.

### How do I remove my server from the MCP Registry?

Set its status to `deleted` with `mcp-publisher status --status deleted`, for one version or `--all-versions`. Deleted servers are hidden from default listings but remain retrievable with `include_deleted=true`; metadata is never permanently removed, and you can restore it by setting the status back to `active`.

Everything quoted above is from the documentation in the modelcontextprotocol/registry repository as of 8 November 2026; the registry is in preview and its API changelog marks the shared-URL change as unreleased. [How we check and score](https://toolvet.app/methodology) explains how ToolVet tests the remote servers it imports from the registry.
