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.
The project 'mark3labs/mcp-go' is a Go SDK that implements the Model Context Protocol (MCP), designed to facilitate seamless integration between large language model (LLM) applications and external data sources and tools. MCP is a protocol that allows building servers exposing data and functionalities to LLMs in a secure and standardized manner, similar to web APIs but tailored for LLM interactions. This SDK provides a high-level, easy-to-use interface to create MCP servers with minimal boilerplate code, enabling developers to focus on building tools rather than handling complex protocol details. Key features of the SDK include fast development through a high-level interface, simplicity in building MCP servers, and a comprehensive implementation of the core MCP specification. The SDK supports creating MCP servers that can expose data through Resources (akin to GET endpoints), provide functionality through Tools (similar to POST endpoints), and define interaction patterns through Prompts. It also supports advanced features like session management, request hooks, and middleware for tool handlers. The README provides examples demonstrating how to create MCP servers, add tools such as a calculator or a greeting tool, and handle requests. The SDK is under active development, with core features functional and advanced capabilities being worked on. It includes utilities for managing server lifecycle, tool capabilities, and error handling, making it a robust foundation for integrating LLMs with external systems. Overall, 'mark3labs/mcp-go' is a specialized SDK aimed at developers looking to implement the Model Context Protocol in Go, enabling LLM applications to interact with external data and tools efficiently and securely.
https://github.com/mark3labs/mcp-go
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.
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.
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.
A Go library for building MCP servers declaratively, with dependency injection, tool and resource registration, and a testing harness.
A zero-configuration Go library that exposes an existing Gin web framework's routes as MCP tools with a single line of code.