gomcp
Active·★ 13·Apache-2.0·Updated 2026-05-28
The fast, idiomatic way to build MCP servers in Go. Gin-like DX with struct-tag auto schema, middleware, adapters for Gin/OpenAPI/gRPC.
GoMCP is a Go framework for building Model Context Protocol servers — described as "Gin for MCP." It provides struct-tag-based automatic JSON schema generation, a full middleware chain (logging, auth, rate limiting, OpenTelemetry), tool groups, and one-line imports for Gin routes, OpenAPI/Swagger specs, and gRPC services. Built-in Bearer/API Key/Basic auth with RBAC and an inspector UI included.
#ai#claude#cursor#framework#gin#go#golang#grpc
01
Features
01Automatic JSON Schema generation from Go struct tags (no manual schema writing)
02Full middleware chain: logger, auth, rate limiting, and OpenTelemetry tracing
03One-line import for Gin routes, OpenAPI/Swagger specs, and gRPC services
04Built-in Bearer, API Key, and Basic auth with RBAC support
05Inspector UI and mcptest package for testing included
02
Compatibility
Go 1.25+
Go 1.25+
Verified via docs
Claude Desktop
Supported
Verified via docs
Cursor
Supported
Verified via docs
03
Quick start
1
$ go get github.com/zhangpanda/gomcp
04
Use cases
↳Building production-grade MCP servers in Go with minimal boilerplate
↳Exposing existing Gin or gRPC services as MCP tools without rewriting
↳Adding authentication and rate limiting to MCP servers via middleware
05
Alternatives
context-mode★ 16.0k
Context window optimization for AI coding agents. Sandboxes tool output, 98% reduction. 12 platforms
Auto-claude-code-research-in-sleep★ 11.0k
ARIS ⚔️ (Auto-Research-In-Sleep) — Claude Code skills for autonomous ML research: cross-model review loops, idea discovery, and experiment automation via Codex MCP
agents-best-practices★ 1.1k
Provider-neutral Agent Skill for Codex, Claude Code, and agentic harness design.
openagent★ 5.1k
⚡️AI Cloud OS: Open-source enterprise-level AI knowledge base and MCP (model-context-protocol)/A2A (agent-to-agent) management platform with admin UI, user management and Single-Sign-On⚡️, supports ChatGPT, Claude, Llama, Ollama, HuggingFace, etc., chat bot demo: https://ai.casibase.com, admin UI demo: https://ai-admin.casibase.com
Related searches
Comments
Log in to leave a comment
No comments yet. Be the first!