Turn any OpenAPI spec into an MCP server. Feed it an openapi.json, get a fully functional Model Context Protocol endpoint out.
// momentum
// why it's here
- Active: last commit today
- Health 76/100 with only 13 stars
// how to help
// readme
oas2mcp
Load an OpenAPI document at startup and expose every operation it describes as a tool of a Model Context Protocol (MCP) server.
Documentation: https://oas2mcp.therealm.tech/ β also for LLMs, at https://oas2mcp.therealm.tech/llms.txt.
Description
Each OpenAPI operation becomes one MCP tool: calling it sends the matching HTTP request to the upstream API, so an agent can drive that API without glue code.
It reads OpenAPI 3.0 and 3.1, serves MCP over stdio, Streamable HTTP or SSE,
authenticates upstream with static, forwarded or OAuth2 credentials, and gates
tools by the callerβs verified JWT. The
feature list has the details.
See ARCHITECTURE.md for how it is put together.
Getting started
Prerequisites
Docker, to run the published image; or a Rust toolchain, to build from source β
mise installs the version pinned in
mise.toml with mise install.