modelcontextprotocol

    modelcontextprotocol/go-sdk

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

    backend
    go
    mcp
    Go
    NOASSERTION
    5.3K stars
    606 forks
    5.3K GitHub watchers
    Updated Oct 26, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    3 releases in the last 90 days, the latest 42 days ago, with 179 contributors on GitHub.

    Peaked at #39 in the weekly ranking the week of Nov 30, its best in the past year.

    Use Cases & Benefits

    • Provides an official Go SDK for building and interacting with Model Context Protocol (MCP) servers and clients.
    • Enables seamless creation and communication of MCP clients and servers with built-in transport and authentication support.
    • Use for developing custom MCP servers that expose tools and features over various transports like stdin/stdout or commands.
    • Use for implementing MCP clients in Go to connect and call tools on MCP servers programmatically.
    • Use for integrating OAuth authentication primitives into MCP-based Go applications to secure client-server interactions.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Other

    GitHub could not identify this license; read the LICENSE file before depending on it.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    • License not identified by GitHub; read the LICENSE file before depending on it.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    This version contains breaking changes. See the release notes for details.

    This repository contains an unreleased implementation of the official Go software development kit (SDK) for the Model Context Protocol (MCP).

    To get started creating an MCP server, create an mcp.Server instance, add features to it, and then run it over an mcp.Transport. For example, this server adds a single simple tool, and then connects it to clients over stdin/stdout:

    To communicate with that server, we can similarly create an mcp.Client and connect it to the corresponding server, by running the server command and communicating over its stdin/stdout:

    The examples/ directory contains more example clients and servers.

    Excerpt from the modelcontextprotocol/go-sdk README on GitHub (NOASSERTION license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Jul 31: +4Sep 22: +4Sep 26: +1

    +371 stars over 89 days across 11 snapshot days; best day +4 on Jul 31.

    Forks

    606+118

    Open issues

    126+51

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    modelcontextprotocol/go-sdk compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/skills187.8K+2.9K15—
    DuarteSantos8/openGym19.7K+2.4K602 days ago
    shiyu-coder/Kronos47.0K+2.3K16—
    NationalSecurityAgency/ghidra98.2K+2.3K6414 days ago
    microsoft/VibeVoice56.0K+1.1K29—
    modelcontextprotocol/go-sdk5.3K—6342 days ago
    Category median56.0K+2.3K29—

    Also by modelcontextprotocol

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description