Cortex is an open source API knowledge layer that turns OpenAPI, AsyncAPI, GraphQL, gRPC, and OpenRPC specs into interactive documentation, typed SDKs in 11 languages, and MCP servers for AI agents.
Cortex was built because being an engineer in the AI era means your APIs increasingly need to serve two very different users: developers and AI agents.
But supporting both often means doing the same work twice. You build documentation and SDKs for developers, then create separate MCP tools and context for agents.
Today, these pieces are usually maintained separately. They drift out of sync, create duplicate work, and leave AI agents trying to understand your API from incomplete or outdated context.
Cortex makes your API contract the source of truth.
Give it your OpenAPI, AsyncAPI, GraphQL, gRPC, or OpenRPC specs, plus Markdown, and Cortex generates:
📚 Interactive documentation for developers
⌨️ Typed SDKs across 11 languages
🤖 MCP servers with typed tools and grounded API context
Everything is open source and MIT licensed. You can customize the templates, publish the SDKs wherever you want, and host the generated documentation yourself.
The idea is simple: define your API once, then give every developer and every agent the interface they need to actually use it.
Check out the open source repo at https://github.com/cortex-docs/cortex