Sponsored by Deepsite.site

Code Pathfinder

Created By
shivasurya16 days ago
Code Pathfinder's MCP Server provides AI coding assistants like Claude Code with deep semantic understanding of codebases through call graph analysis, symbol search, and dependency tracking. It enables developers to ask natural language questions like "who calls this function?" instead of manually using grep or searching code. The tool runs 100% locally (your code never leaves your machine), is free and open-source under AGPL-3.0, and installs in under 5 minutes. [codepathfinder](https://codepathfinder.dev/mcp)
Content

Code Pathfinder MCP Server: Complete Guide

Overview

Code Pathfinder's Model Context Protocol (MCP) Server transforms AI coding assistants like Claude Code, Codex, and OpenCode into powerful code intelligence tools through deep semantic analysis. Unlike traditional grep or text-based search, this open-source MCP server provides call graph analysis, symbol search, dependency tracking, and dataflow analysis—enabling developers to query codebases using natural language.

The Code Pathfinder MCP implementation runs 100% locally, ensuring your code never leaves your machine while delivering enterprise-grade code intelligence for security analysis, codebase onboarding, and refactoring support.

Core Capabilities

Six Specialized Analysis Tools

The Code Pathfinder MCP Server provides comprehensive semantic code analysis through six dedicated tools:

  • Project Statistics: Codebase metrics and structure overview
  • Symbol Search: Find functions, classes, and variables across your project
  • Reverse Call Graphs (get_callers): Discover "who calls this function?"
  • Forward Call Graphs (get_callees): Trace "what does this function call?"
  • Call Site Details: Exact file paths and line numbers for each invocation
  • Import Resolution: Track dependencies and module relationships

Natural Language Code Queries

Developers can ask questions in plain English instead of manually using grep or performing code archaeology:

  • "What functions call validate_user in my authentication module?"
  • "Show me all database queries in the user service"
  • "Where is decrypt_token used across the codebase?"
  • "How does user input flow through the payment pipeline?"

Technical Architecture

Multi-Pass AST Analysis

Unlike traditional code search tools that only match text patterns, the Code Pathfinder MCP Server performs multi-pass Abstract Syntax Tree (AST) analysis to build comprehensive code graphs with precise semantic understanding. This enables accurate dataflow analysis, taint tracking for security, cross-file call resolution, and dependency graph construction.

Multi-Project Support

Query across microservices, monorepos, and complex multi-project architectures—suitable for enterprise-scale codebases.

Key Benefits

  • Eliminates Manual Code Search: No more grepping through thousands of files—get instant answers about code structure
  • Deep Semantic Understanding: Goes beyond text matching to understand actual code relationships and execution paths
  • Seamless IDE Integration: Works directly within your AI coding assistant workflow
  • Multi-Language Support: Currently supports Python with planned expansion to JavaScript, TypeScript, Go, and Java

Privacy and Open Source

100% Local Execution

All analysis runs entirely locally on your development machine. Your source code never gets sent to external servers—critical for enterprise security compliance, protected intellectual property, and GDPR regulations.

Free and Open Source (AGPL-3.0)

Fully free and open-source with community contributions welcome. Developers can inspect, modify, and extend the codebase for custom security analysis workflows.

Installation (Under 5 Minutes)

Homebrew (macOS/Linux):

brew install shivasurya/tap/pathfinder

pip (Python):

pip install code-pathfinder

Chocolatey (Windows):

choco install code-pathfinder

Docker:

docker pull codepathfinder/mcp-server

Add a simple JSON configuration to your AI assistant's MCP config file. See the Code Pathfinder documentation for step-by-step setup guides.

Use Cases

Security Vulnerability Analysis

Combined with Code Pathfinder's SAST security scanning, the MCP server enables AI assistants to understand vulnerability context—tracing how user input flows to dangerous functions like SQL injection points, command execution, and deserialization.

Codebase Onboarding

New team members can query the codebase to understand architecture, function relationships, and code organization without reading extensive documentation.

Refactoring Support

Quickly identify all callers of a function to assess refactoring impact and breaking changes.

Dependency Analysis

Track how modules and functions depend on each other—essential for managing technical debt and planning migrations.

Integration with Code Pathfinder Platform

The Code Pathfinder MCP Server is part of the broader Code Pathfinder platform that includes:

  • SAST Security Scanning: 98% fewer false positives with AI-powered filtering
  • SecureFlow AI: Contextual security analysis for teams
  • CI/CD Integration: GitHub Actions, SARIF exports, DefectDojo reporting
  • Security Rule Registry: OWASP Top 10, CVEs, CWE categories, and framework vulnerabilities

Getting Started

Visit codepathfinder.dev/mcp for installation guides, configuration examples, and documentation for integrating with Claude Code, Codex, OpenCode, and other AI coding assistants.

Server Config

{
  "mcpServers": {
    "code-pathfinder": {
      "command": "pathfinder",
      "args": [
        "serve",
        "--project",
        "/absolute/path/to/your/project"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
ChatWiseThe second fastest AI chatbot™
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Amap Maps高德地图官方 MCP Server
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
WindsurfThe new purpose-built IDE to harness magic
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
DeepChatYour AI Partner on Desktop
Serper MCP ServerA Serper MCP Server
Tavily Mcp
Playwright McpPlaywright MCP server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
CursorThe AI Code Editor
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"