Awesome MCPGo

ktr0731/go-mcp

⭐ 143 Go added to this list on 2025-05-06 repository created 2025-04-13

The project "go-mcp" is a Go SDK designed specifically for building Model Context Protocol (MCP) servers with a focus on type safety, simplicity, and developer-friendly APIs. It aims to make MCP server development straightforward and reliable by providing a type-safe interface that catches errors at compile time rather than runtime, enhancing robustness and reducing bugs. The SDK offers an idiomatic Go interface that is intuitive and easy to use, allowing developers to quickly build MCP servers without a steep learning curve. Key features include type-safe code generation for tools and prompt parameters, a simple and natural API design, and support for various MCP capabilities such as tools, logging, prompts, resource subscriptions, and completion. The SDK also supports cancellation and is actively developed with some features like batching, streamable HTTP transport, and progress notification still under development. It explicitly does not support dynamic prompt and tool changes due to Go's static typing limitations, recommending other languages like TypeScript for such use cases. The project provides a clear quick start guide with example directory structures and code snippets demonstrating how to define an MCP server, generate code, and implement server logic. An example given is a temperature conversion MCP server that converts temperatures between Celsius and Fahrenheit using the SDK's generated types and handlers. Overall, go-mcp is a specialized SDK that facilitates the creation of MCP servers in Go by providing a robust, type-safe, and ergonomic development experience, making it suitable for developers looking to implement MCP servers with confidence and efficiency.

https://github.com/ktr0731/go-mcp

api-ergonomicscancellationcode-generationcompletiondeveloper-friendlygo-sdkgolangjson-rpcloggingmcpmcp-servermodel-context-protocolpromptsresource-subscriptionresourcesserver-developmentstatic-typingtemperature-conversiontemperature-conversion-exampletoolstype-safe

Also in Go

mark3labs/mcp-go

A Go SDK implementing the Model Context Protocol (MCP) to enable seamless integration between LLM applications and external data sources and tools.

modelcontextprotocol/go-sdk

The official Go SDK for the Model Context Protocol (MCP) providing tools and APIs to build MCP clients and servers, currently unreleased and maintained in collaboration with Google.

yincongcyincong/mcp-client-go

Go client library for the Model Context Protocol that registers and calls many MCP servers through one unified API, reading Claude style configuration files and shipping runnable demos.

strowk/foxy-contexts

A Go library for building MCP servers declaratively, with dependency injection, tool and resource registration, and a testing harness.

ckanthony/gin-mcp

A zero-configuration Go library that exposes an existing Gin web framework's routes as MCP tools with a single line of code.