Prepare an MCP server for the MCP Registry with server.json

Day 7, 25 minutes · advanced

Goal of this lessonSearch the official MCP Registry, write a server.json and the README mcp-name marker for Romy's server, and list the steps to publish a real one.

Why it matters

A server nobody can find is a server nobody uses. The MCP Registry is the official public list of MCP servers. Marketplaces and other registries read it, so a listing there is how a public server gets found. It does not store code: it stores a small description of where the server lives and how to start or reach it.

In this lesson you search the registry, write that description for Romy's server in the registry's server.json format, and add the line that proves a Python package belongs to you. You also learn every step to publish, and why you should not publish a practice server. At the end Romy's folder holds a checked server.json and a README with the name marker, ready for the day her server is real.

The words you need today

  • MCP Registry: the official, central list of metadata about public MCP servers, at registry.modelcontextprotocol.io. It is in preview, so details can still change.
  • Metadata: data about the server, such as its name, version and where to get it. Not the server itself.
  • Package registry: a place that hosts code packages, such as PyPI for Python or npm for JavaScript.
  • Namespace: the first part of a server name, such as io.github.your-username. It shows who published it.
  • mcp-publisher: the official command line tool that publishes server.json to the registry.

What goes in server.json

From the registry pages:

  • name is unique and in reverse domain style. With GitHub sign-in it must start with io.github. plus your user name. With DNS sign-in you can use your own domain, such as com.example/.
  • description may be at most 100 characters.
  • version must be new for every publication and cannot be changed afterwards. Semantic versions such as 1.0.0 are recommended; ranges such as ^1.2.3 are refused.
  • packages says where the code lives, for example "registryType": "pypi" with the package name, and "transport": {"type": "stdio"}.
  • A remote-only server uses remotes instead, with "type": "streamable-http" and a public address. The registry checks that you own the namespace, not the address.

Proving the package is yours

The registry checks that the package matches the listing. For a PyPI package, the README must contain mcp-name: followed by the exact server name, for example inside an HTML comment. Keep it on its own line, without a full stop right after it.

How publishing works

The quickstart describes the full path for a real server. You do not run these today:

  1. Publish the package to its package registry first, for Romy's Python server that is PyPI. The MCP Registry only points to it.
  2. Install mcp-publisher with the command for your system from the quickstart, and check it with mcp-publisher --help.
  3. Run mcp-publisher init in the project folder for a template, then edit it. mcp-publisher validate checks it without publishing.
  4. Sign in with mcp-publisher login github. You confirm a short code on GitHub.
  5. Run mcp-publisher publish.
  6. Check the listing with a search on the registry API, as in step 1 below.

What not to publish

The registry only lists servers that anyone can install or reach: a public package, or a public remote address. It does not support private servers; for those it suggests your own private registry. The moderation policy says the registry removes illegal content, malware, spam and servers that do not work. A practice server with made-up books helps nobody and could be removed as spam, so keep Romy's server.json as an exercise.

The same policy says users should assume there is little moderation. A listing is not a seal of approval. When you pick a server from any list, the checks from the beginners course still apply: read what it runs and what it can reach.

The steps

  1. Search the registry and read one listing.
  2. Write server.json for Romy's server.
  3. Check the file with Python's JSON tool.
  4. Add the name marker to the README.
  5. Write down the publish steps for a real server.

Follow the steps below.

Today's actions

Ticks are not saved without an account

Do it in Claude API

Claude API

  1. Search the registry for weather servers. You get JSON with a list of servers, each with a server block that holds a name, a version and packages or remotes. In Windows PowerShell type curl.exe instead of curl.
    curl "https://registry.modelcontextprotocol.io/v0.1/servers?search=weather"
  2. Create server.json in the quillfeather folder with this content. Replace your-username with your GitHub user name in the name line.
    {
      "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
      "name": "io.github.your-username/quillfeather",
      "title": "Quillfeather Books",
      "description": "Check stock, keep a wish list and reserve books at a small second-hand book shop.",
      "version": "1.0.0",
      "packages": [
        {
          "registryType": "pypi",
          "identifier": "quillfeather-books",
          "version": "1.0.0",
          "transport": {
            "type": "stdio"
          }
        }
      ]
    }
  3. Check that the file is valid JSON. The command prints the file again, neatly indented. An error names the line to fix.
    uv run python -m json.tool server.json
  4. Open README.md in the quillfeather folder and add this line at the end, with the same name as in server.json. This is how the registry checks that a PyPI package belongs to you.
    <!-- mcp-name: io.github.your-username/quillfeather -->
  5. Do not publish Romy's practice server: the registry removes servers that do not work or that are spam. Write in mcp-notes.txt the publish steps from the body of this lesson, for a real server later.

Note: The registry is in preview, so details can change. Count the description in server.json: the registry allows at most 100 characters. The search address works without an account; publishing needs a GitHub login.

Checked on 4 December 2026 · Source: MCP Registry: Quickstart (opens in a new tab)

Create a free account to save your progress. Sign in or sign up