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.
Install MCP Gen
Built from the published package, never by AI.
claude mcp add mcp-gen -- npx -y @cortex-docs/mcp-genRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mcp-gen": {
"args": [
"-y",
"@cortex-docs/mcp-gen"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mcp-gen": {
"args": [
"-y",
"@cortex-docs/mcp-gen"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-gen": {
"args": [
"-y",
"@cortex-docs/mcp-gen"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp-gen -- npx -y @cortex-docs/mcp-gen{
"mcpServers": {
"mcp-gen": {
"args": [
"-y",
"@cortex-docs/mcp-gen"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add mcp-gen npx -y @cortex-docs/mcp-genGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
ANo 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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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.
