Go SDK for Model Context Protocol server/client development
Top 35.7% on sourcepulse
This Go library implements the Model Context Protocol (MCP), enabling developers to build MCP servers and clients with minimal boilerplate. It targets AI developers and engineers building applications that interact with large language models (LLMs) or other AI services, offering type-safe argument handling and flexible transport options.
How It Works
The library leverages Go structs with JSON schema tags to define tool arguments, automatically generating schemas for deserialization and validation. It supports custom transports, including stdio
for full bidirectional communication and http
for stateless interactions, allowing developers to choose the best fit for their needs. The modular design separates transport, protocol, and server/client components for flexibility.
Quick Start & Requirements
go get github.com/metoro-io/mcp-golang
Highlighted Details
stdio
(bidirectional) and http
(stateless) transports, with Gin integration.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
3 weeks ago
1 week