mcp-golang
mcp-golang is an unofficial Go implementation of the Model Context Protocol (MCP), used to write MCP servers and clients with a small amount of Go code. It provides type safety: tool parameters can be defined as native Go structs, and the library handles automatic schema generation, deserialization, and error handling; it has built-in stdio and HTTP transports and also supports custom transports, where stdio supports full bidirectional communication, while HTTP is stateless request-response and does not support notifications. The library adopts a modular design, divided into three parts: transport, protocol, and server/client, and can generate MCP endpoints for tools, prompts, and resources, reducing boilerplate code. Documentation is located at https://mcpgolang.com,安装命令为 go get github.com/metoro-io/mcp-golang. It can be integrated via the Claude Desktop configuration file, and the repository provides HTTP server and client examples. The project was created by Metoro; the HTTP transport and Gin integration are stateless, and HTTPS custom authentication support is still under development.