Codeweb logo

Codeweb

Maps a repository into a deterministic code graph and gives coding agents bounded tools for impact analysis, navigation, and structural checks.

Install Codeweb

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": {
    "codeweb": {
      "command": "npx",
      "args": [
        "-y",
        "-p",
        "@ghostlygawd/codeweb",
        "codeweb-mcp"
      ]
    }
  }
}

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

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

codeweb MCP server maps a repository’s supported symbols and relationships into a local deterministic graph that agents can query before, during, and after edits. Its tools cover callers, dependents, impact, tests, search, edit context, similarity, refactoring analysis, and structural regression checks. Run it when an agent needs mapped evidence about a code change instead of relying on text search alone. The analysis reads source code locally, does not execute it, and can miss dynamic or unsupported relationships.

Use cases

  • Map a repository before an agent begins work
  • Trace the mapped blast radius of a signature change
  • Find relevant tests and call-site windows before editing
  • Gate pull requests on structural regressions
  • Rank refactoring and dead-code candidates

Key features

  • Deterministic local code graph extraction
  • Bounded impact, caller, callee, and test queries
  • Structural diff and review gates
  • Similarity, duplication, cycle, and dead-code analysis
  • Architectural fitness rule checks
  • Interactive HTML graph report

Tools28

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

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

30/30 checks healthy over the last 112d

What it can do

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

Can delete or modify data · 1Handles credentials · 1Read-only tools · 27
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age106 days
Maintainers1

Observed 2026-11-03 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 8d ago via OSV.dev · @ghostlygawd/codeweb (npm)

Adoption & maintenance

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

npm downloads277Package downloads in the last 30 days.
Last commit7d agoMost recent push to the default branch.
Tools exposed28Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Codeweb works

What codeweb does

codeweb builds a local graph of supported repository symbols and their relationships, then exposes that graph through MCP tools for coding agents. The graph can represent calls, imports, inheritance, tests, references, file-level cycles, domains, duplication findings, orphan candidates, and other structural properties. It is intended for change planning and review: an agent can identify a symbol’s users, estimate its mapped blast radius, inspect relevant call sites, and check the result of an edit.

The system is deterministic and runs on the local machine. It reads source code but does not execute the program, use an LLM for static checks, require an account, or send telemetry. A generated .codeweb/report.html provides an interactive view of the extracted map, while graph.json and related artifacts support comparisons and CI workflows.

How it works

codeweb_map runs the extraction, clustering, overlap, optimization, and reporting pipeline for a repository. codeweb_refresh re-extracts the graph after edits and can save a prior graph for comparison. Queries return bounded results by default, with options such as full:true for larger mapped result sets.

A typical agent workflow starts with codeweb_brief or codeweb_find, continues with codeweb_explain, codeweb_context, or codeweb_impact, and uses codeweb_tests to identify relevant tests. Before a refactor, codeweb_simulate can check a hypothetical delete, merge, or move. Afterward, codeweb_refresh and codeweb_diff can compare graph snapshots, while codeweb_review performs a structural review of changed files.

Setup and configuration

Run the package from a repository with npx:

Terminal
npx -y @ghostlygawd/codeweb .

The initial map is written beneath the repository’s .codeweb directory. The generated report can be opened at .codeweb/report.html. Use codeweb_map when no graph exists or after substantial repository changes. For baseline comparisons, refresh with baseline:true before editing; for the older snapshot loop, use snapshot:true and then run codeweb_diff.

A CI workflow can build graphs for a pull request’s base and head and fail on configured structural regressions. The documented gate checks for a new dependency cycle, newly confirmed duplication, or a non-exported symbol that loses all mapped callers. The repository also supports codeweb.rules.json for architectural fitness checks.

Tools and capabilities

The MCP surface includes tools for:

  • Finding callers, callees, mapped dependents, tests, cycles, orphans, and transitive impact.
  • Producing repository and symbol briefs, concept search results, bounded edit context, and foundations-first reading orders.
  • Comparing similar functions, suggesting placement for a new symbol, and identifying hotspots or change-risk rankings.
  • Planning duplicate consolidation, cycle cuts, dead-code review, optimization campaigns, and hypothetical refactors without changing source files.
  • Reviewing changed files, checking architectural fitness rules, recording false-positive suppressions, and reporting local usage statistics.
  • Building, refreshing, and comparing graph artifacts for local analysis and CI gates.

Limitations and notes

Results describe the mapped source graph rather than complete runtime behavior. Unsupported layouts, ambiguous calls, dynamic dispatch, unmapped code, and other runtime relationships can cause callers or impact sets to be incomplete. Similarity findings do not prove equivalent behavior or safe reuse, and dead-code candidates are not deletion guarantees.

A passing structural check does not prove that the program works. Run relevant tests and inspect unresolved relationships. The diff gate exempts exported symbols from its orphan check, while codeweb_simulate is stricter and flags any surviving symbol that loses its last call-caller. Structural analysis uses no model tokens, and pure removals do not count as structural regressions.

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 Codeweb

codeweb is an MCP server that connects coding agents to a local deterministic graph of a repository’s supported symbols and relationships. Its main tools find callers, dependents, callees, tests, impact, similar code, edit context, and structural changes. It reads source without executing it and supports local analysis and CI checks.

Run `npx -y @ghostlygawd/codeweb .` from the repository you want to map. codeweb writes its graph artifacts under `.codeweb`, including an HTML report, and exposes the repository analysis through its MCP tools.

Refresh and compare graph snapshots with `codeweb_refresh` and `codeweb_diff`, or use `codeweb_review` for changed files. The gate checks for new cycles, newly confirmed duplication, and non-exported symbols that lose all mapped callers.

codeweb can find mapped callers, but its results are not guaranteed to include every runtime relationship. Use `codeweb_callers` for direct call-edge in-neighbors and `codeweb_dependents` for mapped call, import, inheritance, test, and reference users; dynamic or unsupported relationships may be absent.

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