Codecanvas logo

Codecanvas

Analyzes Python projects for call paths, control flow, entrypoints, side effects, and change impact through MCP.

Install Codecanvas

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "codecanvas": {
      "command": "uvx",
      "args": [
        "codecanvas-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 13 tools correctly ().

Overview

The codecanvas MCP server provides local static analysis for Python projects, including call paths, control flow, guarded outcomes, side effects, and change impact. It runs through stdio with `uvx codecanvas-mcp`, analyzes a selected project root, and returns structured results with source locations and uncertainty metadata. Reach for it when an agent needs to understand unfamiliar code behavior, trace callers or callees, inspect affected entrypoints, or check a qualified reachability claim.

Use cases

  • Trace callers of a Python function across a project
  • Inspect branches, returns, raises, and side effects
  • Find entrypoints affected by a code change
  • Verify whether one function reaches another under specified guards
  • Validate state reads and writes against a caller-provided schema

Key features

  • Project-wide Python call-path analysis
  • Structured control-flow and guard inspection
  • Entrypoint and symbol discovery
  • Diff-based change-impact analysis
  • Reachability verification with uncertainty metadata
  • Focused state-transition simulation

Tools13

What Codecanvas lets your agent do. Expand a tool for its parameters.

Verified live~4.2k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 79d

What it can do

From the 13 tools this server returned when we ran it.

Runs commands · 1Can delete or modify data · 1Handles credentials · 1Makes network requests · 4Read-only tools · 11
Network at startup2 connections
Files written at startup15

Observed 2026-10-29 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · codecanvas-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit2mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed13Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Codecanvas works

What codecanvas does

The codecanvas MCP server analyzes Python source locally and exposes structural answers to coding agents through MCP. It is intended for questions that require more than text search, such as how a function branches, which callers reach it, what it calls downstream, or which public surfaces may be affected by a change.

Results can include functions, methods, classes, FastAPI routes, scripts, distributed-library exports, returns, raises, branch guards, downstream effects, and affected entrypoints. The server also reports evidence quality, ambiguous calls, truncation, and whether an answer is safe to summarize as an unconditional claim. This makes static-analysis uncertainty visible rather than presenting every inferred relationship as fact.

How it works

On the first tool call, provide an absolute project_path. The server selects that directory as the analysis root and remembers the last explicitly selected project during the session. project_status can show the active root, Python file count, cache state, worker interpreter, and possible nested Python project roots.

The codecanvas MCP server builds project-level structural information and uses it for bounded upstream and downstream traces. who_calls follows direct or transitive callers, while call_tree follows project-internal callees and attributes direct or transitive effects. logic_flow, function_flow, and reaching_conditions expose branches, outcomes, nesting, guards, returns, raises, complexity, and unreachable code. verify_claim combines paths with guards and can return true, false, or uncertain.

Static analysis is not runtime execution. Inferred edges, ambiguity, truncated results, and unsupported qualifiers can limit confidence.

Setup and configuration

Install uv if uvx is unavailable, then start the server with:

toml
[mcp_servers.codecanvas]
command = "uvx"
args = ["codecanvas-mcp"]

The repository provides marketplace plugins for Claude Code and Codex. Clients without plugin support can use an equivalent stdio MCP configuration.

Tools and capabilities

  • Discover project state and nested roots with project_status.
  • Find routes, scripts, exports, and symbols with list_entrypoints and find_symbols.
  • Summarize behavior with logic_flow and what_does.
  • Inspect structured control flow and enclosing guards with function_flow and reaching_conditions.
  • Trace callers, callees, effects, and reachability with who_calls, call_tree, and verify_claim.
  • Map diffs or Git references to changed functions and affected surfaces with analyze_impact.
  • Compare state schemas or run focused state transitions with validate_state_schema and simulate_state_transition.

The codecanvas MCP server is Python-only and requires Python 3.10 or newer. It complements grep and language-server features rather than replacing exact text search or definition and reference navigation.

Limitations and notes

Analysis is limited to Python projects. Call resolution may be inferred or ambiguous, and bounded responses may be truncated. Agents should use the returned evidence metadata and response_guidance when deciding how strongly to state a conclusion. Pass the intended nested project root explicitly when the automatic candidate list is not sufficient.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Codecanvas

codecanvas is an MCP server that connects coding agents to local Python project analysis. Its main tools discover symbols and entrypoints, explain logic flow, trace callers and callees, verify guarded reachability, analyze change impact, validate state schemas, and simulate focused state transitions with uncertainty metadata.

Install it by configuring an MCP client to run `uvx codecanvas-mcp`; `uv` must be available. Claude Code and Codex also have repository marketplace plugins that start the same command. Clients without plugin support can use the documented stdio configuration.

Yes, codecanvas can be used with Cursor through the standard stdio MCP configuration, provided the client supports that configuration. Start `uvx codecanvas-mcp`, then pass an absolute `project_path` on the first tool call.

Use `who_calls` to walk direct or transitive callers upstream. Select the project by passing an absolute `project_path` first, then identify the target function. Results include bounded paths and metadata that can indicate inferred, ambiguous, or truncated evidence.

Yes, use `analyze_impact` with an inline diff or Git reference. It maps changed functions to affected entrypoints and public surfaces. The result is static analysis, so inferred edges, ambiguity, and truncation should qualify conclusions.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCodecanvas AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/codecanvas?style=directory)](https://allmcps.com/mcp/codecanvas)
HTML Embed
<a href="https://allmcps.com/mcp/codecanvas"><img src="https://allmcps.com/api/badge/codecanvas?style=directory" alt="Codecanvas on AllMCPs" /></a>