MCP Catalogs
Home

go-mcp

by dstotijn·16·Score 36

A Go library for implementing MCP servers with protocol support, type-safe handlers, and validation.

developer-toolsai-llm
4
Forks
1
Open issues
12 mo ago
Last commit
2d ago
Indexed

Overview

go-mcp is a comprehensive Go implementation of the Model Context Protocol that supports both server and client functionality. It offers type-safe RPC handlers without reflection and built-in validation of tool arguments, addressing key security and reliability concerns. The library follows the latest protocol revision (2024-11-05), making it suitable for production implementations that require strict adherence to the specification.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Building MCP servers in Go for enterprise AI applications
you:Creating Go-based clients to interact with MCP services
you:Implementing custom MCP tools with strong typing and validation
you:What Go versions are supported?
you:Does it support all MCP features?

When to choose this

Choose go-mcp if you're developing Go applications that need to implement MCP servers or clients with type safety and built-in validation.

When NOT to choose this

Avoid if you need extensive documentation or examples beyond the basic server example provided in the repository.

Comparable tools

github.com/modelcontextprotocol/go-sdkgithub.com/exercism/mcp-gogithub.com/samuelcolvin/go-mcp

Installation

Installation

go get github.com/dstotijn/go-mcp

For Claude Desktop integration, add to your claude_desktop_config.json:

{
  "mcpServers": {
    "go-mcp": {
      "command": "go",
      "args": ["run", "github.com/dstotijn/go-mcp"]
    }
  }
}

FAQ

What Go versions are supported?
The library supports Go 1.21 and later versions.
Does it support all MCP features?
It currently supports protocol revision 2024-11-05 including server and client functionality with type safety and validation.

Compare go-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.