SkillAgentSearch skills...

cortex

Cortex - Generates interactive API documentation, typed SDKs, and MCP servers from OpenAPI, AsyncAPI, GraphQL, gRPC, OpenRPC, and Markdown.

Install / Use

claude mcp add cortex-docs -- npx -y github:cortex-docs/cortex

If the server publishes to npm under a different name, use that package instead — check the repo README.

About this skill
🔌

MCP Server

Model Context Protocol server

Quality Score

95/100

Supported Platforms

Claude Code
Claude Desktop

Our assessment of cortex

cortex scores 95/100 on our quality scale, 69th of 1,187 Content & Media skills we index (top 6%).

Its MCP Server is 13 KB long, well organised into 13 sections with 6 code examples: a thorough specification that gives an agent plenty to work with.

With 3,276 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
30/30
Structure
20/20
Description
15/15
Adoption
15/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 17 days ago, so cortex is actively maintained.
  • Our last check on 2026-10-21 found the source still online.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

cortex compared with similar skills

All 4 of these similar skills score higher than cortex; compare them before choosing.

SkillScoreStarsUpdatedFormat
cortex (this skill)by cortex-docs953.3k17d agoMCP Server
Agent-Reachby Panniantong100101.1k2d agoCLAUDE.md
headroomby headroomlabs-ai10077.6ktodayCLAUDE.md
CowAgentby zhayujie10047.5ktodayCLAUDE.md
Scraplingby D4Vinci10089.3ktodayMCP Server

Frequently asked questions

How do I install cortex?
Run claude mcp add cortex-docs -- npx -y github:cortex-docs/cortex. The install tabs above show the steps for each supported agent.
Which AI agents does cortex work with?
It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
Is cortex safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is cortex still maintained?
The repository was last updated 17 days ago, so cortex is actively maintained.
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="packages/docs-site/assets/logo_dark.svg"> <source media="(prefers-color-scheme: light)" srcset="packages/docs-site/assets/logo_light.svg"> <img alt="Cortex" src="packages/docs-site/assets/logo_light.svg" width="246"> </picture> </p> <h2 align="center">Every developer. Every agent.</h2> <p align="center"> Cortex turns API specifications and Markdown into typed SDKs, interactive documentation, and an MCP server from one project configuration. </p> <p align="center"> OpenAPI · AsyncAPI · GraphQL · gRPC · OpenRPC · Markdown </p> <p align="center"> <a href="https://github.com/cortex-docs/cortex/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/cortex-docs/cortex/actions/workflows/ci.yml/badge.svg"></a> <a href="https://www.npmjs.com/package/@cortex-docs/cli"><img alt="npm version" src="https://img.shields.io/npm/v/@cortex-docs/cli.svg"></a> <a href="LICENSE"><img alt="MIT license" src="https://img.shields.io/badge/license-MIT-blue.svg"></a> <a href="https://github.com/cortex-docs/cortex/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/cortex-docs/cortex?style=flat&logo=github"></a> </p> <h3 align="center"> <a href="https://docs.cortexdocs.dev"><strong>Documentation</strong></a> · <a href="https://demo.cortexdocs.dev"><strong>Live demo</strong></a> · <a href="https://cortexdocs.dev"><strong>Website</strong></a> · <a href="CHANGELOG.md"><strong>Changelog</strong></a> </h3> <p align="center"> <a href="https://www.producthunt.com/products/cortex-25?embed=true&amp;utm_source=badge-top-post-badge&amp;utm_medium=badge&amp;utm_campaign=badge-cortex-27" target="_blank" rel="noopener noreferrer"><img alt="Cortex - Turn API specs into docs, SDKs, and MCP servers | Product Hunt" width="250" height="54" src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=1241923&amp;theme=light&amp;period=daily&amp;t=1789286262611"></a> </p> </br> <p align="center"> <a href="https://demo.cortexdocs.dev"> <picture> <source media="(prefers-reduced-motion: reduce)" srcset="assets/cortex-overview-poster.png"> <img src="assets/cortex-overview.png" width="1200" alt="Run cortex generate with a configured OpenAPI file, then explore Getting Started, API Reference, SDKs, and MCP in the live demo. Click to try it."> </picture> </a> </p>

