Server Card
How the gateway publishes its MCP Server Card and AI Catalog, so that a client that knows only the host name finds the MCP endpoint, its name and its protocol version before it connects.
A Server Card (MCP SEP-2127) is a small public JSON document. It tells a client which MCP server is at a URL and how to connect to it, before the client sends any MCP request. The gateway serves two discovery documents:
| Path | Media type | What it is |
|---|---|---|
{mcp_path}/server-card | application/mcp-server-card+json | The Server Card of the MCP endpoint, for example https://gw.example.com/mcp/server-card. |
/.well-known/ai-catalog.json | application/ai-catalog+json | The domain index. Its one entry points to the Server Card. |
Both need a public URL of the MCP endpoint. The gateway uses the first value that is set:
mcp.registry.urlgovernance.access.resource_metadata.resourcegateway.server.canonical_urlwith the MCP path
When none of them is set, both paths answer 404. A gateway that the
operator deploys always has resource_metadata, so it always serves both.
What the card contains
{
"$schema": "https://static.modelcontextprotocol.io/schemas/v1/server-card.schema.json",
"name": "com.example/weather",
"version": "0.10.4",
"title": "Weather",
"description": "Weather forecasts for any city",
"websiteUrl": "https://example.com/docs",
"icons": [{ "src": "https://example.com/icon.png", "mimeType": "image/png", "sizes": ["48x48"] }],
"remotes": [
{
"type": "streamable-http",
"url": "https://gw.example.com/mcp",
"supportedProtocolVersions": ["2026-07-28"]
}
]
}
| Field | Value |
|---|---|
name | mcp.registry.name when it has the card form namespace/name (3 to 200 characters), else dev.mcpg/gateway. |
version | The gateway version, the same as serverInfo.version. |
title | mcp.server_info.title, when it has 1 to 100 characters. |
description | mcp.registry.description, else mcp.server_info.description, else MCP gateway. A text that is not 1 to 100 characters gives MCP gateway. |
websiteUrl | mcp.server_info.website_url, when it is an http or https URL. |
icons | The mcp.server_info.icons that the card schema accepts: a src that is an http/https URL or a data: URI, sizes WxH or any, theme dark or light. The card does not include an icon that it cannot accept. |
remotes | One streamable-http remote: the public URL of the MCP endpoint and the protocol revision that the gateway speaks. |
The card does not list tools, resources or prompts. A client gets them from
the live connection, because they change with the caller. While MCP Events
delivers webhooks, the remote's extensionsInfo also carries the webhook
signing keys and egress ranges. Refer to
MCP Events.
mcp:
registry:
name: com.example/weather
description: Weather forecasts for any city
server_info:
title: Weather
website_url: https://example.com/docs
icons:
- { src: "https://example.com/icon.png", mime_type: image/png, sizes: ["48x48"] }
gateway:
server:
canonical_url: https://gw.example.com
The AI Catalog
/.well-known/ai-catalog.json lets a client that knows only the host name
find the card:
{
"specVersion": "1.0",
"entries": [
{
"identifier": "urn:air:example.com:mcp:weather",
"type": "application/mcp-server-card+json",
"url": "https://gw.example.com/mcp/server-card",
"displayName": "Weather",
"description": "Weather forecasts for any city",
"version": "0.10.4"
}
]
}
The identifier comes from the card name: the namespace is read back as a
domain, so com.example/weather gives urn:air:example.com:mcp:weather.
HTTP behavior
Both documents are public and read-only. They need no authentication, and any web page can read them:
Access-Control-Allow-Origin: *,Access-Control-Allow-Methods: GET,Access-Control-Allow-Headers: Content-Type, If-None-MatchandAccess-Control-Expose-Headers: ETag. AnOPTIONSpreflight gets the same headers.gateway.server.corsdoes not apply to these two paths: its origin list controls only the MCP endpoint.Cache-Control: public, max-age=300, and anETagof the document. A request whoseIf-None-Matchnames thatETaggets304 Not Modified. The cache time is short because the card can carry webhook signing keys, which rotate.- When
gateway.server.canonical_urlis set, a request on another host name gets a308redirect to the canonical host, as every other path does.
Serve the gateway over HTTPS in production. The card specification permits plain HTTP only for local development.
Check a server's card
mcpg-inspector check <url> runs the server-card check. A server without a
card passes, because the card is optional. A served card must have the card
media type, an Access-Control-Allow-Origin header, and the required members
and formats of the v1 card schema.