Server data from the Official MCP Registry
Codebase analysis tools for AI agents: complexity, prop drilling, doc coverage, code smells.
Codebase analysis tools for AI agents: complexity, prop drilling, doc coverage, code smells.
Scopewalker is a well-designed, local-only code analysis MCP server with strong security fundamentals. The codebase demonstrates careful attention to security boundaries, no network access, no credential handling, and appropriate input validation. Minor code quality observations around broad error handling do not materially impact security posture. Supply chain analysis found 2 known vulnerabilities in dependencies (0 critical, 2 high severity). Package verification found 1 issue.
7 files analyzed · 6 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Set these up before or after installing:
Environment variable: SCOPEWALKER_ALLOWED_ROOTS
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-timohaa-scopewalker-mcp": {
"env": {
"SCOPEWALKER_ALLOWED_ROOTS": "your-scopewalker-allowed-roots-here"
},
"args": [
"-y",
"scopewalker-mcp"
],
"command": "npx"
}
}
}From the project's GitHub README.
AI agents will happily create 1000+ line source files and add a 20th parameter to a function call, even if there's a rule file telling them not to. Scopewalker exists to enforce stricter codebase standards.
It's a local MCP server (open source, runs over stdio, makes no network calls) that exposes 8 read-only tools:
get_line_counts - per-file line counts (total, code, blank, comment) with sorting, extension filters, and project-wide totalsget_functions - function and method detection; per-file counts, or per-function line metrics via detail=lines with a min_lines filter for hunting oversized functionsget_complexity_metrics - max/average nesting depth and parameter counts (JSX props included), import counts, and a cognitive-complexity score per file, with hotspots flagged for deeply nested or over-parameterized functionscheck_thresholds - flags files and functions exceeding size thresholds (defaults: 300 lines per file, 100 per function)get_code_inventory - classes with their methods, functions, interfaces/types, enums, and constants, each marked exported or not; private symbols hidden by defaultget_documentation_coverage - coverage percentage plus every function, class, or method missing a doc comment (JSDoc, Python docstrings, Rust ///, and other per-language formats)get_code_smells - TODO/FIXME/HACK/XXX/BUG/UNUSED/DEPRECATED markers found by scanning actual comments via the AST (no false positives from string literals), plus as unknown as / as any as double casts in TypeScriptget_prop_drilling - parameter names threaded through many functions and files, with forwarding evidence and a high/medium/low risk ratingIt's tree-sitter (parsing) + tokei (line counting) + fast-glob (file discovery) under the hood; nothing is custom-parsed. Tested on macOS with Claude Code, but should work with Cursor, VS Code, Windsurf, Gemini CLI, Codex, or anything else that speaks MCP.
See TOOLS.md for the quick reference and docs/ for per-tool parameters and example responses.
SCOPEWALKER_ALLOWED_ROOTS=/abs/path1,/abs/path2.limit is set.get_code_smells redacts comment text by default; pass include_text: true to return snippets explicitly.brew install tokei or cargo install tokeiScopewalker is published to npm as scopewalker-mcp — no clone or build needed. Configure your MCP client to run it via npx (examples below), or install it globally with npm install -g scopewalker-mcp.
To build from source instead, see Development.
claude mcp add scopewalker-mcp --scope user -- npx -y scopewalker-mcp
Or add to ~/.claude.json:
{
"mcpServers": {
"scopewalker-mcp": {
"command": "npx",
"args": ["-y", "scopewalker-mcp"]
}
}
}
See Claude Code MCP documentation for details.
Download scopewalker-mcp.mcpb from the latest release and open it with Claude Desktop (or drag it into Settings > Extensions) for one-click installation.
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
{
"mcpServers": {
"scopewalker-mcp": {
"command": "npx",
"args": ["-y", "scopewalker-mcp"]
}
}
}
Or configure via File > Preferences > Cursor Settings > MCP.
See Cursor MCP documentation for details.
Add to .vscode/mcp.json in your workspace:
{
"servers": {
"scopewalker-mcp": {
"command": "npx",
"args": ["-y", "scopewalker-mcp"]
}
}
}
Requires VS Code 1.102+ with Agent Mode enabled.
See VS Code MCP documentation for details.
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"scopewalker-mcp": {
"command": "npx",
"args": ["-y", "scopewalker-mcp"]
}
}
}
Or configure via Windsurf Settings > Cascade > Manage MCPs.
See Windsurf MCP documentation for details.
Add to ~/.gemini/settings.json:
{
"mcpServers": {
"scopewalker-mcp": {
"command": "npx",
"args": ["-y", "scopewalker-mcp"]
}
}
}
See Gemini CLI MCP documentation for details.
Add to ~/.codex/config.toml:
[mcp_servers.scopewalker-mcp]
command = "npx"
args = ["-y", "scopewalker-mcp"]
Or use the CLI:
codex mcp add scopewalker-mcp -- npx -y scopewalker-mcp
See Codex MCP documentation for details.
Once configured, the assistant calls Scopewalker's tools on its own — no special syntax needed. Ask things like:
src/ have the highest cognitive complexity?"src/auth"It picks the right tool and parameters for the request.
This repo also dogfoods its own tools via Claude Code skills and agents:
.claude/skills/check-quality/SKILL.md — runs check_thresholds and get_code_smells as part of the quality gate.claude/agents/standards-enforcer.md — uses the full tool set to find and fix standards violations.claude/agents/docs-reality-sync.md — uses get_code_inventory and get_functions to keep docs in sync with codeTo run from source instead of npm:
git clone https://github.com/timohaa/scopewalker-mcp.git
cd scopewalker-mcp
npm install
npm run build
Then point your MCP client at the build output, e.g. claude mcp add scopewalker-mcp --scope user -- node /path/to/scopewalker-mcp/dist/index.js.
npm run build # Build the project
npm run check # Lint + typecheck
npm run test # Run tests
npm run test:coverage # Run tests with coverage
See CONTRIBUTING.md for contribution guidelines and docs/patterns.md for tool registration, error handling, and testing patterns.
The AST-based tools (everything except get_line_counts) parse:
.ts, .tsx, .js, .jsx, .mjs, .cjs).py).go).rs).java).c, .h, .cpp, .cc, .cxx, .hpp).rb)get_line_counts runs through tokei, so it reports on every language tokei recognizes. See docs/tools-overview.md for what is detected per language.
MIT
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.