mattoddie.dev

Shipping an MCP server and getting it listed

Building an MCP server is the easy part. Getting it onto other people's computers is where the fun stops and the YAML starts.

Some people want a Docker image. Some want to double-click a file in Claude Desktop. Some want a binary or a Homebrew formula, and some never install anything by hand because their client pulls servers from the official MCP Registry. The rest are browsing a directory for something that talks to their thermostat. This post is how my six servers keep all of them happy from one git tag, and how to get a server listed where people actually go looking.

The examples come from hive-mcp, a Go server for Hive smart heating. unifi-mcp, proxmox-mcp, octopus-mcp and crunch-mcp use the same release workflow, and the Python bluelink-mcp follows the same shape. If you haven't built a server yet, start with how to build an MCP server.

Four ways in

Everyone has a favourite way to install things, and arguing with them doesn't scale, so every release ships all four:

FormatForWhere it lives
Docker imageRunning the server over HTTP on a home server or NAS, shared by several clientsghcr.io/mattoddie/hive-mcp, for linux/amd64 and linux/arm64
MCP Bundle (.mcpb)Claude Desktop users who want to double-click a file and fill in a settings formAttached to the GitHub release, one per OS and processor
BinaryRunning over stdio from Claude Code, Cursor or VS Code without DockerRelease archives, and a Homebrew tap
Registry entryClients and directories that discover servers for youThe official MCP Registry, as io.github.mattoddie/hive-mcp

The registry entry is really a description of the other three: it points at the image and the bundles with enough detail for a client to install them. That's why it goes last.

One tag, one workflow

Nothing ships on a merge to main. A release starts when I push a signed tag such as v1.2.0, and a single GitHub Actions workflow does everything else, in this order:

  1. Prepare. Check the tag is a semantic version and points at a commit on main, then create a draft GitHub release with notes generated from the merged pull requests.
  2. Image. Build and push the multi-architecture Docker image. The test suite runs inside the Docker build, so failing tests mean no image and no release.
  3. Bundles and binaries. Cross-compile the server for six platforms, pack each one into a bundle and an archive, validate the bundles, and attach everything to the draft with a SHA256SUMS file.
  4. Publish. Turn the draft into a real release.
  5. Registry. For stable releases only, publish the new version to the MCP Registry.
The release workflow: a signed git tag on main starts it, Prepare creates a draft release, Image runs the tests and pushes to ghcr.io, Bundles attaches thirteen files to the draft, Publish makes the release public, and the MCP Registry step runs for stable tags only. git tag v1.2.0 signed, on main Prepare draft release Image tests, then ghcr.io Bundles 13 files on the draft Publish draft goes public MCP Registry stable tags only
FIG 1One signed tag sets the whole release rolling, and the registry hears about it last.

The draft comes first because releases are immutable. With GitHub's immutable releases turned on, a published release's assets and tag can't change. That's the point: nobody can swap a binary out from under a version you've already installed. The catch is that everything has to be attached before you publish. A draft can collect assets for as long as it needs to, and only goes public once the image and all thirteen files (six bundles, six archives and the checksums) are in place. If a job fails halfway, re-running the workflow finds the existing draft and carries on.

Pre-releases like v1.3.0-rc.1 go through the same workflow, but only get their exact version tag on the image. They never move latest, and they never reach the registry, where a published version is there for good.

The Docker image

The image is a Go binary on distroless, which is about as bare as an image gets: no shell, no package manager, just CA certificates, time zone data and a non-root user. The base image is pinned by digest, and Dependabot bumps it. Release builds don't use a build cache, so nothing cached by another workflow run can end up in a published image. They also carry an SBOM and SLSA provenance, plus a signed attestation you can check with gh attestation verify.

One label in the Dockerfile matters more than all the others put together:

DockerfileDockerfile
LABEL org.opencontainers.image.source="https://github.com/mattoddie/hive-mcp" \
      org.opencontainers.image.licenses="MIT" \
      io.modelcontextprotocol.server.name="io.github.mattoddie/hive-mcp"

The MCP Registry reads io.modelcontextprotocol.server.name to check that an image really belongs to the server that lists it. Without it, publishing fails. CI checks the label is there, so I can't forget it between releases.

The image starts in HTTP mode, because that's how most people run a container. The registry entry and the stdio instructions switch it with MCP_TRANSPORT=stdio.

MCP Bundles for Claude Desktop

An MCP Bundle is a zip file containing a manifest.json, an icon, the licence and the server. Open one and Claude Desktop installs it as an extension, showing a settings form built from the manifest's user_config. Nobody has to hand-edit a JSON config file or install a runtime, which is most of the appeal. For a Go server, "the server" is just the binary:

