# Fix: An MCP server card is published

> Web-audit fix skill for the `mcp-server-card` check (MCP, SHOULD).

## Goal

Publish a SEP-2127 server card for your MCP server and list it in your AI catalog.

## Fix

Serve a SEP-2127 server card at `<endpoint>/server-card` (`/mcp/server-card` for an endpoint at
`/mcp`) as `application/mcp-server-card+json`. It carries `$schema`
(`https://static.modelcontextprotocol.io/schemas/v1/server-card.schema.json`), `name` in reverse-DNS
form (`com.example/server`), `version`, `description`, and `remotes`, one entry per endpoint with
`type` (`streamable-http`) and `url`. List it in `/.well-known/ai-catalog.json` as an entry of type
`application/mcp-server-card+json` with the card's `url`. A card at `/.well-known/mcp/server-card.json`
is the legacy SEP-1649 shape: it still passes, and SEP-2127 is the shape to publish.

## Resources

- [SEP-2127](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2127)
- [Server card discovery](https://github.com/modelcontextprotocol/experimental-ext-server-card/blob/main/docs/discovery.md)
- [AI catalog](https://github.com/Agent-Card/ai-catalog/blob/main/specification/ai-catalog.md)

## Copy-paste prompt

Paste this into your coding agent. [Your audit](https://anc.dev/audit) adds what it observed for this check:

```text
Goal: Publish a SEP-2127 server card for your MCP server and list it in your AI catalog
Fix: Serve a SEP-2127 server card at `<endpoint>/server-card` (`/mcp/server-card` for an endpoint at `/mcp`) as `application/mcp-server-card+json`. It carries `$schema` (`https://static.modelcontextprotocol.io/schemas/v1/server-card.schema.json`), `name` in reverse-DNS form (`com.example/server`), `version`, `description`, and `remotes`, one entry per endpoint with `type` (`streamable-http`) and `url`. List it in `/.well-known/ai-catalog.json` as an entry of type `application/mcp-server-card+json` with the card's `url`. A card at `/.well-known/mcp/server-card.json` is the legacy SEP-1649 shape: it still passes, and SEP-2127 is the shape to publish.
Skill: https://anc.dev/fix/mcp-server-card
Docs: https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2127, https://github.com/modelcontextprotocol/experimental-ext-server-card/blob/main/docs/discovery.md, https://github.com/Agent-Card/ai-catalog/blob/main/specification/ai-catalog.md
```

## Verify

Re-run the audit at [https://anc.dev/audit](https://anc.dev/audit) or call the `audit_website` MCP tool; the `mcp-server-card` check should report `pass`.
