Serverdex · build · Go

Build an MCP server in Go

The official Go SDK, the exact install command, the API you start from — and the real Go MCP servers in our index to copy. SDK facts read from the repository on 1 December 2026.
Official SDK
Tier 1
with Google
Go servers
833
in our index
Requires
—
see the SDK

1. Install the Go SDK

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

The official SDK repository: modelcontextprotocol/go-sdk.

2. The shape of a minimal server

start from this API
import "github.com/modelcontextprotocol/go-sdk/mcp"

server := mcp.NewServer(&mcp.Implementation{Name: "greeter", Version: "v1.0.0"}, nil)
mcp.AddTool(server, &mcp.Tool{Name: "greet", Description: "say hi"}, SayHi)
server.Run(context.Background(), &mcp.StdioTransport{})

This is the starting API, not a full program — the complete, always-current walkthrough is the official quickstart. Define your tools, then connect a transport (stdio for local, HTTP for remote). Read on 1 December 2026; confirm the current version in the quickstart.

3. Real Go MCP servers to learn from

most-starred in our index · open source
  1. Netdata

    netdata
    A

    Production-ready

    Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.

    Registry
    82k 9d agoGPL-3.0
  2. GitHub

    github
    A

    Production-ready

    Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

    Registry
    35k 1d agoMIT
  3. D2

    d2lang
    A

    Production-ready

    Look up D2 syntax, render diagrams locally, and review animations with storyboards and motion lint.

    Registry
    26k 3d agoMPL-2.0
  4. Oh My Posh Validator

    JanDeDobbeleer
    A

    Production-ready

    Validate oh-my-posh configurations and segment snippets against the official schema.

    Live246 tokRegistry
    24k 2 5d agoMIT
  5. Keploy

    keploy
    A

    Production-ready

    End-to-end API testing — generate and run tests from OpenAPI, curl, Postman, or real user traffic.

    Registry
    20k 9d agoApache-2.0
  6. Coder

    coder
    A

    Production-ready

    Manage Coder workspaces, templates, and cloud development environments

    Registry
    18k 2d agoAGPL-3.0

See all Go MCP servers, or the best-maintained across every language.

4. Connect it, then get it found

Point a client at your server to try it — the client matrix shows which clients support what. When it works, list it on Serverdex: a free listing is a server page with a link back to us, in front of developers choosing MCP servers. Want it live now without the link? Priority Review ($9, one-time) does that.

Questions people ask

What's the official way to build an MCP server in Go?
Use the official Go SDK, github.com/modelcontextprotocol/go-sdk/mcp. Install it (go get github.com/modelcontextprotocol/go-sdk/mcp), construct a server, register your tools, and connect a transport. The full, always-current walkthrough is the official quickstart; the snippet here shows the shape. Read from the SDK's repository on 1 December 2026.
Is the Go SDK production-ready?
Tier 1 — passes 100% of the MCP conformance tests and implements every non-experimental feature.
How do I test and connect my Go server?
Run it over stdio and point a client at it. Serverdex's client matrix shows which clients support what; most developers start with Claude Desktop or an IDE client. Once it answers, list it on Serverdex so others find it.