Cortex Docs -- APIs built for developers and agents
Star on GitHub
-- Start building The open-source API knowledge layer for developers and AI agents
Every developer. Every agent.
Cortex turns API specifications and Markdown into typed SDKs, interactive documentation, and MCP servers for developers and AI agents.
Get started View on GitHub Product Hunt #2 Product of the Day Live demo demo.cortexdocs.dev ↗One project. Every API surface.
OpenAPI AsyncAPI GraphQL gRPC OpenRPCOne workflow / three interfaces
Unlimited specs.
Multiple ways to use it.
Generate interactive docs for exploration, typed SDKs for integration, and MCP tools for AI agents.
cortex.config.ymlproject: acme-api
sources:
- type: openapi-spec
spec: ./openapi.yml
- type: graphql-spec
spec: ./schema.graphql
mcp:
package_name: @acme/mcp
5 protocols 1 config
01
Interactive docs For developers
02
Typed SDKs For applications
03
MCP server For AI agents
Built for agentic development
Give agents the same context your best engineer has.
Cortex maps API operations to typed MCP tools and packages the source specs, documentation, and SDK references beside them. The agent can discover the right interface, install the right client, and generate integration code with less prompting.
- ✓ Tool schemas generated from your API contract
- ✓ Docs and specs available as grounded resources
- ✓ SDK-first instructions tuned to the user's codebase
{
"name": "Mochi",
"species": "cat"
}
✦ I found the generated TypeScript package and the required request shape. I'll install @acme/pet-sdk and use the typed pets client.
The whole API surface
From API definitions to real integrations.
One opinionated toolchain for the parts of API delivery that drift apart when every team maintains them by hand.
01 One source of truthBring the API you already have.
Combine REST, realtime, GraphQL, gRPC, and JSON-RPC sources in one project. Cortex validates the contract before it generates a thing.
02 Human interfaceDocumentation that invites exploration.
Ship searchable guides, interactive references, copy-ready examples, and a live request builder in a documentation site you can self-host.
03 Agent interfaceEvery operation becomes a tool.
Generate an MCP server with typed tools, embedded specs, SDK guides, and project docs so agents can integrate with context -- not guesses.
04 Native by defaultIdiomatic in eleven languages.
Typed clients follow each language's conventions and include authentication, timeouts, streams, retries, and package metadata.
05 Own the resultOpen templates. Open code. No lock-in.
Export and override any Eta template, publish to your own registries, and deploy the generated documentation wherever Node runs.
Native everywhere
One API. Eleven languages.
Generated clients feel at home in every ecosystem -- from naming and types to their native package manager.
01 TypeScript 02 Python 03 Go 04 Java 05 Kotlin 06 Ruby 07 PHP 08 C# 09 Rust 10 C++ 11 C// Fully typed. Ready to ship.
import { PetstoreClient } from "@acme/petstore";
const cortex = new PetstoreClient({
bearerToken: process.env.API_TOKEN,
});
const pet = await cortex.pets.create({ name: "Mochi" });
Type-safe Auth included Streaming ready
Built in the open
The API platform you can actually own.
Cortex Docs is MIT-licensed and designed to fit the way open-source teams work: docs as code, reviewable generation, sparse template overrides, and output you can run anywhere.
Explore the repository Contribute C github.com/cortex-docs cortex PublicGenerate typed SDKs, interactive API documentation, and MCP servers from your API specifications.
TypeScript API tooling AI agents MIT license mainYour API deserves a better interface
Build once. Meet every user.
Start with one command and turn the API you have into a developer and agent experience people want to use.
Read the quickstart Explore the live demo