Gin
Createdckanthony
Exposes existing Gin endpoints as Model Context Protocol (MCP) tools, enabling instant use by MCP-compatible clients.
About
Gin-MCP is a zero-configuration library that seamlessly bridges your Gin API with the Model Context Protocol (MCP), making your endpoints instantly accessible as tools within MCP-compatible clients. It automatically discovers routes, infers schemas, and mounts the MCP server directly onto your Gin engine, streamlining the integration process and maximizing developer productivity. While offering a zero-config default, it also allows for customization of schemas and endpoint exposure, providing flexibility when needed.
Key Features
- Automatic route discovery
- Schema inference from route parameters and request/response types
- 24 GitHub stars
- Customizable schemas for fine-grained control
- Direct integration with existing Gin APIs
- Selective endpoint exposure using operation IDs or tags
Use Cases
- Quickly expose API endpoints as tools for use in environments like Cursor
- Connect a Gin API to MCP clients without writing boilerplate code
- Customize automatically generated schemas for complex data structures