Mcp-Golang

•
1.2k
•

Enables developers to write Model Context Protocol servers and clients in Go with minimal code.

Mcp-golang is an unofficial implementation of the Model Context Protocol (MCP) in Go, designed to simplify the creation of MCP servers and clients. It offers type safety through native Go structs, customizable transports (stdio, HTTP, Gin), and low-boilerplate code generation for MCP endpoints. The modular design allows developers to use all components or select specific parts. It supports bidirectional communication and includes features for tool calls, prompts, and resource management, making it suitable for integrating with tools like Claude Desktop.

Key Features

01Automatic schema generation, deserialization, and error handling.
02Low boilerplate code generation for MCP endpoints.
03645 GitHub stars
04Type-safe tool arguments defined as native Go structs.
05Built-in transports (stdio, HTTP, Gin) with custom transport support.
06Modular design allowing selective use of components.

Use Cases

01Building clients to interact with MCP-enabled services.
02Developing custom transports for specific communication requirements.
03Creating MCP servers for integration with AI tools.