# jCodemunch MCP [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/jgravelle/jcodemunch-mcp  
**GitHub Stars:** 2871  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/jcodemunch-mcp

## Description
Token-efficient code exploration via tree-sitter AST parsing. 70+ languages, 95%+ token savings.

## Tools
Capabilities this server exposes over MCP:

- **set_tool_tier** — Explicit tier override for the current session. Narrows or widens the exposed tool list to 'core' / 'standard' / 'full'. Prefer plan_turn(model=...) for routine per-task use; use set_tool_tier only for an explicit override (e.g. escalate to 'full' after a capability-gated failure). A narrowing that costs more than it saves is refused.
- **announce_model** — Agent self-reports its active model identifier. Server resolves to a tier via model_tier_map (fuzzy: normalize → exact → glob → substring → '*' → 'full') and narrows the exposed tool list accordingly. Idempotent: a second call with the same model is a cheap no-op. Prefer calling plan_turn(model=...) for routine per-task use; use announce_model as a fallback when plan_turn is not appropriate for the current task.
- **jcodemunch_guide** — Return the version-current CLAUDE.md / AGENT.md policy snippet for jcodemunch-mcp — the same text produced by `jcodemunch-mcp claude-md --generate`. Lets an agent keep a one-line CLAUDE.md (e.g. "Call jcodemunch_guide and strictly follow its instructions.") instead of pasting a static snippet that drifts from the installed version. Idempotent, no repo context required. Matches the active tool surface, tier and disabled_tools — list 'jcodemunch_guide' in disabled_tools to hide it.
- **order** — Dispatch any jcodemunch action by name: order(action, args). The single-verb front door to the full tool catalog. Read-only by default — actions that change index/session state require allow_state_change=true, and execution/file-write verbs are refused. For exploration questions ('how does X work'), order('get_ranked_context', {repo, query, token_budget}) answers in ONE call — prefer it over chained search/outline/source hops; add compress=true to fit more symbols in the same budget. Call 'menu' to discover actions, or 'route' to pick one from a task.
- **menu** — Discover catalog actions without keeping the full tool catalog resident: menu(query?). Returns compact rows (action, summary, required args, state_changing). With no query, lists the catalog. Pair with 'order' to dispatch the chosen action.
- **route** — Map a natural-language task to the best catalog action(s): route(task, repo?, execute?). Returns ranked recommendations with ready-to-run argument templates. With execute=true, dispatches the top recommendation and returns its result in the same call, collapsing discover-then-call into one round-trip. Recommends assemble_task_context / plan_turn for context-gathering intents.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "jcodemunch-mcp": {
    "command": "uvx",
    "args": ["jcodemunch-mcp"]
  }
}
```

## Documentation

## What jCodemunch MCP does

jCodemunch MCP gives MCP-compatible coding agents a symbol-oriented way to explore source repositories. It parses code with tree-sitter, records structured information such as symbol kind, qualified name, signature, summaries, and byte positions, and keeps that metadata with the source content in a local index. Agents can then request relevant functions, classes, methods, constants, outlines, imports, or focused context rather than opening complete files.

The approach is intended for repository understanding and navigation. It supports more than 70 programming languages and includes structural queries such as finding importers, estimating a change's blast radius, inspecting class hierarchies, and locating dead code. These queries can span indexed repositories where the relevant action supports it.

## How it works

A repository is indexed before it is queried. For a focused lookup, an agent can search symbols and then retrieve the source for selected results. For broader questions, `get_ranked_context` can answer a repository question in one call with a token budget; `compress=true` requests a denser result. The MUNCH response encoding can further reduce response size.

The default interface is intentionally small. `menu` lists or filters available catalog actions, `route` maps a natural-language task to recommended actions and argument templates, and `order` dispatches an action by name. `route` can also execute its top recommendation in the same request. `jcodemunch_guide` returns the version-matched policy text for configuring an agent.

Tool exposure can depend on the active model. `announce_model` resolves a model identifier to a configured tier, while `set_tool_tier` explicitly changes the session between `core`, `standard`, and `full`. Routine task planning can use the model-aware planning path exposed through the catalog instead of manually changing the tier.

## Setup and configuration

Install the Python package with `uv`, then initialize it:

```bash
uv tool install jcodemunch-mcp
jcodemunch-mcp init
```

The repository also provides one-click installation links for VS Code and Cursor. It is designed for local-first use and can be connected to Claude Code, Cursor, VS Code, Codex CLI, Windsurf, Continue, or another MCP-compatible client.

A newly initialized setup exposes a six-tool front door: `menu`, `order`, `route`, `jcodemunch_guide`, `announce_model`, and `set_tool_tier`. The `jcodemunch-mcp surface` command shows the tool surface advertised by the installed setup. The guide action can provide policy text dynamically, avoiding a permanently copied snippet that could diverge from the installed version.

## Tools and capabilities

- Discover catalog actions with `menu`, optionally filtered by a query.
- Map coding tasks to actions with `route`, with optional same-call execution.
- Dispatch catalog actions through `order(action, args)`.
- Search symbols and retrieve exact implementations through the indexed action catalog.
- Build ranked, budgeted context for repository questions with `get_ranked_context`.
- Inspect repository relationships and structure with actions including `find_importers`, `get_blast_radius`, `get_class_hierarchy`, and `find_dead_code`.
- Control exposed tools using model announcements or explicit session tiers.

`order` is read-only by default. Actions that modify index or session state require `allow_state_change=true`, and execution or file-writing verbs are refused through that entry point.

## Limitations and notes

The published token-efficiency benchmark measures a particular workflow against pinned repositories and commits, so its reported savings describe that test rather than a guarantee for every repository or query. Indexing and lookup results depend on the source being available to the local index. Tool availability can also vary with the selected tier and disabled-tool configuration. Commercial use is covered separately from personal use under the project's dual-use licensing model.

_Full upstream README: https://allmcps.com/mcp/jcodemunch-mcp/readme_

