go-modelcontextprotocol
by Warashi·★ 3·Score 35
A pure Go implementation of the Model Context Protocol without third-party dependencies, supporting tools, resources, and multiple transport mechanisms.
Overview
This is a complete Go implementation of the Model Context Protocol (MCP) that provides a framework for building AI/LLM service backends. The library includes core protocol implementation, JSON-RPC 2.0 support, JSON schema validation, and multiple transport layer implementations including stdio, SSE, and pipe-based communication. It offers flexible URI routing with dynamic parameters and pattern matching capabilities.
Try asking AI
After installing, here are 7 things you can ask your AI assistant:
When to choose this
Choose this implementation when you're building Go-based AI/LLM backends and prefer a dependency-free, pure Go solution with direct control over MCP implementation details.
When NOT to choose this
Avoid this if you need language bindings for Python, JavaScript, or other languages, or if you require extensive ecosystem integrations beyond the core MCP specification.
Tools this server exposes
1 tool extracted from the README (low confidence)exampleToolAn example tool that returns a success result
Note: Tool name 'exampleTool' is inferred from the code example as it's the only tool mentioned in the README, but it appears to be just an example implementation rather than a concrete tool exposed by the library
Comparable tools
Installation
go get github.com/Warashi/go-modelcontextprotocolFor Claude Desktop, add to claude_desktop_config.json:
{
"mcpServers": {
"go-mcp": {
"command": "go",
"args": ["run", "github.com/Warashi/go-modelcontextprotocol"]
}
}
}FAQ
- What transport protocols are supported?
- The library supports stdio, SSE (Server-Sent Events), and pipe-based communication.
- Does it require external dependencies?
- No, this is a pure Go implementation without third-party dependencies.
- Can I use this with Claude Desktop?
- Yes, you can configure it as shown in the installation steps.
Compare go-modelcontextprotocol with
Last updated · Auto-generated from public README + GitHub signals.