MCP Catalogs
Home

go-modelcontextprotocol

by Warashi·3·Score 35

A pure Go implementation of the Model Context Protocol without third-party dependencies, supporting tools, resources, and multiple transport mechanisms.

developer-toolsai-llmcommunication
4
Forks
4
Open issues
5 mo ago
Last commit
2d ago
Indexed

Overview

This is a complete Go implementation of the Model Context Protocol (MCP) that provides a framework for building AI/LLM service backends. The library includes core protocol implementation, JSON-RPC 2.0 support, JSON schema validation, and multiple transport layer implementations including stdio, SSE, and pipe-based communication. It offers flexible URI routing with dynamic parameters and pattern matching capabilities.

Try asking AI

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

you:Building Go-based MCP servers for AI applications
you:Creating AI/LLM backends with custom tools and resources
you:Implementing MCP services in containerized or cloud environments
you:Developing AI applications that require low-latency communication
you:What transport protocols are supported?
you:Does it require external dependencies?
you:Can I use this with Claude Desktop?

When to choose this

Choose this implementation when you're building Go-based AI/LLM backends and prefer a dependency-free, pure Go solution with direct control over MCP implementation details.

When NOT to choose this

Avoid this if you need language bindings for Python, JavaScript, or other languages, or if you require extensive ecosystem integrations beyond the core MCP specification.

Tools this server exposes

1 tool extracted from the README (low confidence)
  • exampleTool

    An example tool that returns a success result

Note: Tool name 'exampleTool' is inferred from the code example as it's the only tool mentioned in the README, but it appears to be just an example implementation rather than a concrete tool exposed by the library

Comparable tools

mcp-gopython-mcpnode-mcpmcp-server-pipecd

Installation

go get github.com/Warashi/go-modelcontextprotocol

For Claude Desktop, add to claude_desktop_config.json:

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

FAQ

What transport protocols are supported?
The library supports stdio, SSE (Server-Sent Events), and pipe-based communication.
Does it require external dependencies?
No, this is a pure Go implementation without third-party dependencies.
Can I use this with Claude Desktop?
Yes, you can configure it as shown in the installation steps.

Compare go-modelcontextprotocol with

GitHub →

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