# Build Go MCP servers with MCP Go

> Use MCP Go to implement typed Model Context Protocol servers in Go that expose tools, resources, prompts, and transport handlers to agent clients.

- Skill: `agentskillexchange/build-go-mcp-servers-with-mcp-go` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/build-go-mcp-servers-with-mcp-go`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/build-go-mcp-servers-with-mcp-go/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/build-go-mcp-servers-with-mcp-go

---


# Build Go MCP servers with MCP Go

Use MCP Go to implement typed Model Context Protocol servers in Go that expose tools, resources, prompts, and transport handlers to agent clients.

## Prerequisites

Go, MCP Go module, MCP-compatible client or host runtime

## Installation

Requirements and caveats from upstream:
- // Example: A tool that requires task execution
- Servers that require OAuth can advertise their authorization requirements

Basic usage or getting-started notes:
- go get github.com/mark3labs/mcp-go
- Let's create a simple MCP server that exposes a calculator tool and some data:
- go

- Source: https://github.com/mark3labs/mcp-go
- Extracted from upstream docs: https://raw.githubusercontent.com/mark3labs/mcp-go/HEAD/README.md

## Documentation

- https://mcp-go.dev/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/build-go-mcp-servers-with-mcp-go/)

