go-sdk

go-sdk

The official Go SDK for Model Context Protocol (MCP), supporting both MCP clients and servers.

MCPDevOpen source
Type
MCP
Transport
stdio
Open source
Yes
GitHub Stars
★ 4.7k
Source
mcp-github

Overview

This SDK is the official software development kit for Model Context Protocol (MCP) in Go. It provides the primary APIs for building and using MCP clients and servers. The SDK includes multiple importable packages such as mcp, jsonrpc, auth, and oauthex. With this SDK, developers can easily create and manage MCP services and support various transport protocols. Ideal for developers looking to integrate MCP functionality into their Go projects.

Capabilities

  • Build MCP clients and servers
  • Support multiple transport protocols
  • Provide OAuth support
  • Implement the full MCP specification

Use cases

Create an MCP serverCommunicate with an MCP serverImplement custom transportIntegrate OAuth authentication

Setup

Requires: Go 环境
go get github.com/modelcontextprotocol/go-sdk

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

How do I get started with the MCP Go SDK?

First install the SDK: go get github.com/modelcontextprotocol/go-sdk, then refer to the example code to create an MCP server or client.

Which MCP versions does the SDK support?

The latest version supports MCP specifications up to and including 2026-07-28.

Related skills