Cortex combines OpenAPI, AsyncAPI, GraphQL, Protocol Buffer, OpenRPC, and Markdown sources. Developers get interactive documentation, applications get typed SDKs, and AI agents get an MCP server with project context.

If Cortex helps your team, star this repository to support its development.

Try Cortex in 60 seconds

Create a sample project and inspect the generation plan:

mkdir petstore
cd petstore
npm install --global @cortex-docs/cli
cortex init petstore
cortex validate
cortex generate --dry-run

Cortex validates each source and shows every planned output:

✓ Config is valid
✓ Parsed AsyncAPI: WebSocket API
✓ Parsed GraphQL: GraphQL
✓ Parsed OpenRPC: OpenRPC
✓ Parsed OpenAPI: REST API V1
Languages: typescript, python, go, java, kotlin, ruby, php, csharp, rust, cpp, c

typescript [REST + WS + GraphQL + OpenRPC] → generated/typescript/petstore-typescript-client-sdk
python [REST + WS + GraphQL + OpenRPC] → generated/python/petstore-python-sdk
...
mcp-server → generated/mcp-server

The generated MCP server gives AI agents typed tools, specifications, SDK guides, and project documentation.

Generate the files. Then start the local documentation preview:

cortex generate
cortex docs serve

Open http://localhost:3012. Press Ctrl+C to stop the server.

Features

  • Generate SDKs for TypeScript, Python, Go, Java, Kotlin, Ruby, PHP, C#, Rust, C++, and C.
  • Combine multiple specification files in one generated SDK.
  • Generate HTTP, WebSocket, GraphQL, gRPC, and JSON-RPC clients.
  • Build static HTML documentation with interactive API reference pages.
  • Generate an MCP server with typed tools, embedded specifications, SDK guides, and project documentation for AI agents.
  • Add Markdown pages, SDK guides, and all API specifications to the MCP server.
  • Customize generated output with sparse Eta template overrides.
  • Publish generated packages and MCP servers to language registries and GitHub repositories.

Unlimited specs. Multiple ways to use it.

Generate interactive docs for exploration, typed SDKs for integration, and MCP servers for AI agents.

| Task | Split toolchain | Cortex Docs | | ------------------- | --------------------------------------------------- | ------------------------------------------------------------------------------- | | Configuration | Configure SDK, documentation, and MCP generators | Declare all API sources in one project configuration | | Generation | Coordinate separate commands and output directories | Generate all configured outputs with one command | | Customization | Maintain templates for each generator | Override only the required Eta templates | | Publishing | Maintain a release process for each package | Review one publish plan for registries and GitHub | | Developer interface | Keep guides separate from API references | Combine Markdown, API references, and SDK guides | | Agent interface | Maintain MCP servers and context separately | Generate MCP servers with specifications, SDK guides, and project documentation |

Requirements

  • Node.js 20 or later
  • npm 10 or later

Some generated SDKs require the normal compiler or package manager for their target language.

Configuration

cortex init creates cortex.config.yml. Relative paths start from the directory that contains this file.

project: my-api
title: My API Docs
logo: ./assets/logo.svg
theme: system
primaryColor: '#ffffff'
custom_head_html: |-
  <meta name="theme-color" content="#ffffff">
  <link rel="stylesheet" href="/assets/custom.css">

sources:
  - title: REST API
    type: openapi-spec
    spec: ./specs/openapi.yaml
    intro: ./docs/rest.md
    languages:
      - language: typescript
        package_name: '@my-org/my-api'
      - language: python
        package_name: my-api

  - title: Realtime API
    type: asyncapi-spec
    spec: ./specs/asyncapi.yaml
    languages:
      - language: typescript
        package_name: '@my-org/my-api'

  - title: GraphQL API
    type: graphql-spec
    spec: ./specs/schema.graphql
    endpoint: https://api.example.com/graphql
    languages:
      - language: typescript
        package_name: '@my-org/my-api'

