Code Pathfinder logo

Code Pathfinder

Cross-file SAST and MCP code analysis for call graphs, data flows, security rules, and source-to-sink vulnerabilities.

Install Code Pathfinder

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": {
    "code-pathfinder": {
      "command": "uvx",
      "args": [
        "codepathfinder",
        "serve"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio code-pathfinder -- uvx codepathfinder serve

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx codepathfinder serve

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Code Pathfinder MCP server gives AI coding assistants access to call graphs, data-flow traces, pattern searches, and security-rule analysis. It runs locally with a project path, parses source into graphs, and exposes queries through MCP tools for code review and development. Reach for it when an assistant needs cross-file security context beyond ordinary symbol or language-server queries, especially for Python and container configuration.

Use cases

  • Trace user input into database operations across multiple files
  • Review Python code for bundled security rule violations
  • Query callers and callees during AI-assisted code review
  • Scan Dockerfiles and Compose files for configuration risks
  • Run custom source-to-sink security rules on a project

Key features

  • Cross-file call-graph analysis
  • Inter-procedural taint and data-flow tracing
  • MCP queries for callers, callees, patterns, and security rules
  • Bundled Python, Docker, and Docker Compose rules
  • Custom Python rule support through the PathFinder SDK
  • Text, JSON, SARIF, and CSV scan output

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.

34/36 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · codepathfinder (PyPI)

Adoption & maintenance

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

GitHub stars143Stargazers on the source repository.
Last commit4mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Code Pathfinder works

What Code Pathfinder MCP server does

Code Pathfinder MCP server connects an AI coding assistant to a local project’s code graph and static-analysis engine. It can provide information about callers and callees, trace data flows, search for code patterns, and run security rules while the assistant reviews or changes code. The broader CLI also performs SAST scans and reports findings in text, JSON, SARIF, or CSV formats.

The engine is designed to find vulnerabilities that cross file and function boundaries. Examples in the project include tracking input received by an HTTP handler through helper functions and into a SQL execution call. Its bundled rules cover Python security issues such as SQL injection, remote-code execution, SSRF, path traversal, XSS, unsafe deserialization, cryptographic misuse, and JWT vulnerabilities. Docker and Docker Compose rules cover issues including root users, exposed secrets, privileged mode, socket exposure, and capability escalation.

How it works

Code Pathfinder MCP server starts against a project directory with the pathfinder serve --project . command. The analysis pipeline parses source with Tree-sitter, indexes functions, parameters, assignments, and call sites, and builds a cross-file call graph. It then creates variable dependency graphs for functions and connects them using inter-procedural taint summaries.

Security rules query those graph structures to identify source-to-sink paths. A source may be user-controlled input, while a sink may be a database operation or another security-sensitive operation. Sanitizers and propagation behavior can be defined in custom Python rules through the PathFinder SDK. The repository also supports selecting individual rules, rule bundles, or all rules for a language during CLI scans.

The current listing also describes code-intelligence features for Python and Go, including type inference and symbol search; consult the project’s current documentation for the exact language coverage of each MCP query.

Setup and configuration

Install the CLI with Homebrew using brew install shivasurya/tap/pathfinder, or install the Python package with pip install codepathfinder. Pre-built binaries are available through GitHub Releases, and a Docker image is provided for containerized scans. After installation, start the MCP process with:

bash
pathfinder serve --project .

The project states that the server needs no API key, cloud account, or configuration file. Rules download automatically from a CDN when scans use bundled rules. The MCP client must be configured to launch the local pathfinder executable with the serve subcommand and the target project directory.

The README names Claude Code, Cursor, and Cline as supported AI assistants, along with other MCP-compatible assistants.

Tools and capabilities

  • Query callers and callees in the indexed code graph.
  • Trace data flows across files and function boundaries.
  • Search the project for code patterns.
  • Run bundled security rules from the MCP session.
  • Scan Python, Dockerfile, and Docker Compose projects through the CLI.
  • Run custom Python rules that define sources, sinks, sanitizers, and propagation behavior.
  • Export CLI findings as text, JSON, SARIF, or CSV.

Code Pathfinder MCP server is therefore most suitable when an agent needs structural and security analysis of a local repository rather than only text search or editor-level symbol information.

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 Code Pathfinder

Install the CLI with Homebrew using `brew install shivasurya/tap/pathfinder`, or use `pip install codepathfinder`. Pre-built binaries and a Docker image are also available.

Run `pathfinder serve --project .` from the project directory, then configure the MCP client to launch that command.

Yes.

No. The quick-start documentation states that it requires no API keys or cloud accounts.

Yes. Its cross-file taint analysis connects function-level dependency graphs through inter-procedural summaries and follows source-to-sink paths across files.

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 PreviewCode Pathfinder AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/code-pathfinder?style=directory)](https://allmcps.com/mcp/code-pathfinder)
HTML Embed
<a href="https://allmcps.com/mcp/code-pathfinder"><img src="https://allmcps.com/api/badge/code-pathfinder?style=directory" alt="Code Pathfinder on AllMCPs" /></a>