Cortex

Turn API specs into docs, SDKs, and MCP servers in one step

Visit website →

About

Cortex is an open-source API knowledge layer that turns your OpenAPI, AsyncAPI, GraphQL, gRPC, and OpenRPC specs into three things at once: interactive documentation for developers, typed SDKs in 11 programming languages, and MCP servers with typed tools for AI agents.

The problem it solves: in the AI era, your APIs need to serve two very different users — developers and AI agents. But supporting both usually means doing the same work twice. You build documentation and SDKs for developers, then create separate MCP tools and context for agents. These pieces drift out of sync and create duplicate work.

Cortex makes your API contract the single source of truth. Define your spec once, and every developer and every agent gets the interface they need. Everything is MIT licensed, customizable, and self-hostable. CLI validation ensures SDKs and MCP servers stay perfectly in sync with spec changes.

AI-assisted draft, human-reviewed before publishing — see how we choose & review tools.

Why we picked it

Cortex stood out for serving two very different users from one spec — typed docs for a developer and MCP tools for an agent, generated together rather than maintained as two separate artifacts that quietly drift apart from each other over time.