Skip to content
~/dipjyoti

openapi-go-mcp

Generate Go MCP servers from OpenAPI 3.x and Swagger 2.0 specifications, turning API operations into agent tools.

View on GitHub ↗All projects

Problem

Existing APIs often already describe their operations and schemas, but making them usable by agents still requires repetitive MCP integration work.

Approach

Use the OpenAPI contract as the source of truth and generate a Go MCP layer that delegates to typed HTTP clients.

Architecture

  1. 01OpenAPI specification
  2. 02openapi-go-mcp generator
  3. 03MCP server and tool registry
  4. 04Agent or MCP host

Why I built it

I wanted the MCP layer to be a consequence of a maintained API contract, not another hand-written integration to keep in sync.

Key decisions

Related writing