Mcp-Golang icon

Mcp-Golang

Createdmetoro-io

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

About

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

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

Use Cases

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