Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

MCP Gen

MCP server by cortex-docs Verified · npm:@cortex-docs

Generates a Model Context Protocol server from a Cortex Docs project configuration. It gives AI agents access to the project's API specifications, Markdown pages and SDK guides.

  • Score 84
  • 3.3k stars
  • 11 a week
  • MIT
  • Updated

Install MCP Gen

Built from the published package, never by AI.

claude mcp add mcp-gen -- npx -y @cortex-docs/mcp-gen

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install MCP Gen in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-gen block.

About

MCP Gen is the MCP server generator in Cortex Docs, a project that turns API specifications and Markdown into typed SDKs, interactive documentation and an MCP server from one project configuration. It ships in the @cortex-docs/cli package as @cortex-docs/mcp-gen. The generated server contains local copies of every configured specification and embeds configured Markdown and generated SDK README files as tools.

The generator accepts OpenAPI, AsyncAPI, GraphQL, Protocol Buffer, OpenRPC and Markdown sources. Protocol Buffer files are exposed as MCP resources so an agent can inspect a service contract, but the generated server does not call gRPC methods. The source describes the project as built for developers and AI agents that need project context. Running cortex mcp generate creates only the MCP server.

Written from the project's README and checked against it.

What you need

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

Try asking

  • Generate an MCP server from my OpenAPI spec and Markdown guides
  • Use the MCP server to answer questions about my API's endpoints
  • Read the Protocol Buffer service contract and summarize its methods

Good to know

  • The generated server does not call gRPC methods. It exposes Protocol Buffer files as resources.
  • MCP access works with public read access and checks for changes before each request.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

What you can do with it

  • Give AI agents context on your API
  • Generate MCP servers from OpenAPI specs
  • Expose Markdown docs to an assistant

Alternatives to MCP Gen

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

MCP Gen: common questions

Does the generated MCP server call my API?

The source says the generated server exposes typed tools, embedded specifications and documentation for AI agents. It does not say the server sends live requests, and it does not call gRPC methods.

What sources can the MCP server include?

The source lists OpenAPI, AsyncAPI, GraphQL, Protocol Buffer, OpenRPC and Markdown as supported sources. Markdown pages, SDK guides and all API specifications can be added to the MCP server.

Do I need the full Cortex Docs CLI to use it?

The source says @cortex-docs/mcp-gen is included in the CLI package. The generator is run through the cortex mcp generate command.

How do I install MCP Gen?

In Claude Code run claude mcp add mcp-gen -- npx -y @cortex-docs/mcp-gen. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is MCP Gen the official server?

MCP Gen is published by npm:@cortex-docs from its verified domain in the official MCP Registry.

Is MCP Gen free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is MCP Gen safe to use?

It scores 84 of 100. Grades: maintenance B, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to MCP Gen?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does MCP Gen work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

MCP Gen Install

Add to stack

Loading.