MCP server.json: Every Field the Registry Reads | MCP Hunter

MCP server.json: Every Field the Registry Reads

What goes in an MCP server.json for the official registry: name, description, version, packages and remotes, with the rules that make a publish fail and how to fix each one.

MCP Hunter team Updated 6 min read

server.json is the file the official MCP Registry stores for your server. It names the server, says which version this is, and says where a client gets it: a package on npm, PyPI, NuGet or Docker Hub, a URL it can call, or both. The registry keeps this metadata and nothing else: "The MCP Registry only hosts metadata, not artifacts" [1].

You create it with mcp-publisher init, edit it, and send it with mcp-publisher publish. This page goes through each field, the rule attached to it, and the error you get when the rule is broken. Every rule is quoted from the registry documentation as it read on 28 November 2026. The registry is still in preview, so re-read the linked pages before you build a release process on them.

TL;DR:

  • Every example in the registry docs carries $schema, name, description and version, plus packages, remotes or both.
  • description is capped at 100 characters. Longer fails validation [1].
  • version can be published once. "Once published, the version string (and other metadata) cannot be changed" [3]. A metadata fix needs a new version.
  • Check your own remote URL. The registry verifies who owns the name, and says it does not verify that you control the URL. When we called 1,100 remote addresses from the registry on 20 August 2026, 13% did not answer.

A complete server.json

A server published to npm and also hosted at a URL:

{
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
  "name": "io.github.your-username/weather",
  "title": "Weather",
  "description": "Forecasts and alerts for any city.",
  "repository": {
    "url": "https://github.com/your-username/mcp-weather-server",
    "source": "github"
  },
  "version": "1.2.0",
  "packages": [
    {
      "registryType": "npm",
      "identifier": "@your-username/mcp-weather-server",
      "version": "1.2.0",
      "transport": { "type": "stdio" }
    }
  ],
  "remotes": [
    {
      "type": "streamable-http",
      "url": "https://weather.example.com/mcp"
    }
  ]
}

A remote-only server drops packages entirely. A package-only server drops remotes. The registry docs show both shapes [1][2].

The top-level fields

Field What it holds The rule that bites
$schema The schema version this file follows Use the URL mcp-publisher init writes; it changes when the schema does
name Your server's registry name, such as io.github.your-username/weather Its prefix must match how you sign in (see below)
title A display name Optional
description One line on what the server does 100 characters at most [1]
repository Where the source lives, with url and source Optional, and the first thing a cautious installer looks for
version This release Unique per publish, cannot be changed afterwards [3]
packages How to install it locally Each package needs an ownership marker (see below)
remotes URLs a client can call "MUST be publicly accessible" [2]

name: the field most publishes fail on

The name is a namespace you prove you control, then a slash, then your server's name. How you prove it decides the prefix:

  • GitHub sign-in (mcp-publisher login github): the name must start with io.github.your-username/.
  • DNS or HTTP sign-in: a reverse-domain name such as com.example/weather, proved with a key published in a DNS TXT record or at /.well-known/mcp-registry-auth on that domain.

When the two do not match you get "You do not have permission to publish this server" [1]. It reads like a login problem and it is a naming problem. Either sign in the way the prefix says, or change the prefix.

For an npm package, the name must also equal the mcpName property in your package.json: "The name property in server.json must match the mcpName property in package.json" [1].

version: one publish per string

The registry recommends semantic versions (1.2.0, 1.2.0-beta.1) and accepts most other strings, but refuses anything that looks like a range: ^1.2.3, ~1.2.3, 1.x and >=1.2.3 are all prohibited [3].

Two practices from the registry's own versioning page save a bad afternoon [3]:

  • Match the package version. If server.json says 1.2.0, the npm package it points at should be 1.2.0 too.
  • Fix metadata with a prerelease. To correct a typo in the description without shipping new code, publish 1.2.0-1. Prereleases sort before 1.2.0, so this one will not be marked "latest", and the registry docs say so plainly. Plan for that when you choose the number.

packages: proving the package is yours

Each entry in packages names its package registry in registryType (the docs cover npm, PyPI, NuGet, OCI and MCPB), its identifier, its version and its transport, which for a local package is stdio. The registry checks that the package points back at this server [1]:

  • npm: an mcpName property in package.json.
  • PyPI and NuGet: a line mcp-name: <server-name> in the package README.

Without the marker the publish fails with "Registry validation failed for package". Publish the package to its own registry first: there is nothing for server.json to point at until it exists.

If your server needs an API key, list it under environmentVariables with isRequired and isSecret set, so a client can ask for it instead of failing on first run.

remotes: a URL anyone can call

Each entry in remotes has a type and a url. Use streamable-http: "The SSE transport is deprecated, so publish an "sse" remote only to support existing clients" [2]. A remote can also declare:

  • headers, such as an X-API-Key the client must send, each with isRequired and isSecret.
  • variables in the URL, such as https://{tenant_id}.example.com/mcp, which the user fills in when they install.

The registry's ownership check is about the name. Its docs say it verifies the namespace and "does not verify that you control the remote URL" [2]. Our registry census called 1,100 remote addresses from the registry on 20 August 2026, once each, and 13% did not answer. Call yours from outside your own network before you publish: the connection test does it in one free check and shows the tool list a client will see.

If the server is remote, what a public address costs you covers the auth and tool-surface questions a URL raises.

Check it before you publish

mcp-publisher validate checks server.json without publishing it, so run it after every edit. The URL is still yours to check: call it from outside your network first.

Once it is in the registry, the launch guide covers the rest of the job: being listed is not being found. When the server is ready for people to try, launch it on MCP Hunter: one ranked board per week, free to enter.

Sources

  1. Quickstart: Publish an MCP Server to the MCP Registry
  2. Publishing Remote Servers
  3. Versioning Published MCP Servers