Gin-MCP- All Gin APIs are now MCP-compatible without rewriting
Gin-MCP- All Gin APIs are now MCP-compatible without rewriting
(Just add two lines of code to integrate the library!) I built gin-mcp to automatically expose existing Gin web APIs as Model Context Protocol (MCP) tools, making them usable by clients like Cursor with minimal effort. It uses reflection on your *gin.Engine to discover endpoints and infers basic schemas for path and query parameters automatically. The idea is to be zero-configuration by default --- you add it to your existing Gin app, provide a BaseURL, mount the MCP handler (mcp.Mount("/mcp")), and your API becomes available as tools. For more complex scenarios where inference isn't enough (e.g., specific struct validation, request body definitions), you can explicitly define schemas using mcp.RegisterSchema(method, path, querySchema, bodySchema). You can also filter which endpoints are exposed. It aims to reduce the boilerplate needed to connect internal APIs to MCP-compatible AI tools, letting you leverage your existing backend services more easily. Check out the repo for code, examples, and usage details: https://github.com/ckanthony/gin-mcp Feedback is welcome!
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
A MISRA C compatible AES, AES-GCM, and AES-CMAC implementation
HttpClientModule with parameter encodings compatible with back ends
A redux-compatible redux wrapper
Tkinter-Compatible Multithreading
OS3-RNode, an RNode-Compatible LoRa Modem on CH32V003
Nespresso Compatible Pods
Expreduce 0.4, a free Mathematica-compatible algebra system in Go
emcee – connect agents to APIs (via MCP)
Sigh* Taco Bell MCP
MCP Harbor – An MCP Registry