Gin-MCP: Zero-Config Gin to MCP Bridge
@ckanthony
关于 Gin-MCP: Zero-Config Gin to MCP Bridge
Enable MCP features for any Gin API with a line of code
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Gin-MCP?
Gin-MCP is an opinionated, zero-configuration library that automatically exposes existing Gin (Go web framework) endpoints as Model Context Protocol (MCP) tools. It is for developers who want their Gin APIs to be instantly usable by MCP-compatible clients like Cursor, Claude Desktop, Continue, and Zed.
How to use Gin-MCP?
Install with go get github.com/ckanthony/gin-mcp. In your Go code, create a Gin engine, define your routes, then initialize an MCP server with server.New(r, &server.Config{...}) (providing a Name, Description, and explicit BaseURL), mount it at a path like /mcp, and run the Gin server as usual.
Key features of Gin-MCP
- Automatic discovery of all registered Gin routes.
- Generates MCP tool schemas from route parameters and types.
- Selective endpoint exposure using operation IDs or tags.
- Forwards Authorization header to internal tool calls.
- Supports Streamable HTTP Transport for stateless deployments.
- Zero-configuration with optional customization via RegisterSchema.
Use cases of Gin-MCP
- Expose a Gin API to AI coding assistants like Cursor and Claude Desktop.
- Enable MCP tools for existing production Gin services without code changes.
- Provide structured API access to MCP clients for automated workflows.
- Filter which endpoints are exposed to MCP clients for security.
FAQ from Gin-MCP
How does Gin-MCP differ from manually implementing MCP tools?
Gin-MCP automatically discovers routes and generates schemas, eliminating the need to write boilerplate MCP tool definitions.
What runtime dependencies are required?
Go and the Gin web framework. The library is imported via `go
开发工具 分类下的更多 MCP 服务器
TalkToFigma
sonnylazuardiTalkToFigma: MCP integration between AI Agent (Cursor, Claude Code, Codex) and Figma, allowing Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
sentry-mcp
getsentryAn MCP server for interacting with Sentry via LLMs.
Code Index MCP
johnhuang316A Model Context Protocol (MCP) server that helps large language models index, search, and analyze code repositories with minimal setup
Deepwiki MCP Server
regenrek📖 MCP server for fetch deepwiki.com and get latest knowledge in Cursor and other Code Editors
Serena
oraiosA powerful MCP toolkit for coding, providing semantic retrieval and editing capabilities - the IDE for your agent
评论