SEP-2127: MCP Server Cards - HTTP Server Discovery via .well-known#2127
SEP-2127: MCP Server Cards - HTTP Server Discovery via .well-known#2127
Conversation
774dde0 to
b199c35
Compare
|
Just adding a note of context for any readers here that as of the current commit, this is the text of the original SEP proposal, but a lot of folks have contributed feedback to the specifics of reworking the shape in this Google Doc. Pasting here for readability: {
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-10-17/server.schema.json",
"name": "io.modelcontextprotocol.anonymous/brave-search",
"description": "MCP server for Brave Search API integration",
"title": "Brave Search",
"websiteUrl": "https://anonymous.modelcontextprotocol.io/examples",
"repository": {
"url": "https://github.com/modelcontextprotocol/servers",
"source": "github",
"subfolder": "src/everything"
},
"version": "1.0.2",
"supportedProtocolVersions": [ "2025-03-12", "2025-06-15" ],
"icons": [ ... ],
"remotes": [ ... ],
"packages": [ ... ],
"capabilities": { ... },
"requires": { ... },
"resources": [ ... ],
"tools": [ ... ],
"prompts": [ ... ],
"_meta": { ... }
}Most significant sticking points so far:
The rest is largely just details we can bikeshed. I think it's important to design this so we introduce no breaking changes to server.json, as any breaking changes would cause major problems for a lot of production registry-related infrastructure and systems in the ecosystem. So my high level thinking would be to:
I also liked @yoannarz's points here that there is a use case for non-owners of MCP servers to use Server Cards. So if we're going to require Server Cards to be comprehensive descriptors of all the capabilities of a server that only a server owner can advertise, we still have a gap like "how do I as a restaurant owner advertise that Yelp's MCP server is the way to make bookings on my website; I don't actually control the details of its tools and capabilities but I know where it lives and want to put that on my website's .well-known" So maybe there is a path where we make Server Card a strict subset of server.json to elegantly fulfill all the above (e.g. perhaps Server Cards = purely Discovery concerns; then server.json is Discovery+Capabilities); will think more on that and circle back. |
|
Shall we also add an optional extended card for ancillary information (such as additional metadata)? |
|
@tadasant It would be great if we can avoid getting two different formats. Instead we could extend the MCP Registry server.json to also cover the requirements that came up here. Then an MCP Server Card would basically be conventions of what has to be provided (required) for describing remote MCP Servers. The discovery mechanism (.well-known) could be moved to the AI Card initiative, then MCP and A2A (potentially also other AI protocols) could share the discovery mechanism and providers / registries can use one instead of multiple. For this, I just drafted a SEP in AI Cards: Agent-Card/ai-catalog#14 My colleagues Vyshnavi and Raluca prepared a JSON Schema of how the MCP Server Card could look like if we combine it as hinted at above. This may help to see if we can get this together. In discussions with @dsp-ant the question came also up if we need two formats or not. As stated, we should not have two different formats to describe an MCP Server for the same protocol. But the registry itself may have additional information, so for consumers of the registry it is plausible to have a superset model of what the registry provides (like calculated properties, more context). I would keep this separate from the format for self-description and publishing to keep that as simple as possible. |
|
@dsp-ant Hi David fyi @tadasant |
|
@dsp-ant to help drive this forward, I've opened a PR against your branch here. If you are aligned with the direction it's going, could we get it merged and then continue community discussion on the remaining open questions (more detail below)? I'm happy to formally sign on as sponsor for this or as an author if helpful. I've taken into account all the feedback from:
Big thank you to @ggoodman, @PederHP, @sdatspun2, @connor4312, @SamMorrowDrums, @Fannon, @maiargu, @electrocucaracha, @ibuildthecloud, @yoannarz, @pcarleton and everyone else commenting and contributing so far; the feedback is all helping progress this forward. I have avoided iterating on some of the more controversial topics, like Pasting the rest of the text from my PR for readability here: Some highlights worth pulling out Relationship to AI CardThe AI Card standard is paving a path to providing a protocol-agnostic MCP Server Cards will provide a richer, MCP-specific definition that can be used by MCP clients to actually connect and start performing MCP operations. We will store these values at Example:
We can develop and iterate on MCP Server Cards largely independently from the broader effort to integrate with AI Cards, as long as we maintain some integration point so it is possible to understand when an entry in an AI Card references an MCP Server Card that is hosted and maintained elsewhere. Instructions as a field in the Server Card@PederHP had a good point here. I think it's reasonable to consider, but we don't have it in supportedProtocolVersionI've moved this field inside the I think it would be reasonable to consider removing this from the SEP to simplify, as we don't currently have it in authenticationI've also moved this field inside the Some topics I think we should continue discussing (but out of scope for landing this PR) into the SEP -- Removing $schema from server.json and not including it in Server CardI've removed the explicit $schema field in this PR. We were planning to do this for the MCP Registry in the next iteration of server.json (rationale here, cc @rdimitrov). Basically, hardcoding the $schema field there introduces an unnecessary breaking change across versions, when we don't have intention to make breaking changes to these shapes. A better solution here would probably be to use something like @vyshnavigadamsetti's suggestion of Removing
|
|
Thanks for driving this forward! Just a quick question for clarity, there was a PR previously opened for community feedback iteration. Happy to align with whatever works best for you and the group. |
My suggestion (feel free to direct us otherwise @dsp) would be that going forward, now that we have solid high level alignment, folks should open PRs for discrete sub-topics. For example, one PR proposing Then David can choose what he wants to pull it on a topic by topic basis and/or make changes to the SEP directly himself. Open threads worth iterating on:
I think each of these could be separate PRs. I'll definitely work on (1) very soon, and can draft more if other folks don't jump on them first. Edit: and maybe some of the smaller changes that are pretty constrained to modifying just one section of the SEP could be made directly as comments and discussed as threads, PR might be overkill for all of them. |
|
Thanks for the suggestion, @tadasant . This makes sense to me. Breaking things down into discrete PRs per sub-topic feels like the right next step now that there's high-level alignment. I'd also be interested to see a bit more community feedback on this approach, and then I'd be happy to help review or contribute where it's most useful. Looking forward to the follow-up PRs! |
|
I opened #2186 as a follow up to @dsp's comment
In the meantime I'll start working on a PR for:
Edit: that PR^ is somewhat intertwined with AI Card discussions, so will likely see where those land before putting something up here. |
|
I tried to clarify the reverse-DNS namespacing for Some ambiguity around reverse-DNS namespacing surfaced during discussions about the modelcontextprotocol/registry#926 Please let me know if this matches the intended interpretation. |
|
Thanks for the thoughtful work on this proposal! (let me know if this feedback/comment is better suited for a different PR) Wanted to raise a scenario we're seeing frequently in practice. We’re working with many small services businesses (gyms, home services, restaurants, spas..etc) to stand up MCP servers or MCP Apps for their business. A large number of these businesses run their websites on hosted platforms like Wix, or Squarespace, and similar builders. They own their custom domains, but many don't have the ability to place arbitrary files at Some more advanced hosting setups for WordPress sites could likely serve files from These businesses are building capabilities like bookings, availability, quotes..etc and will want to adopt server cards to enable better discoverability of their tools, but likely won’t be able to without support from their website hosting platform (which could prioritize platform specific features versus the range of saas products that the small business might be using to enable their tools). I might be misunderstanding how the Just wanted to raise this scenario and consideration to small services businesses building MCP capabilities and looking to evolve with new standards for discoverability. |
|
Excited to see this specification moving forward! On our end, we have a strong need to support localized Would it make sense to extend the current schema to accommodate localized fields? For example, we could modify the description field (and similarly for title) to support either:
To ensure consistency, we should also apply this localization pattern to tool metadata (title and description). This would allow MCP hosts to display tool information in the user’s language, aligning with the broader goal of a localized UX. Happy to discuss about it and see if others feel the need of localization. |
…ields Remove authentication, capabilities, and requires to limit Server Card scope
|
@vyshnavigadamsetti and @ggoodman thanks for input, we will definitely discuss it. And @ggoodman regarding the superset of functionality, I had previously even proposed such a thing: #2091 I think the fundamental problem is that there is no concept in the protocol of configuration -> change in tool surface My linked gist in the PR removing tools specifically calls out many of these different forms of dynamism but we really could do with a form of expressing correlation between config and tool surface that the protocol is aware of before this can really be done in a serious way. And that still doesn't account for deployment or feature flags and other legitimate production patterns that cause functionality drift. I also think people do need to be honest with themselves that if a server simply logs all input and output to a public place, is that not malicious enough that constraining tool schemas is also not really a solution to trust/provenance, but that's a whole other conversation 😅 For example, GitHub (which is one of the most popular servers in existence, serving millions of daily tool calls) will shortly ship MCP APPs to production (from our insiders preview). That will be rolled out as a feature flag in chunks of n users, and at our scale that's a reasonable thing to do. Somehow these plans should converge on a place where servers, gateways, registries and clients can all understand what is going on, I very much agree with that, but there is work to do to achieve that, otherwise we just have half broken things which doesn't really serve anyone. |
…cope reduction Server cards should focus on identity and transport discovery. Capabilities and auth belong in the initialize handshake, not in static discovery documents. Aligns with modelcontextprotocol/modelcontextprotocol#2127 (merged 2026-04-13). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Implements SEP-1649 server card so MCP clients can discover the server's transport and capabilities without prior configuration. Version is read dynamically from package.json. The endpoint advertises the streamable-http transport mounted at /api/mcp. Spec: modelcontextprotocol/modelcontextprotocol#2127
isitagentready.com rejected the initial A2A and MCP cards because:
- A2A spec expects /.well-known/agent-card.json (not agent.json)
- MCP SEP-1649 spec expects /.well-known/mcp/server-card.json with
serverInfo.{name,version}, transport, capabilities as a nested shape,
not flat top-level fields.
Changes:
- Renamed /.well-known/agent.json → agent-card.json
- Expanded content with supportedInterfaces array (REST + WebSocket
transports) as required by the A2A spec
- Moved /.well-known/mcp.json → mcp/server-card.json
- Restructured to serverInfo.{name, version} + transport.{type, install}
+ capabilities.{tools, resources, prompts} per SEP-1649
- Updated agent-skills/index.json to reference the new mcp card path
Refs:
- SEP-1649: modelcontextprotocol/modelcontextprotocol#2127
- A2A agent card: /.well-known/agent-card.json convention
Add a new Discovery section to the draft specification that defines the MCP Catalog format — a minimal, MCP-scoped subset of the AI Catalog specification for domain-level server card discovery. The MCP Catalog is served at /.well-known/mcp/catalog and provides a JSON index of MCP server cards available on a domain. This enables config-free auto-discovery of MCP servers, acting as a transitional mechanism (Plan B) while the cross-protocol AI Catalog standard is being finalized. Key aspects: - Minimal subset of AI Catalog format (specVersion + entries) - Each entry references an MCP server card via mediaType and url - Designed for trivial migration to the full AI Catalog format - CORS, caching, and transport security requirements Related: modelcontextprotocol#2127 Related: modelcontextprotocol#2563 See also: https://github.com/Agent-Card/ai-catalog Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This SEP proposes adding a standardized discovery mechanism for HTTP-based MCP servers using a
.well-known/mcp.jsonendpoint.Moved from: #1649
Summary
This enables clients to automatically discover:
...all before establishing a connection.
Key Features
.well-known/mcp/server-card.json: HTTP endpoint for pre-connection discoverymcp://server-card.json: MCP resource for post-connection discoverySee the full specification in
seps/2127-mcp-server-cards.md.