mcpb/manifest.jsonJSON
"server": {
  "type": "binary",
  "entry_point": "server/hive-mcp",
  "mcp_config": {
    "command": "${__dirname}/server/hive-mcp",
    "env": {
      "MCP_TRANSPORT": "stdio",
      "HIVE_USERNAME": "${user_config.username}",
      "HIVE_PASSWORD": "${user_config.password}",
      "HIVE_ALLOW_WRITES": "${user_config.allow_writes}"
    },
    "platform_overrides": {
      "win32": { "command": "${__dirname}/server/hive-mcp.exe" }
    }
  }
}

Doing this six times over taught me three things.

You need one bundle per processor, not just per OS. A manifest can pick a different command for each operating system, but not for each CPU architecture. A single bundle with an Apple silicon binary and an Intel one can't choose between them. So each release has six bundles: macOS, Windows and Linux, each on amd64 and arm64. The file names end in <os>-<arch>.mcpb, and the release notes have a table telling people which one to download.

Generate the tool list from the server. The manifest lists every tool and prompt, so directories and Claude Desktop can show them before anything runs. Write that list by hand and it's out of date by the next release. A small cmd/mcpb program starts the server the way the bundle's default settings would, asks it for its tools and prompts over MCP, and writes them into the manifest. make docs regenerates the list, and CI fails if the committed manifest doesn't match. The descriptions, settings and icon are still edited by hand.

Validate with the official CLI. CI unzips every bundle and runs npx @anthropic-ai/mcpb validate on its manifest, with the CLI's version pinned. CI also smoke-tests the Linux bundle: it starts the binary over stdio with every setting filled in the way Claude Desktop fills them, including an unfilled optional setting passed through literally as ${user_config.audit_log}, asks for the tool list, and checks the count matches the manifest. At release time, the workflow checks that the version inside each bundle matches the tag.

Unsigned bundlesThe macOS binaries carry the ad-hoc signature that Go's linker adds, which Apple silicon needs before anything will run. They aren't signed with a Developer ID or notarised, though, so macOS may ask the user to allow the binary the first time. mcpb sign can sign the bundle itself, but that needs a code-signing certificate. The docs walk users through the prompt instead.

The same binaries also go into plain .tar.gz and .zip archives for people who don't use Claude Desktop. A separate Homebrew tap checks for new stable releases every hour. It verifies each archive's checksum and build provenance, tests the formula on macOS and Linux, then publishes it. Nothing in the server's release workflow knows the tap exists.

The official MCP Registry

The MCP Registry is the MCP project's own list of public servers. It doesn't host any code. Each entry is a server.json file that says what a server is and how to install it, and clients and directories read the registry instead of crawling GitHub. Being in it is what makes a server installable from inside the tools people already use.

server.json

The file sits at the root of the repo. It has a name, a description, links, and a list of packages. hive-mcp lists seven: the Docker image and the six bundles.

server.jsonJSON
{
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
  "name": "io.github.mattoddie/hive-mcp",
  "title": "Hive heating",
  "description": "Check and control Hive smart heating: thermostats, radiator valves, hot water and holiday mode",
  "repository": { "url": "https://github.com/mattoddie/hive-mcp", "source": "github" },
  "websiteUrl": "https://hive-mcp.mattoddie.dev",
  "version": "0.0.0-dev",
  "packages": [
    {
      "registryType": "oci",
      "identifier": "ghcr.io/mattoddie/hive-mcp:0.0.0-dev",
      "runtimeHint": "docker",
      "transport": { "type": "stdio" },
      "environmentVariables": [
        { "name": "MCP_TRANSPORT", "value": "stdio" },
        { "name": "HIVE_USERNAME", "isRequired": true },
        { "name": "HIVE_PASSWORD", "isRequired": true, "isSecret": true }
      ]
    },
    {
      "registryType": "mcpb",
      "identifier": "https://github.com/mattoddie/hive-mcp/releases/download/v0.0.0-dev/hive-mcp-0.0.0-dev-darwin-arm64.mcpb",
      "fileSha256": "0000000000000000000000000000000000000000000000000000000000000000",
      "transport": { "type": "stdio" }
    }
  ]
}

That's trimmed: the real file describes every setting with a description, default and allowed values, so a client can build a form from it. Two details are worth stealing.

The name is a namespace you have to prove. io.github.mattoddie/… means "owned by the GitHub account mattoddie". The registry checks that when you log in, and for each package it checks the package points back at the name: the image's label for OCI packages, and the SHA-256 for bundles.

