Scopewalker MCP logo

Scopewalker MCP

Analyzes local codebases for complexity, size thresholds, documentation gaps, code smells, prop drilling, and dead code.

Install Scopewalker MCP

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

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "scopewalker-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "scopewalker-mcp"
      ],
      "env": {
        "SCOPEWALKER_ALLOWED_ROOTS": "YOUR_VALUE_HERE"
      }
    }
  }
}

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

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

scopewalker-mcp gives AI agents read-only tools for inspecting local codebases over stdio. It combines AST-based parsing with tokei line counting to report structure, complexity, documentation coverage, suspicious markers, parameter threading, and unreachable symbols. Analysis stays local, with path scoping and limits for files, depth, results, and large AST inputs. Reach for it when an agent needs measurable code-quality checks before a review, refactor, or commit.

Use cases

  • Check a repository against file and function size thresholds
  • Find highly complex or over-parameterized functions
  • Locate undocumented classes, methods, and exports
  • Scan comments for TODO, FIXME, HACK, and related markers
  • Identify prop drilling and likely dead code

Key features

  • Read-only local analysis over stdio
  • AST-based metrics for eight programming-language families
  • Complexity, size, and documentation coverage reports
  • Prop-drilling and dead-code detection
  • Path scoping and bounded scan results
  • Comment-aware code-smell detection

Tools9

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

Verified live~3.1k 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.

13/13 checks healthy over the last 61d

What it can do

From the 9 tools this server returned when we ran it; 9 declare their own safety hints.

Read-only tools · 9
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age106 days
Maintainers1

Observed 2026-10-30 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 13d ago via OSV.dev · scopewalker-mcp (npm)

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
npm downloads1.2kPackage downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Tools exposed9Callable tools this server registers over MCP.

How Scopewalker MCP works

What scopewalker-mcp does

scopewalker-mcp exposes nine read-only MCP tools for analyzing source trees. It can count total, code, blank, and comment lines; enumerate functions, methods, classes, interfaces, types, enums, constants, and exports; and identify files or functions that exceed configured size limits.

The analysis also covers code-quality patterns. Complexity reports include nesting, parameter counts, imports, cognitive complexity, and per-function cyclomatic complexity. Other tools locate missing documentation, TODO-style markers, TypeScript double casts, parameters passed through chains of functions, and symbols that are not referenced within the scan. Dead-code results distinguish symbols that appear unreachable from exports that may still be used outside the scanned roots.

AST-based analysis supports TypeScript, JavaScript, Python, Go, Rust, Java, C, C++, and Ruby. Line counting uses tokei and therefore covers every language recognized by that utility.

How it works

The server runs locally as a stdio MCP process and makes no network calls. File discovery uses fast-glob, syntax analysis uses tree-sitter, and line counts use tokei. Tools operate only within allowed roots. The SCOPEWALKER_ALLOWED_ROOTS setting can define comma-separated absolute paths; otherwise, shared workspace roots are used when the MCP client provides them, with fallback behavior for clients that provide none.

Results are limited by default to 20 files or items. Tool parameters can raise the result limit, subject to a maximum of 5,000. Scans also enforce maximum values of 10,000 files and depth 64. Symbolic links are not followed. AST-based tools skip files larger than 1 MB, while line-counting does not apply that guard. Comment text from smell findings is redacted unless include_text: true is requested.

Setup and configuration

Node.js 22 or newer and the tokei command are required. Install tokei with Homebrew or Cargo, then run the published package through npx:

config.json
{
  "mcpServers": {
    "scopewalker-mcp": {
      "command": "npx",
      "args": ["-y", "scopewalker-mcp"]
    }
  }
}

The same stdio command can be registered in Claude Code, Cursor, VS Code, Windsurf, Gemini CLI, and OpenAI Codex CLI using each client's MCP configuration format. Claude Desktop also supports installation from the packaged .mcpb file available from the project's latest release. A source build can be created with npm install, npm run build, and then started with Node against dist/index.js.

Tools and capabilities

  • get_line_counts reports per-file and project-wide line totals, with extension filtering and sorting.
  • get_functions lists functions and methods, with optional per-function line counts and minimum-size filtering.
  • check_thresholds flags oversized files and functions; its defaults are 300 lines per file and 100 lines per function.
  • get_code_inventory maps declarations and marks symbols as exported or non-exported, hiding private symbols by default.
  • get_code_smells detects selected markers in parsed comments and identifies TypeScript double casts.
  • get_complexity_metrics reports file and function complexity, including nesting, parameters, cognitive scores, and cyclomatic severity bands.
  • get_documentation_coverage calculates coverage and lists undocumented functions, classes, and methods.
  • get_prop_drilling shows parameters forwarded through function chains, with evidence and risk levels.
  • find_dead_code separates scan-proven dead symbols from potentially externally used unreferenced exports.

Limitations and notes

Findings describe the files and roots included in a scan. In particular, an unreferenced export can be used by code outside those roots, so it requires human judgment. Large files skipped by AST tools will not contribute to those structural findings. The server reports findings but does not modify source files; agents or developers must decide how to address them.

Reviews

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

Frequently Asked Questions about Scopewalker MCP

scopewalker-mcp is an MCP server that connects AI agents to local codebases over stdio and provides read-only tools for line counts, function inventories, complexity, thresholds, documentation coverage, code smells, prop drilling, and dead-code analysis. It runs locally without network calls or external API keys.

Install Node.js 22+ and tokei, then configure your MCP client to run `npx -y scopewalker-mcp`. The package is published on npm, so cloning and building are optional. Claude Desktop can also install the packaged `.mcpb` file from the latest release.

Yes, scopewalker-mcp works with Cursor through its stdio MCP configuration. Add a server entry that runs `npx` with `-y scopewalker-mcp` in the global `~/.cursor/mcp.json` or project-level `.cursor/mcp.json`, or configure it through Cursor settings.

scopewalker-mcp parses TypeScript, JavaScript, Python, Go, Rust, Java, C, C++, and Ruby for AST-based tools. Its line-counting tool supports every language recognized by tokei.

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