go-mcp
by MegaGrindStone·★ 46·Score 36
Go implementation of MCP protocol with server and client functionality, supporting tools, resources, and prompts.
Overview
go-mcp is a complete Go implementation of the Model Context Protocol (MCP), providing both server and client libraries. It supports all MCP capabilities including tools, resources, and prompts with pluggable transport options (SSE and Standard IO). The implementation includes comprehensive error handling, progress tracking, and session management. The codebase is well-structured with clear examples and follows the official MCP specification.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose go-mcp when you need to build MCP servers or clients in Go, especially for systems requiring pluggable transport options like SSE or Standard IO.
When NOT to choose this
Avoid go-mcp if you need stability, as the main branch is noted to contain unreleased changes that may be unstable. Consider alternatives if you require a more mature implementation.
Comparable tools
Installation
go get github.com/MegaGrindStone/go-mcpFor Claude Desktop, add this to your configuration:
{
"mcpServers": {
"go-mcp": {
"command": "go",
"args": ["run", "github.com/MegaGrindStone/go-mcp"],
"env": {
"GOPATH": ""
}
}
}
}FAQ
- Is this implementation stable for production use?
- The README mentions that the main branch may be unstable and recommends using tagged releases. It's currently in 0.x version, so breaking changes may occur with minor version bumps until v1.0.0 is released.
- What transport options are available?
- The library supports both Server-Sent Events (SSE) for web-based real-time updates and Standard IO for command-line tool integration.
Compare go-mcp with
Last updated · Auto-generated from public README + GitHub signals.