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.
Product Hunt#2 Product of the DayLive demo
◇ demo.cortexdocs.dev
↗One project. Every API surface.
01OpenAPI02AsyncAPI03GraphQL04gRPC05OpenRPC
One 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.yml
project: acme-api
sources:
- type: openapi-spec
spec: ./openapi.yml
- type: graphql-spec
spec: ./schema.graphql
mcp:
package_name: @acme/mcp
5 protocols1 config
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
Explore MCP generation →✦Integration agentConnected to @acme/mcp
● connectedAdd pet creation to the onboarding flow using our TypeScript SDK.
⌁pets_createcompleted
{
"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.
Ask about your API…↵
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.
01One source of truth
RESTWSGQLRPCC
Bring 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.
02Human interface
Documentation that invites exploration.
Ship searchable guides, interactive references, copy-ready examples, and a live request builder in a documentation site you can self-host.
03Agent interface
⌁ pets_list ready⌁ pets_create ready⌁ pets_get ready
Every 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.
04Native by default
Idiomatic in eleven languages.
Typed clients follow each language’s conventions and include authentication, timeouts, streams, retries, and package metadata.
05Own the result
MITtemplates/languages/typescript/rest/client.ejsyour code, your way
Open 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.
01TypeScript02Python03Go04Java05Kotlin06Ruby07PHP08C#09Rust10C++11C
TypeScriptPythonGo
// 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.
Cgithub.com/cortex-docscortex
Public Generate typed SDKs, interactive API documentation, and MCP servers from your API specifications.
TypeScriptAPI toolingAI agents
MIT licensemain
Your 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.