go-sdk
by
modelcontextprotocol

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

View on GitHub ↗

Summary Information

Updated 1 hour ago
Added to GitGenius on November 13th, 2025
Created on April 23rd, 2025
Open Issues & Pull Requests: 62 (+0)
Number of forks: 472
Total Stargazers: 4,782 (+0)
Total Subscribers: 57 (+0)

Issue Activity (beta)

Open issues: 35
New in 7 days: 0
Closed in 7 days: 2
Avg open age: 105 days
Stale 30+ days: 25
Stale 90+ days: 15

Recent activity

Opened in 7 days: 0
Closed in 7 days: 2
Comments in 7 days: 10
Events in 7 days: 27

Top labels

  • release blocker (34)
  • needs investigation (30)
  • ready for work (23)
  • breaking change (21)
  • help wanted (21)
  • needs community feedback (10)
  • needs confirmation (7)
  • P2 (6)

Repository Insights (GitGenius)

Median issue/PR response: 0.0 hours
Mean response time: 24.8 hours
90th percentile: 28.2 hours
Tracked items: 386

Most active contributors

Detailed Description

The go-sdk repository is the official Go software development kit for the Model Context Protocol, maintained in collaboration with Google. It provides a complete implementation enabling developers to build MCP servers and clients in Go, with the SDK designed to implement the full MCP specification across multiple versions.

The repository is organized into several importable packages that serve different purposes. The primary mcp package defines the core APIs for constructing and using MCP clients and servers. The jsonrpc package supports users implementing custom transports, while the auth package provides primitives for OAuth support. The oauthex package extends OAuth functionality with features like ProtectedResourceMetadata. The docs directory contains feature documentation that maps the MCP specification to these packages.

Version compatibility is carefully maintained across SDK releases. SDK version 1.7.0 and later support the latest MCP spec from 2026-07-28 while maintaining backward compatibility with earlier specifications including 2025-11-25, 2025-06-18, 2025-03-26, and 2024-11-05. Earlier SDK versions support progressively older spec versions, with v1.0.0 through v1.1.0 supporting specs back to 2024-11-05. The SDK notes that roots, sampling, and logging features were deprecated as of protocol version 2026-07-28 but continue to be supported for compatibility during a deprecation window of at least twelve months.

The repository demonstrates strong maintenance and community engagement. GitGenius tracking shows a median issue and pull request response latency of 0.0 hours with a mean of 24.8 hours across 386 tracked items, indicating rapid triage and attention. The most active issue labels are release blocker with 34 items, needs investigation with 30 items, and ready for work with 23 items. Key contributors include findleyr with 833 tracked events, jba with 565 events, and maciej-kisiel with 338 events. The repository shares overlapping contributors with golang/go, github/gh-aw, and istio/istio, reflecting its integration into the broader Go ecosystem.

Getting started with the SDK involves creating an mcp.Server instance, adding features to it, and running it over an mcp.Transport. The repository includes an examples directory with sample clients and servers demonstrating practical usage patterns. The project welcomes contributions and acknowledges the ecosystem of third-party Go MCP SDKs that inspired its development, including mcp-go, mcp-golang, and go-mcp.

The codebase is licensed under Apache 2.0 for new contributions with existing code under MIT, providing clear licensing terms for users and contributors. The project targets only supported versions of Go according to Go's official release policy, ensuring compatibility with current language standards.

go-sdk
by
modelcontextprotocolmodelcontextprotocol/go-sdk

Repository Details

Fetching additional details & charts...