AUTOMATIONSWITCH
OfficialDev Tools

MCP Go SDK (Official)

by Model Context Protocol (Anthropic)

The official Go SDK for Model Context Protocol servers and clients. Maintained by the Model Context Protocol project. 4,524 GitHub stars and 27 commits on main in the last 30 days.

4,524·5 tools·Released JUN 2025·MIT/Apache-2.0 (transitioning)
go get github.com/modelcontextprotocol/go-sdk
Share:

The official Go SDK for Model Context Protocol servers and clients. Maintained by the Model Context Protocol project. 4,524 stars and 27 commits on main in the last 30 days.

Reviewed by M. Nouriel · MAY 2026

INSTALL THIS SERVER

{ "mcpServers": { "my-go-mcp-server": { "command": "/path/to/my-go-mcp-server", "args": [ "serve", "--stdio" ] } } }
PrereqGo module: `github.com/modelcontextprotocol/go-sdk`. Official Go SDK; example config shows a compiled server built using this SDK. Path: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS).
{ "mcpServers": { "my-go-mcp-server": { "command": "/path/to/my-go-mcp-server", "args": [ "serve", "--stdio" ] } } }
{ "mcpServers": { "my-go-mcp-server": { "command": "/path/to/my-go-mcp-server", "args": [ "serve", "--stdio" ] } } }
{ "mcpServers": { "my-go-mcp-server": { "command": "/path/to/my-go-mcp-server", "args": [ "serve", "--stdio" ] } } }
{ "mcpServers": { "my-go-mcp-server": { "command": "/path/to/my-go-mcp-server", "args": [ "serve", "--stdio" ] } } }

5 TOOLS AVAILABLE

new_server
Construct an MCP server in Go with the official SDK
Admin
register_tool
Register a Go function as an MCP tool
Admin
register_resource
Expose data as an MCP resource
Admin

OUR ASSESSMENT

Strengths
  • 4,524 GitHub stars.
  • 27 commits on main in the last 30 days.
  • Maintained by the Model Context Protocol project.
  • Reference Go implementation.
  • Supports all three MCP transports.
Weaknesses
  • Multi-licence repo during the documented MIT to Apache-2.0 transition; track for full Apache-2.0 cutover.
  • Smaller community than mark3labs/mcp-go (8,690 stars) at present.
  • API surface evolves with the protocol; pin versions in production.
Security Notes

SDK has no auth by default. Servers built with the SDK must add authentication; Go middleware patterns work well for this.

Best For

Go developers who want the official reference implementation; cloud-native teams that want both single-binary deploys and protocol guarantees; mark3labs/mcp-go users evaluating the official path.

TECHNICAL DETAILS

Language
go
Transport
stdiostreamable-httpsse
Clients
Claude DesktopClaude CodeCursorVS CodeWindsurf
License
MIT/Apache-2.0 (transitioning)
GitHub
npm
github.com/modelcontextprotocol/go-sdk
Last Release
mcp-go-sdk (Go module latest)MAY 14, 2026
First Released
JUN 1, 2025

ADOPTION METRICS

// GitHub Stars
4,524

// Reading this4,524 stars on modelcontextprotocol/go-sdk. 27 commits on main in the last 30 days. LICENSE confirmed via direct inspection: MIT/Apache-2.0 transitioning posture.

// Popularity Rank
#6
Globally · #6 in Dev Tools

// Reading thisPairs with mark3labs/mcp-go (community), FastMCP (Python), MCP Python SDK, MCP TypeScript SDK, MCP C# SDK in the official MCP language layer.

SOURCES & VERIFICATION

We don't take any single directory's word for it. Before scoring, we cross-reference 5 public MCP sources, install the server ourselves against the clients we cover, and record when we last re-verified.

01
Discovered
Manual submission
First indexed MAY 14, 2026
02
Cross-referenced
5 directories
PulseMCP, MCP.so, Glama, Smithery, Official MCP Registry
03
Verified against
Claude Desktop, Cursor
Installed and tested across clients
04
Last re-checked
MAY 14, 2026
Weekly re-verification
// How other directories see it

The same server, 5 different lenses. We reconcile these signals into our editorial score, which is why our number sometimes diverges from a directory-aggregate star count.

SourceTheir ratingTheir star countTheir downloadsLast synced
AutomationSwitch This page4.5editorial4,524MAY 14, 2026
PulseMCP— unratedunavailableunavailableMAY 14, 2026
MCP.so— unratedunavailableunavailableMAY 14, 2026
Glama— unratedunavailableunavailableMAY 14, 2026
Smithery— unratedunavailableunavailableMAY 14, 2026
Official MCP Registry— unratedunavailableunavailableMAY 14, 2026

// Counts are directory-reported; we don't adjust them. Discrepancies usually come from different snapshot times or star-caching.

// Get in touch

DISCUSS YOUR
MCP REQUIREMENTS.

Evaluating a server, scoping an internal deployment, or working out whether MCP is the right fit at all. Start the conversation and we will point you at the right piece of the ecosystem.

Discuss Your MCP Requirements →