output:
  base_dir: ./generated

docs:
  - section: Get started
    sources:
      - title: Quickstart
        document: ./docs/quickstart.md

mcp:
  package_name: '@my-org/my-api-mcp'

primaryColor sets the documentation accent color as a six-digit hex value.

custom_head_html adds trusted HTML to every documentation page. This field supports metadata, stylesheets, and analytics scripts.

Store local head resources in the project assets directory. Cortex serves these files from /assets/*.

Cortex does not sanitize this value. Add only HTML that you trust.

Add ?appearance=dark or ?appearance=light to any documentation URL to select its initial appearance. The parameter takes priority over the project theme and the visitor's stored preference.

For example, /docs/quickstart?appearance=dark opens the quickstart in dark mode. The theme button can change the appearance after the page loads.

Sources that use the same language and package_name are merged into one SDK. Cortex rejects duplicate operation and type names that would make a merge ambiguous.

See the configuration reference for all fields.

Commands

| Command | Result | | ----------------------------------------- | ----------------------------------------------------- | | cortex init <name> | Create a project and sample files. | | cortex validate | Validate the config and every API source. | | cortex generate | Generate configured SDKs and the MCP server. | | cortex generate --language typescript | Generate one configured language. | | cortex generate --dry-run | Show planned output without writing files. | | cortex docs serve | Start the development server and watch project files. | | cortex docs build --output .cortex/docs | Build static HTML documentation. | | cortex mcp generate | Generate only the MCP server. | | cortex publish --dry-run | Check package publication without uploading. | | cortex publish | Publish enabled generated packages. |

Protocol support

| Source | Generated SDK | Documentation | Generated MCP server | | --------------- | ----------------------------------------- | ----------------------------- | ----------------------------------- | | OpenAPI | REST clients | Interactive API reference | Callable tools and embedded specs | | AsyncAPI | WebSocket clients | Channel and message reference | Payload-preparation tools and specs | | GraphQL SDL | Query, mutation, and subscription clients | Operation and type reference | Callable tools and embedded schema | | Protocol Buffer | Unary and streaming gRPC clients | Service and message reference | Embedded .proto resources | | OpenRPC | JSON-RPC clients | Method and schema reference | Callable tools and embedded specs |

The generated MCP server does not call gRPC methods. It exposes Protocol Buffer files as MCP resources so an agent can inspect the service contract.

Production documentation

The build command exports the documentation as static HTML, CSS, JavaScript, and data files.

cortex docs build --output .cortex/docs

Deploy the output directory to a static web host. Configure the host to resolve page URLs such as /docs/quickstart to /docs/quickstart.html.

The deployed site needs no Node.js server or access to the original configuration and specifications. Rebuild the site after source changes. Use cortex docs serve for a local preview with file watching.

MCP output

cortex mcp generate --output .cortex/mcp-server
cd .cortex/mcp-server
npm install
npm run build
npm start

The generated package contains local copies of every configured specification. It also embeds configured Markdown and generated SDK README files as tools.

Packages

The release workflow publishes @cortex-docs/cli and @cortex-docs/mcp. The CLI tarball includes the internal runtime workspaces.

| Package | Distribution | Purpose | | ---------------------- | --------------- | ---------------------------------------------- | | @cortex-docs/cli | npm | Command-line interface and project workflow | | @cortex-docs/mcp | npm | MCP server for the Cortex documentation | | @cortex-docs/core | Included in CLI | Configuration loader and specification parsers | | `@cortex-

Truncated for display — read the full file on GitHub.

Related Skills

View on GitHub
GitHub Stars3.3k
CategoryContent
Updated17d ago
Forks158

Languages

TypeScript

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions