MCP Catalogs
Home

go-mcp

by MegaGrindStone·46·Score 36

Go implementation of MCP protocol with server and client functionality, supporting tools, resources, and prompts.

developer-toolsai-llmfile-system
9
Forks
2
Open issues
13 mo ago
Last commit
2d ago
Indexed

Overview

go-mcp is a complete Go implementation of the Model Context Protocol (MCP), providing both server and client libraries. It supports all MCP capabilities including tools, resources, and prompts with pluggable transport options (SSE and Standard IO). The implementation includes comprehensive error handling, progress tracking, and session management. The codebase is well-structured with clear examples and follows the official MCP specification.

Try asking AI

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

you:Building Go-based LLM applications with tool integration
you:Creating MCP servers for file system operations
you:Implementing real-time notifications and data synchronization
you:Is this implementation stable for production use?
you:What transport options are available?

When to choose this

Choose go-mcp when you need to build MCP servers or clients in Go, especially for systems requiring pluggable transport options like SSE or Standard IO.

When NOT to choose this

Avoid go-mcp if you need stability, as the main branch is noted to contain unreleased changes that may be unstable. Consider alternatives if you require a more mature implementation.

Comparable tools

modelcontextprotocol/serversnomic-ai/duck-mcpgithub.com/modelcontextprotocol/sdk-python

Installation

go get github.com/MegaGrindStone/go-mcp

For Claude Desktop, add this to your configuration:

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

FAQ

Is this implementation stable for production use?
The README mentions that the main branch may be unstable and recommends using tagged releases. It's currently in 0.x version, so breaking changes may occur with minor version bumps until v1.0.0 is released.
What transport options are available?
The library supports both Server-Sent Events (SSE) for web-based real-time updates and Standard IO for command-line tool integration.

Compare go-mcp with

GitHub →

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