Skip to main content
ClaudeWave
EN, English
modelcontextprotocol / MCP Servers

go-sdk

The official Go SDK for Model Context Protocol servers and clients. Maintained in collaboration with Google.

  • 5.3k stars
  • 598 forks
  • 120 open issues
  • Language: Go
  • License: NOASSERTION
  • updated

Install

Claude Code CLI
git clone https://github.com/modelcontextprotocol/go-sdk
  1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
  2. Replace any <placeholder> values with your API keys or paths.
  3. Restart Claude. The MCP server and its tools appear automatically.

Install the binary first: go install github.com/modelcontextprotocol/go-sdk@latest (make sure it ends up on your PATH).

Editor's note

The official Go SDK for the Model Context Protocol, maintained in collaboration with Google, provides everything needed to build MCP servers and clients in Go. The core `mcp` package handles server and client construction, tool registration, and transport management, while separate packages cover raw JSON-RPC transport implementation, OAuth primitives, and OAuth extensions such as ProtectedResourceMetadata. Servers communicate with clients over stdio via `StdioTransport` or subprocess via `CommandTransport`, and tools are registered using typed Go structs with JSON schema annotations derived directly from struct tags. The SDK targets full MCP spec compliance and supports four spec versions dating back to 2024-11-05, with the latest v1.4.0 release adding experimental client-side OAuth against the 2025-11-25 spec. Go developers building MCP-compatible integrations for Claude Desktop, Claude Code, or any MCP-aware host will find this the authoritative starting point, backed by Anthropic and Google rather than a third-party maintainer.

README

MCP Servers overview

README preview not available. Visit the repo on GitHub for full documentation.
Topics
gomcp
Frequently asked

What people ask about go-sdk

What is modelcontextprotocol/go-sdk?

modelcontextprotocol/go-sdk is mcp servers for the Claude AI ecosystem. The official Go SDK for Model Context Protocol servers and clients. Maintained in collaboration with Google. It has 5.3k GitHub stars and its last recorded update is dated 2026-10-23.

How do I install go-sdk?

You can install go-sdk by cloning the repository (https://github.com/modelcontextprotocol/go-sdk) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is modelcontextprotocol/go-sdk safe to use?

Our security agent has analyzed modelcontextprotocol/go-sdk and assigned a Trust Score of 97/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains modelcontextprotocol/go-sdk?

modelcontextprotocol/go-sdk is maintained by modelcontextprotocol. The last recorded GitHub activity is dated 2026-10-23, with 120 open issues.

Are there alternatives to go-sdk?

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.