CornMCP

v1.0.0Coding Agentsstable

CornMCP is an open-source mono repo that gives AI coding agents (Antigravity, Cursor, Claude Code, Codex), token-saving access to your codebase through the Model Context Protocol (MCP).

cornmcpmcpai-integration
Share:
65
Stars
0
Downloads
0
Weekly
0/5

What is CornMCP?

CornMCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to cornmcp is an open-source mono repo that gives ai coding agents (antigravity, cursor, claude code, codex), token-saving access to your codebase through the model context protocol (mcp).

CornMCP is an open-source mono repo that gives AI coding agents (Antigravity, Cursor, Claude Code, Codex), token-saving access to your codebase through the Model Context Protocol (MCP).

This server falls under the Coding Agents and Developer Tools categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • CornMCP is an open-source mono repo that gives AI coding age

Use Cases

Provide AI coding agents token-saving codebase access.
Enable natural language code exploration.
Reduce token usage for code context retrieval.
yuki-20

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMay 7, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx cornmcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use CornMCP

CornMCP is an open-source monorepo that gives AI coding agents — including Claude Code, Cursor, Antigravity, and Codex — token-saving access to your codebase via the Model Context Protocol. It combines native TypeScript AST analysis, semantic vector search (via Voyage AI embeddings stored in SQLite), and 18 specialized MCP tools covering code search, blast-radius impact analysis, cross-session memory, and mandatory quality gates. Unlike simple file-reading servers, CornMCP understands your code's symbol graph, letting agents navigate large codebases with a fraction of the tokens.

Prerequisites

  • Node.js 18+ and pnpm installed
  • Docker and Docker Compose for the full stack deployment
  • Voyage AI API key (free tier available) for code embeddings
  • An MCP-compatible client: Claude Code, Cursor, or Antigravity
  • Git, for cloning the monorepo
1

Run the one-command installer

The recommended way to set up CornMCP is via the npx installer, which checks dependencies, clones the repo, prompts for API keys, builds the Docker stack, and configures your IDE automatically.

npx corn-install
2

Set required environment variables

If doing a manual setup, create a .env file in the repo root with your Voyage AI credentials. The OPENAI_API_KEY variable is used with the Voyage AI base URL for embeddings.

OPENAI_API_KEY=your_voyage_ai_key
OPENAI_API_BASE=https://api.voyageai.com/v1
MEM9_EMBEDDING_MODEL=voyage-code-3
MEM9_EMBEDDING_DIMS=1024
DASHBOARD_API_URL=http://localhost:4000
3

Start the three services

CornMCP consists of three services: the API backend on port 4000, the MCP server on port 8317, and a web dashboard on port 3000. Start each in a separate terminal.

# Terminal 1 - API
cd apps/corn-api && npx tsx src/index.ts

# Terminal 2 - MCP server
cd apps/corn-mcp && npx tsx src/node.ts

# Terminal 3 - Dashboard
cd apps/corn-web && npx next dev
4

Configure your MCP client

Add CornMCP to your IDE's MCP configuration. The MCP server runs on port 8317 and is reachable via HTTP transport.

{
  "mcpServers": {
    "cornmcp": {
      "command": "npx",
      "args": ["corn-install"]
    }
  }
}
5

Index your codebase

After startup, CornMCP needs to index your repositories to build the symbol graph and embedding store. Use the corn_list_repos tool or the web dashboard to trigger indexing.

CornMCP Examples

Client configuration

Example claude_desktop_config.json for connecting to a locally running CornMCP server.

{
  "mcpServers": {
    "cornmcp": {
      "command": "npx",
      "args": ["tsx", "/path/to/CornMCP/apps/corn-mcp/src/node.ts"]
    }
  }
}

Prompts to try

Use these prompts with Claude Code or Cursor after CornMCP is connected and your codebase is indexed.

- "Search for all usages of the UserAuthService class in this codebase."
- "What is the blast radius if I change the parseConfig function?"
- "Show me the callers and callees of the handlePayment method."
- "Find all files that import from the database module."

Troubleshooting CornMCP

Embedding errors or rate limits during indexing

CornMCP supports model rotation via MEM9_FALLBACK_MODELS. Set this env var to a comma-separated list like 'voyage-4-large,voyage-4' to automatically fall back when rate limits are hit.

MCP client cannot connect to the server

Ensure all three services are running. The MCP server specifically must be on port 8317. Check for port conflicts with 'lsof -i :8317' and review service logs for startup errors.

Quality gate rejections blocking task execution

CornMCP enforces a minimum plan quality score of 80% before execution. If your agent's plan is rejected, ask it to provide more detailed implementation steps and rationale to raise the score.

Frequently Asked Questions about CornMCP

What is CornMCP?

CornMCP is a Model Context Protocol (MCP) server that cornmcp is an open-source mono repo that gives ai coding agents (antigravity, cursor, claude code, codex), token-saving access to your codebase through the model context protocol (mcp). It connects AI assistants to external tools and data sources through a standardized interface.

How do I install CornMCP?

Follow the installation instructions on the CornMCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with CornMCP?

CornMCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is CornMCP free to use?

Yes, CornMCP is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Coding Agents MCP Servers

Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "cornmcp": { "command": "npx", "args": ["-y", "cornmcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use CornMCP?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides