MCP Server Card

Serve an MCP Server Card for automatic agent discovery.

For the complete documentation index, see llms.txt. Markdown variants of every page are available by appending .md to the URL.

xmcp automatically publishes an MCP Server Card at /.well-known/mcp/server-card.json. This lets agent discovery tools find your server and auto-configure a connection without any manual setup.

The card is built from the serverInfo fields in your xmcp.config.ts:

xmcp.config.ts

Standalone HTTP servers

No extra setup needed. Every xmcp HTTP server exposes the card automatically:

Next.js adapter

The route is not scaffolded automatically because not every project needs it. Add it manually when you want discovery:

app/.well-known/mcp/server-card.json/route.ts

Validation

After deploying, verify your server card is discoverable:

Look for checks.discovery.mcpServerCard.status === "pass" in the response.

On this page

One framework to rule them all