MCP Go SDK

Active
GitHub Go NOASSERTION

Description

The official Go SDK for the Model Context Protocol, maintained in collaboration with Google, enabling developers to build MCP servers and clients in the Go ecosystem.

Key Features

  • Official Go SDK for the Model Context Protocol maintained with Google collaboration
  • Full MCP spec implementation supporting latest 2025-11-25 protocol version
  • Modular packages: mcp (clients/servers), jsonrpc (custom transports), auth (OAuth), oauthex (extensions)
  • Type-safe tool definitions with Go structs and JSON Schema tags
  • Stdio, HTTP, and custom transport support for flexible deployment
  • OpenSSF Scorecard rated for security best practices compliance

Use Cases

💡 Building MCP servers in Go to expose tools and resources to AI coding agents
💡 Creating MCP clients that connect to any MCP-compliant server
💡 Integrating MCP protocol into existing Go services for AI agent interoperability
💡 Developing custom transport layers for specialized agent communication patterns

Categories

Quick Start

go get github.com/modelcontextprotocol/go-sdk/mcp

Related Projects