gin-mcp

gin-mcp

3.5

If you are the rightful owner of gin-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Gin-MCP is a zero-configuration library that bridges Gin APIs to Model Context Protocol (MCP) tools, enabling seamless integration with MCP-compatible clients.

Gin-MCP is an opinionated, zero-configuration library designed to expose existing Gin endpoints as Model Context Protocol (MCP) tools. This allows developers to connect their Gin APIs to MCP clients like Cursor with minimal setup. The library automatically discovers routes, infers schemas, and mounts the MCP server directly onto the existing Gin engine. It aims to maximize developer productivity by reducing the need for boilerplate code and configuration, while still offering flexibility for customization when needed. Gin-MCP is ideal for developers looking to quickly enable MCP features in their applications without altering existing code.

Features

  • Automatic Discovery: Intelligently finds all registered Gin routes.
  • Schema Inference: Automatically generates MCP tool schemas from route parameters and request/response types.
  • Direct Gin Integration: Mounts the MCP server directly onto your existing gin.Engine.
  • Parameter Preservation: Accurately reflects your Gin route parameters in the generated MCP tools.
  • Customizable Schemas: Manually register schemas for specific routes using RegisterSchema for fine-grained control.