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
seps/2127-mcp-server-cards.md
Outdated
| Servers using HTTP-based transports SHOULD provide their server card at: | ||
|
|
||
| ``` | ||
| /.well-known/mcp/server-card.json |
There was a problem hiding this comment.
One host can have several MCP Servers. So if you want to have a single well-known URI location, you might first need to return a list of URLs for Server Card files.
In general, I think it would be good to separate defining the .well-known URI discovery from how the MCP Server Card (or extended server.json?) is defined. We could move this discovery aspect maybe completely to the AI Card (https://github.com/Agent-Card/ai-card) initiative.
seps/2127-mcp-server-cards.md
Outdated
|
|
||
| ## Abstract | ||
|
|
||
| This SEP proposes adding a standardized discovery mechanism for HTTP-based MCP servers using a `.well-known/mcp.json` endpoint. This enables clients to automatically discover server capabilities, available transports, authentication requirements, protocol versions and descriptions of primitives before establishing a connection. |
There was a problem hiding this comment.
This states, .well-known/mcp.json, further down it states /.well-known/mcp/server-card.json.
In any case, I think we need to consider that a host can have several MCP Servers at the same time and the well known location has to probably give a list of URLs to multiple MCP Server Cards.
seps/2127-mcp-server-cards.md
Outdated
|
|
||
| ### Field Descriptions | ||
|
|
||
| Most fields follow the initialization result from: https://modelcontextprotocol.io/specification/2025-06-18/basic/lifecycle#initialization |
There was a problem hiding this comment.
How does this relate to the MCP Registry server.json format? This is missing the tools, prompts and resource collection for sure, but if it could be added here - do we need a separate standard for MCP Server Card?
There is also AI Card which in my understanding also addresses this, but tries to find at least in parts a shared model. It also proposes a .well-known URI. But I like the idea that MCP by itself at least defines its own MCP Server Card / complete server.json format. AI Card could build on top of that.
Then this proposal could concentrate on the .well-known URI discovery side, and we don't have two different formats to describe an MCP Server.
|
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-card#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
|
…2152) * First pass * Fix Prettier formatting Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Refactor cardinality * Remove note about Initialization * Tweak intro to reflect discovery as one use case * Update seps/2127-mcp-server-cards.md Co-authored-by: David Soria Parra <14013+dsp@users.noreply.github.com> * Update seps/2127-mcp-server-cards.md Co-authored-by: David Soria Parra <14013+dsp@users.noreply.github.com> * Move AI Card .well-known consideration into a Discovery section * Re-add * Reframe mirror section --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: David Soria Parra <14013+dsp@users.noreply.github.com>
|
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:
|
|
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. |
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.