go-mcp
by dstotijn·★ 16·Score 36
A Go library for implementing MCP servers with protocol support, type-safe handlers, and validation.
Overview
go-mcp is a comprehensive Go implementation of the Model Context Protocol that supports both server and client functionality. It offers type-safe RPC handlers without reflection and built-in validation of tool arguments, addressing key security and reliability concerns. The library follows the latest protocol revision (2024-11-05), making it suitable for production implementations that require strict adherence to the specification.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose go-mcp if you're developing Go applications that need to implement MCP servers or clients with type safety and built-in validation.
When NOT to choose this
Avoid if you need extensive documentation or examples beyond the basic server example provided in the repository.
Comparable tools
Installation
Installation
go get github.com/dstotijn/go-mcpFor Claude Desktop integration, add to your claude_desktop_config.json:
{
"mcpServers": {
"go-mcp": {
"command": "go",
"args": ["run", "github.com/dstotijn/go-mcp"]
}
}
}FAQ
- What Go versions are supported?
- The library supports Go 1.21 and later versions.
- Does it support all MCP features?
- It currently supports protocol revision 2024-11-05 including server and client functionality with type safety and validation.
Compare go-mcp with
Last updated · Auto-generated from public README + GitHub signals.