Awesome MCPGo

modelcontextprotocol/go-sdk

⭐ 5094 Go added to this list on 2025-07-05 repository created 2025-04-23

The project "modelcontextprotocol/go-sdk" is the official Go SDK for the Model Context Protocol (MCP), designed to provide tools and APIs for building MCP clients and servers. It is currently unreleased and maintained in collaboration with Google, with a planned stable release in August 2025. The SDK is intended to facilitate communication between MCP clients and servers, supporting the construction and usage of these components through well-defined APIs. The SDK consists of two main packages: the "mcp" package, which defines the primary APIs for MCP client and server construction and interaction, and the "jsonschema" package, which implements JSON Schema for defining input and output schemas for MCP tools. The SDK is still in an unstable state and subject to breaking changes, encouraging users to test it and provide feedback through bug reports and API proposals. The repository includes example code demonstrating how an MCP client can communicate with an MCP server over standard input/output streams, showcasing the creation of clients, servers, and tools that handle specific tasks such as greeting users. The design and development of this SDK have been inspired by several existing Go MCP SDKs, and the project acknowledges contributions from the community. The SDK aims to support a thriving ecosystem of Go MCP clients and servers by providing a robust and official implementation. The project is licensed under the MIT License, and further design discussions and contributions are encouraged through GitHub issues and discussions. Overall, this SDK is a foundational tool for developers looking to implement MCP in Go, offering a structured and extensible approach to building interoperable MCP components.

https://github.com/modelcontextprotocol/go-sdk

apiapisclient-server-communicationclient-server-interactionclientscollaborationcollaboration-with-googlecommunicationdesignexample-codeexamplesgo-sdkgooglejson-schemamcpmcp-clientsmcp-serversmit-licensemodel-context-protocolopen-sourceprotocolsdk-designserverssidecar-processsoftware-development-kittool-inputtool-invocationtool-outputunreleasedunstable

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.

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.

ktr0731/go-mcp

go-mcp is a type-safe and intuitive Go SDK designed to simplify and enhance the development of Model Context Protocol (MCP) servers with robust features and developer-friendly APIs.

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.