PlugWiki
fallow logo

Fallow MCP Server: Setup for Claude Code, Cursor and Other Apps

OfficialLocal
Getnpmfallowfallow-rs/fallow

Lets Claude, Cursor and other assistants find unused code, duplicates, complexity hotspots and bad imports in a TypeScript or JavaScript project.

Fallow is a code analysis tool for TypeScript and JavaScript, and its MCP server gives your assistant the same results as structured answers. Your assistant can ask what code nothing uses, where code is copied, which files are hotspots, and what a change would affect. It runs on your computer with no account, and only its cloud tools need a key. One tool can edit your project, so preview before you let it apply fixes. The docs say the command line is the main interface and the MCP server is an optional extra.

Good for

  • Developers who want an assistant to clean up unused code and dependencies
  • Tech leads who need complexity hotspots and architecture rules checked in reviews
  • Teams who want an assistant to check a branch before they merge it
  • Claude Code and Cursor users who work in TypeScript or JavaScript repos

Works in

12 should work

Tap an app to see how to set it up and any known problems.

Install fallow MCP

Claude Code

  1. 1

    Copy this prompt.

    Add the fallow MCP server to Claude Code. Run this command:
    
    claude mcp add fallow -- npx -y --package fallow fallow-mcp
    
    Then check that it loaded and tell me if I need to sign in or restart.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js.

Read-only mode: There is no read-only mode. Ask your assistant to use only the preview for fixes, and keep your work committed.

The command runs the fallow-mcp launcher from the fallow npm package, so you do not install anything first. Start your assistant from the project root so it analyzes that project. Optional settings: FALLOW_BIN picks the fallow binary, FALLOW_TIMEOUT_SECS raises the 120-second default on large repos, and FALLOW_API_KEY enables the cloud tools. The vendor also offers a one-pass setup that writes AGENTS.md, skills and a commit gate; it is not needed for the server.

Built from the package data we hold. Not yet tested by us.

Tools

  • Finds unused files, exports, dependencies and circular imports

    Runs the full dead-code analysis on a TypeScript or JavaScript project. It reports unused files, exports, types and dependencies, unresolved imports, circular dependencies and architecture-rule violations. It can save a baseline file if you ask.

    Try: “Find all unused exports and files in this project.”

    Write · analyze

  • Checks only the files you changed since a git ref

    Runs the same dead-code analysis but only on files changed since a branch or commit. Finding IDs match a full run, so an ID missing here is unknown, not fixed.

    Try: “What unused code did my changes since main introduce?”

    Write · check_changed

  • Gives a pass, warn or fail verdict on your changed files

    Audits changed files for dead code, complexity, duplication and styling and returns a verdict. It can compare against a base ref and read coverage data for sharper complexity scores.

    Try: “Audit my branch against main and tell me if it passes.”

    Files · audit

  • Finds copy-pasted code across the project

    Detects duplicated code and groups clones with a stable fingerprint. It can also find near-miss clones inside functions. Like analyze, it can write a baseline file when asked.

    Try: “Find duplicated code in src and list the biggest clone groups.”

    Write · find_dupes

  • Scores complexity, hotspots and what to refactor first

    Reports per-function complexity, file health scores, hotspots that change often, and ranked refactoring targets. Options add git churn, ownership, test coverage gaps and trends against a saved snapshot.

    Try: “Which files are the biggest complexity hotspots, and what should I refactor first?”

    Write · check_health

  • Checks import cycles and layer-boundary violations

    After you edit files, reports import cycles, boundary violations and rule-pack policy violations with the same finding IDs as analyze.

    Try: “Did my last change introduce any circular imports or boundary violations?”

    Files · check_architecture

  • Shows the architecture rules for files before you edit them

    Before an edit, reports which boundary zone a file is in, which zones it may import from, and which calls or rule-pack policies are forbidden.

    Try: “What are the architecture rules for src/billing/invoice.ts before I change it?”

    Files · guard

  • Lists possible security problems, not confirmed ones

    Returns unverified local security candidates with category, CWE, severity, evidence and a source-to-sink trace. The severity is a review priority, not a verdict.

    Try: “List security candidates in this project and rank which to review first.”

    Files · security_candidates

  • Gathers everything known about one file or export

    For one file or exported symbol, returns dead-code actions, duplication groups, complexity findings and security candidates in one call. An option adds the symbol's call chain.

    Try: “Give me all the findings for src/utils/format.ts.”

    Files · inspect_target

  • Explains why an export counts as used or unused

    Shows whether a file is reachable, its direct references, re-export chains and a reason string for one export. Use it before deleting an export that looks unused.

    Try: “Why does fallow think formatDate in src/utils/date.ts is unused?”

    Files · trace_export

  • Shows every import edge for a file

    Lists a file's reachability, entry-point status, exports, what it imports, what imports it and its re-exports, so you can tell if it is isolated or live.

    Try: “Who imports src/legacy/old-api.ts, and is it still reachable?”

    Files · trace_file

  • Shows where a package is imported

    Returns the files that import a package, the ones that only use its types, a count, and whether package scripts or CI configs call it.

    Try: “Where do we use lodash, and can we remove it?”

    Files · trace_dependency

