CodeMesh turns your repos into a code graph that Claude Code, Codex, Cursor and other MCP agents query, cutting wasted tokens. Free plan, team and enterprise.
Researched and fact-checked by Bartu Cavusoglu · Updated November 29, 2026
CodeMesh is a context optimization layer for AI coding agents. It parses your codebase into a structural graph of files, functions, classes, calls, imports and dependencies, then lets agents query that graph over the Model Context Protocol (MCP). Instead of searching, opening and re-reading files to find relevant code, an agent asks one question and gets back the functions and lines it needs with file and line references. The company's tagline is "Your codebase as a graph, so coding agents read what matters instead of the whole repository."
CodeMesh targets developers and engineering teams who use AI coding agents heavily and want to cut token spend and wasted context. The site highlights use cases for agentic development, engineering teams, large codebases, monorepos, legacy codebases and vibe coding, where agent costs tend to grow with repository size.
You install the CodeMesh CLI from npm or the extension for VS Code and Cursor, sign in once, and run codemesh sync on your repositories. CodeMesh parses each synced repo and re-parses only the file you changed on each save, and it writes nothing into your repository. Parsing and retrieval are deterministic, with no LLM in the retrieval path, and retrieval follows explicit relationships such as calls, imports and containment rather than text similarity alone. The graph spans every synced repo in an organization, so agents can follow calls across repositories without opening the repo folder.
The extension's Connect button writes MCP settings for local agents including Claude Code, Cursor and Devin, while hosted clients such as Claude.ai and ChatGPT use a hosted endpoint with OAuth 2.1. The homepage also lists Codex and OpenCode, plus any MCP client. Six MCP tools are exposed: graph-ontology, code-answer, code-context, search-code, fetch-code and query-context. Security measures include OAuth 2.1 with PKCE, rotating refresh tokens, read-only query transactions and immediate token revocation when an agent is disconnected.
CodeMesh publishes self-reported benchmarks. Its headline claim is up to 86.1 percent fewer tokens with Claude Code on a Go database codebase, and a 98-question benchmark reported tokens falling from 25.3 million to 1.23 million and measured API spend from $23.67 to $1.65. The company notes that results vary by repository, model, agent and task.
CodeMesh has a free plan, and every plan includes the editor extension, the sync daemon and the MCP connection. Plans differ by how much you can index and how many people share the organization. The Team plan is billed per seat with prorated mid-cycle invites, and enterprise customers can arrange dedicated instances or deployment on their own infrastructure. Paid plan prices were not published on the pricing page at the time of review.
CodeMesh stores your repository's parsed structure and source text in a graph scoped to your organization, so teams with strict code residency rules may need the enterprise self-hosted option. Supported programming languages are not listed publicly. Benchmark figures are vendor-reported and based on a limited set of repositories, and paid prices are not shown upfront.