Official MCP Registry
Publish your MCP server to the official MCP Registry under your own domain, so MCP directories such as mcptry list it and agents can find it.
The official MCP Registry is where MCP clients and directories find servers. You publish a server.json that describes your MCP server, and pnpm mcp:server-json writes it from your config.
The script refuses while config.mcpServer.enabled is off: there is no server to list.
Generate server.json
pnpm mcp:server-json # API at <baseUrl>/api
pnpm mcp:server-json --api-url https://api.example.com # a separately deployed backend| Field | Comes from |
|---|---|
name | config.mcpServer.registryName when set (a GitHub namespace such as io.github.<owner>/acme), else config.domain reversed plus your site name, e.g. com.example/acme |
title | config.siteName |
description | config.seo.description: 1-100 characters, and 40 or more reads better in directories |
version | version in the root package.json (1.0.0 when absent) |
websiteUrl | config.baseUrl |
icons | config.logo.square, resolved against config.baseUrl |
repository | repository in the root package.json, when it is on GitHub or GitLab |
remotes | <api>/mcp over streamable HTTP |
The file is gitignored: it is derived from config, so generate it right before each publish. The registry accepts each version once, so raise version in the root package.json before you publish a change.
Publish it
brew install mcp-publisher, or a binary from the registry releases.name (under a GitHub namespace, skip this and log in with mcp-publisher login github instead). Generate a key pair and publish its public key as a DNS TXT record on the apex domain, or as a file served at https://<your-domain>/.well-known/mcp-registry-auth (put it in apps/web/public/.well-known/). The registry's authentication guide has the exact openssl commands.mcp-publisher login dns --domain example.com --private-key <key>, or mcp-publisher login http with the same flags.mcp-publisher publish in the folder that holds server.json.Keep key.pem out of the repo (*.pem is gitignored). macOS's built-in openssl cannot make Ed25519 keys; use OpenSSL 3 (brew install openssl@3) or the ECDSA P-384 commands.
Directories that read the registry grade the tool list itself - see what directories grade.