From the official docs

Permissions

high risk · 5 things to watch · 4 advisories

High risk

One tool applies fixes that edit files and delete unused dependencies, and there is no read-only switch. Keep the project in git, and have the assistant run the preview first.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • It can delete code and dependencies

    The fix tool removes unused exports, deletes unused dependencies from package.json and may delete dead enum declarations. Ask for the preview first and keep your work committed. github.com

  • Some analysis tools write files

    Four tools can save a baseline or snapshot file, inside the project root, the CI workspace or the temp folder. A host that auto-approves read-only tools now asks before running them. fallow.tools

  • Cloud tools send requests to Fallow Cloud

    They are the only tools that make a network call, and they need an API key from an organization on the Pro or Enterprise plan or an active trial. Skip them if code context must stay local. fallow.tools

  • It starts the fallow command for some options

    For options only the command line has, the server runs a fallow subprocess. The FALLOW_BIN setting picks which binary, and the default is fallow on your PATH. fallow.tools

  • Telemetry is off unless you opt in

    The README says analysis runs on your machine or CI runner and telemetry is opt-in. github.com

Security advisories

Technical details
Turning on read-onlyNo read-only mode is documented. The fix_apply tool edits files, and four analysis tools can save baseline or snapshot files.
Talks toFallow Cloud, only for the three cloud tools
Sign-in and keysLocal analysis needs no credentials. The cloud tools read FALLOW_API_KEY from the server environment, or the key stored by the fallow cloud login command.
Scopes
  • The project folder you run it in

Questions

Is the Fallow MCP server free?

Yes for local analysis. The package is MIT licensed and needs no account. The cloud tools need an API key from a Pro or Enterprise organization or an active trial, and continuous runtime-coverage monitoring needs a license.

Do I need MCP to use Fallow with an AI assistant?

No. The docs say any agent that can run shell commands can call the Fallow command line directly, and that is the main interface. The MCP server adds typed tools on top.

Can Fallow delete my code?

Yes, through the apply-fixes tool. It removes unused exports and unused dependencies and may delete dead enum declarations. The preview tool shows the changes first and edits nothing.

Does Fallow send my code anywhere?

Not for local analysis. The README says analysis runs on your machine or CI runner. Only the cloud tools contact Fallow Cloud, and telemetry is opt-in.

Why does the server fail to start with ENOENT?

The plain fallow-mcp command needs the program on your PATH, and a project-local install is not on it. Use the npx command from the install box above, which finds it, and start your assistant from the project root.

Why does Claude Code ignore my Fallow config?

Claude Code does not read MCP servers from .claude/settings.json and gives no error. Add the server with the claude mcp add command or put it in .mcp.json in the project root.

How many tools does Fallow have?

The vendor docs list 41 and the current source registers 43, including two cloud tools. The count can change between versions, and the tools section above lists all 43.

What does fallow agent install do?

It sets up Claude Code, Codex and Cursor in one pass. It writes an AGENTS.md task map, installs two skills, registers the MCP server and adds a gate on git commit and git push. Run it with the dry-run option first to see the plan.

Information

updated Nov 2, 2026

Publisher
Official
Package
fallow
Registry
npm
Transport
stdio
Auth
None
Version
3.38.1
License
MIT
Last commit
Oct 31, 2026
Open issues
20

WebsiteGitHubnpmChangelogIssues

Sources

Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.

Show all 3
  1. Fallow README · github.com
  2. Fallow agent integration: MCP · fallow.tools
  3. Fallow MCP server source · github.com

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.