The committed file is a template. main carries 0.0.0-dev and SHA-256s of all zeros. The real values only exist once a release has been built, so the workflow fills them in. That keeps release commits to a changelog and nothing else.

Publishing from CI with no secrets

The registry job runs after the release is published, because it needs to download the bundles to hash them. It installs mcp-publisher, the registry's CLI, at a pinned version, checking it against a pinned SHA-256 from the registry's release page. Then it stamps server.json with jq:

.github/workflows/release.ymlBash
gh release download "$TAG" --pattern '*.mcpb' --dir bundles
(cd bundles && sha256sum -- *.mcpb) > sha256sums
jq --arg v "$VERSION" --rawfile sums sha256sums '
  ($sums | split("\n") | map(select(. != "") | split("  ") | {key: .[1], value: .[0]})
    | from_entries) as $sha
  | .repository.url as $repo
  | .version = $v
  | .packages |= map(
      if .registryType == "oci" then .identifier |= sub(":[^:/]+$"; ":" + $v)
      elif .registryType == "mcpb" then
        (.identifier | capture("-(?<platform>[a-z]+-[a-z0-9]+)\\.mcpb$").platform) as $p
        | "hive-mcp-\($v)-\($p).mcpb" as $f
        | .identifier = "\($repo)/releases/download/v\($v)/\($f)"
        | .fileSha256 = ($sha[$f] // error("\($f) is not attached to the release"))
      else . end)' server.json > stamped.json
mv stamped.json server.json
mcp-publisher validate server.json

If a bundle listed in server.json isn't on the release, the stamp fails rather than publishing a broken link. Then the job logs in and publishes:

.github/workflows/release.ymlBash
mcp-publisher login github-oidc
mcp-publisher publish server.json

login github-oidc is my favourite bit. The job has id-token: write permission, so GitHub gives it a short-lived OIDC token saying which repo and account it's running for. The registry accepts that as proof of the io.github.mattoddie namespace. There's no API key to create, store as a secret or rotate, and nothing to leak.

A version can only be published once, so before logging in the job asks the registry's API whether this version is already there. If it is, the job stops cleanly. That makes "re-run failed jobs" safe to mash after a flaky network error.

Keeping two manifests in step

The bundle manifest and server.json describe the same settings twice, in two different formats. One is user_config fields mapped onto environment variables, and the other is a list of environment variables. It's easy to add a setting to one and forget the other. So cmd/mcpb registry compares them: every variable, default, and required and secret flag has to match. CI runs it with mcp-publisher validate on every pull request, not only at release time, when it would be too late.

Getting found: the directories

The registry makes a server installable. Directories are where people browse for one. There are lots of them, no two work the same way, and several reinvented themselves in 2026. These are the ones a self-hosted server can get into in November 2026, roughly in the order I'd tackle them.

DirectoryHow a server gets inWhat it takes
Official MCP RegistryYou publish it yourselfserver.json and mcp-publisher, as above
GlamaSubmit the repo, or wait for it to import the official registryA glama.json to claim it, and a build spec that starts the server with placeholder credentials
awesome-mcp-serversA pull request adding one lineA Glama listing and its score badge
Docker MCP CatalogA pull request to docker/mcp-registryA Dockerfile, a permissive licence and a review by Docker
GitHub MCP RegistryCurated by GitHub, from the official registryBe in the official registry, then ask GitHub
mcp.soA submission formThe repo URL; free listings are reviewed

Start with the official registry

This one comes first because the others increasingly read from it. The registry publishes guidance for aggregators: poll it every hour or so for servers updated since the last check, and drop any marked as deleted. Glama imports from it, though not reliably: one of my six servers was in the registry but still had to be submitted by hand. PulseMCP has paused new submissions, and its submit page tells authors to publish to the official registry, which it will import once it reopens. GitHub's registry is built from it too. So publishing from CI does most of the work of getting listed.

Your CI publishes to the official MCP Registry with mcp-publisher. The GitHub MCP Registry curates from it, PulseMCP will import from it once it reopens, and Glama imports from it. awesome-mcp-servers needs a Glama listing. The Docker MCP Catalog and mcp.so are done by hand. Your CI mcp-publisher MCP Registry the official one GitHub registry curated PulseMCP paused Glama imports awesome-mcp-servers needs Glama BY HAND Docker catalog mcp.so
FIG 2The official registry feeds most of the map, so it goes first and the stragglers get a form or a pull request.

The registry is still labelled a preview, with a warning that breaking changes or data resets may happen. That's another reason to publish from CI: if the data is ever reset, the next release puts your server back.

Glama

Glama matters more than it first seems, because awesome-mcp-servers leans on it. A server gets in either by being in the official registry or by being submitted. To claim the listing, so you can edit it, set up its Docker image and see usage reports, add a glama.json to the root of the repo and run Glama's Claim ownership flow:

glama.jsonJSON
{
  "$schema": "https://glama.ai/mcp/schemas/server.json",
  "maintainers": ["mattoddie"]
}

Glama doesn't just list your server. It tries to run it, then grades the listing on licence, quality and maintenance and scores every tool's description. Until a build succeeds, the listing shows as not graded: the page stays up, but the server disappears from search, categories and recommendations. Five of my six servers sat there ungraded, like homework nobody had marked, with nothing wrong with them. Glama had simply never been told how to build them. Once each one had a build spec, all six got their grades.

Once you've claimed a listing, its admin pages take a build spec: shell steps to build the server, the command that starts it, a JSON schema for its environment variables, and placeholder values to start it with. Glama's build image doesn't come with Go, so mine download a pinned Go release, check its SHA-256 and build the binary. Build tests the spec and shows the tools it found. Build and release publishes it, and that's what gets the listing graded. Ignore Deploy: that's Glama hosting the server for you, it needs a subscription, and grading doesn't depend on it.

The placeholder values mean the server has to start and list its tools without real credentials. A server that logs in at startup, or refuses to start until it has an API key, will never be graded. Two of mine also refused to start until a TLS verification setting was chosen, so that needed a placeholder too. A server should start, list its tools, and only fail when a tool is actually called. Lazy logins are good manners.

awesome-mcp-servers

punkpeye/awesome-mcp-servers is one of the most-starred lists on GitHub, and lots of people find servers there. To get in, open a pull request that adds one line in the right category, alphabetically, with its legend emoji: 🏎️ for Go, 🏠 for a local server, and the operating systems it runs on. A bot then labels the pull request has-glama or missing-glama. Without a Glama listing that passes its checks, and the score badge after your description, it'll ask you to sort that out first. The list is run by Glama's founder, so in practice all roads lead to Glama.

Docker MCP Catalog

Docker's catalog is what Docker Desktop's MCP Toolkit installs from. Fork docker/mcp-registry and run task wizard, which writes a servers/<name>/server.yaml for you. Test it in the MCP Toolkit, then open a pull request. Docker reviews every entry, and the licence has to be permissive: MIT and Apache are fine, GPL isn't. If you let Docker build the image, it lives under mcp/ on Docker Hub with Docker's signatures, provenance, SBOMs and security updates. You can point it at your own image instead, but you lose those. If your server can't list its tools without being configured, you can supply a tools.json.

GitHub and mcp.so

The GitHub MCP Registry is what VS Code's MCP gallery installs from, and it's where companies can enforce an allow-list. It's curated. GitHub's advice is to publish to the official registry and then ask them to include your server. Self-service publishing was promised, but I haven't seen it launch.

mcp.so takes a repo URL through a form. Free listings are reviewed, and a paid listing skips the queue. It doesn't seem to read the official registry, so it's a manual step.

Where you can't list it

Two places you might expect to see here don't take this kind of server. Smithery shut down its hosting, accounts and CLI on 31 October 2026 after Arcade bought it, and kept only a curated directory, with no way to submit a server. If you have a smithery.yaml in your repo, it's now purely decorative. And Claude's own directory no longer accepts MCP Bundles: it lists remote servers on public HTTPS with OAuth, which a server you run on your own network isn't. Bundles are still the easiest way for someone to install a server in Claude Desktop from a download link. They just aren't a way into a directory.

Make the server easy to inspectMost of these directories judge a server by starting it and reading its tools, not by reading your README. Good tool names, titles, descriptions and annotations, a server that starts without credentials, and a Dockerfile that builds from a clean checkout will do more for your listings than any amount of copy.

Checklist

If you're shipping your own server, this is the list I'd work through:

  • Release from a tag, into a draft, and publish only once every asset is attached.
  • Ship a multi-architecture image with the io.modelcontextprotocol.server.name label.
  • Ship one .mcpb per OS and processor, with the tool list generated from the server and the manifest checked by mcpb validate.
  • Keep a templated server.json in the repo, stamp it in CI, and publish it with mcp-publisher login github-oidc.
  • Check the bundle manifest and server.json agree on every pull request.
  • Pin every tool the release depends on, by version and checksum.
  • Then get listed: the official registry first, then the directories that don't read it.

All of it is in the repos, so help yourself: the release workflow, the bundle tool and the release docs. Every server is listed at mcp.mattoddie.dev.

Written by · Markdown version