Gateway
Gateway4 min

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:

PathMedia typeWhat it is
{mcp_path}/server-cardapplication/mcp-server-card+jsonThe Server Card of the MCP endpoint, for example https://gw.example.com/mcp/server-card.
/.well-known/ai-catalog.jsonapplication/ai-catalog+jsonThe 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:

  1. mcp.registry.url
  2. governance.access.resource_metadata.resource
  3. gateway.server.canonical_url with 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

json
{
  "$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"]
    }
  ]
}
FieldValue
namemcp.registry.name when it has the card form namespace/name (3 to 200 characters), else dev.mcpg/gateway.
versionThe gateway version, the same as serverInfo.version.
titlemcp.server_info.title, when it has 1 to 100 characters.
descriptionmcp.registry.description, else mcp.server_info.description, else MCP gateway. A text that is not 1 to 100 characters gives MCP gateway.
websiteUrlmcp.server_info.website_url, when it is an http or https URL.
iconsThe 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.
remotesOne 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.

yaml
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:

json
{
  "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-Match and Access-Control-Expose-Headers: ETag. An OPTIONS preflight gets the same headers. gateway.server.cors does not apply to these two paths: its origin list controls only the MCP endpoint.
  • Cache-Control: public, max-age=300, and an ETag of the document. A request whose If-None-Match names that ETag gets 304 Not Modified. The cache time is short because the card can carry webhook signing keys, which rotate.
  • When gateway.server.canonical_url is set, a request on another host name gets a 308 redirect 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.