mcp-golang

mcp-golang is an unofficial Go implementation of the Model Context Protocol, enabling developers to write MCP servers and clients with minimal code. It offers type safety, custom transports, and modular components.

756
53

Here's a summary of the README content:

The mcp-golang library is an unofficial Go implementation of the Model Context Protocol (MCP), designed to simplify the creation of MCP servers and clients. It offers type safety by using native Go structs for tool arguments, automatically handling schema generation and deserialization. The library supports custom transports, including built-in stdio (for full feature support) and HTTP (for stateless communication) options.

Key highlights include low boilerplate code, modular design, and bidirectional communication support. The library is split into transport, protocol, and server/client components. Example usage includes server and client implementations, with HTTP server examples using standard HTTP or the Gin framework. It supports tools, prompts, and resources with features like change notifications and pagination. The library can be integrated with Claude Desktop by configuring the claude_desktop_config.json file. Contributions are welcome, and support is available on the Discord server.

Repository

ME
metoro-io

metoro-io/mcp-golang

Created

December 7, 2024

Updated

March 28, 2025

Language

Go

Category

Developer Tools