go-mcp
go-mcp is a Go SDK designed for building Model Context Protocol (MCP) servers with ease and confidence.
The go-mcp SDK provides a type-safe and intuitive interface for developers to create MCP servers efficiently. It emphasizes a simple and ergonomic API that reduces the learning curve, allowing developers to focus on building functionality rather than wrestling with complex code structures. With its code generation capabilities, it ensures that tools and parameters are statically typed, catching errors at compile time, which enhances reliability and developer productivity. Although this repository is deprecated in favor of the official MCP SDK, it still serves as a valuable resource for understanding how to structure and implement MCP servers in Go. The provided examples and quick start guide make it easy for newcomers to get started with server development, showcasing the essential components and directory structure needed for a functional MCP server.
Compatible with
Install
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"go-mcp": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-go-mcp"
]
}
}
}Config File Location
Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/claude/claude_desktop_config.json
Some servers require additional setup - check the GitHub README for specific instructions.