Day 7, 25 minutes · advanced
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.jsonto the registry.
What goes in server.json
From the registry pages:
nameis unique and in reverse domain style. With GitHub sign-in it must start withio.github.plus your user name. With DNS sign-in you can use your own domain, such ascom.example/.descriptionmay be at most 100 characters.versionmust be new for every publication and cannot be changed afterwards. Semantic versions such as1.0.0are recommended; ranges such as^1.2.3are refused.packagessays where the code lives, for example"registryType": "pypi"with the package name, and"transport": {"type": "stdio"}.- A remote-only server uses
remotesinstead, 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:
- Publish the package to its package registry first, for Romy's Python server that is PyPI. The MCP Registry only points to it.
- Install
mcp-publisherwith the command for your system from the quickstart, and check it withmcp-publisher --help. - Run
mcp-publisher initin the project folder for a template, then edit it.mcp-publisher validatechecks it without publishing. - Sign in with
mcp-publisher login github. You confirm a short code on GitHub. - Run
mcp-publisher publish. - 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
- Search the registry and read one listing.
- Write server.json for Romy's server.
- Check the file with Python's JSON tool.
- Add the name marker to the README.
- Write down the publish steps for a real server.
Follow the steps below.
Today's actions
Ticks are not saved without an accountDo it in Claude API
Claude API
- Search the registry for weather servers. You get JSON with a list of
servers, each with aserverblock that holds aname, aversionandpackagesorremotes. In Windows PowerShell typecurl.exeinstead ofcurl.curl "https://registry.modelcontextprotocol.io/v0.1/servers?search=weather" - Create
server.jsonin the quillfeather folder with this content. Replaceyour-usernamewith your GitHub user name in thenameline.{ "$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" } } ] } - 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 - Open
README.mdin 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 --> - Do not publish Romy's practice server: the registry removes servers that do not work or that are spam. Write in
mcp-notes.txtthe 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.
Create a free account to save your progress
Free, and no payment details. Your ticks and finished lessons are kept, on every device.
Create a free account I already have an accountCreate a free account to save your progress. Sign in or sign up