Description
Product
Hot Chocolate
Is your feature request related to a problem?
Model Context Protocol was generated as a standard to connect AI systems to data sources in a dynamic way.
Here is the overall architecture (screen capture from https://modelcontextprotocol.io/introduction):
MCP clients interact with MCP servers through tools, resources and prompts, all of which are dynamically discovered by the clients.
These tools provide additional language/information about the actions that can be taken, parameters, data types on input and output, as well as descriptions for everything.
This allows the LLM to interpret the best tool to call along with the appropriate parameters based on the prompt the LLM has received.
Where does GraphQL/HotChocolate come in?
GraphQL has many of the prerequisites for generating an MCP server:
- A type system with descriptions for all inputs/outputs
- Fields on queries and mutations are akin to tools
The solution you'd like
It would be valuable for users of HotChocolate be able to leverage their infrastructure for GraphQL to expose an MCP server.
There are already existing projects which ingest GraphQL schemas and expose them as MCP servers:
https://github.com/hannesj/mcp-graphql-schema
https://github.com/blurrah/mcp-graphql
Additionally, Microsoft has an official MCP server toolkit for C#:
https://github.com/modelcontextprotocol/csharp-sdk
Finally, the specification:
https://spec.modelcontextprotocol.io/specification/2025-03-26/