# metoro-io/mcp-golang

Write Model Context Protocol servers in few lines of go code. Docs at https://mcpgolang.com . Created by https://metoro.io

Repository: https://github.com/metoro-io/mcp-golang
Canonical: https://ross.abutalabs.com/products/mcp-golang
Homepage: https://mcpgolang.com
Language: Go
License: MIT
License Family: permissive
Last push: 2026-02-25T20:58:05+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 69, release rhythm 72, longevity 45
- inputs: {"age_days": 634, "days_push": 189, "days_rel": 189, "gap_med": 2, "n_releases_24m": 18}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1226, forks 121 (observed 2026-08-28T04:04:03.070290+00:00)

## What it is
mcp-golang is an unofficial Go implementation of the Model Context Protocol (MCP) for building MCP servers and clients with minimal boilerplate. It offers type-safe tool definitions via Go structs with automatic JSON schema generation, plus built-in stdio and HTTP/SSE transports.

## Use cases
- build an mcp server in go
- expose go functions as tools for claude or other llms
- write a model context protocol client in golang
- add custom tools, prompts, and resources for ai assistants
- connect go services to ai models over stdio or http
- auto-generate json schemas from go structs for llm tool calls

## When to choose
- you want to write MCP servers or clients in Go with type safety and low boilerplate
- you need custom transports or a composable transport/protocol/server split
- you prefer defining tool arguments as native Go structs with automatic schema generation

## When to avoid
- you need an official, spec-certified MCP implementation
- your stack is TypeScript or Python where official SDKs exist
- you need a language-agnostic server independent of Go

## Facets
- artifact type: library
- maturity: active
- function: mcp, sdk, api-framework, serialization
- domain: large-language-models, developer-tools, backend
- platform: go, cli, cross-platform
- tags: model-context-protocol, mcp-server, mcp-client, json-schema, stdio-transport, llm-tools, ai-agents

## Member repositories
- metoro-io/mcp-golang (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:03.070290+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:15:20.099292+00:00, confidence not recorded.
  - readme: https://github.com/metoro-io/mcp-golang (fetched 2026-08-28T04:04:03.070290+00:00, sha 32546de7a7e9)
  - homepage: https://mcpgolang.com (fetched 2026-08-29T12:23:07.954897+00:00, sha 00e8fd142d7c)
  - site_page: https://mcpgolang.com/quickstart (fetched 2026-08-29T12:23:07.963674+00:00, sha 8dcc4e8f7515)
- Data as of 2026-08-30T08:39:29.467469+00:00.
