# Fallow

> Fallow is an open-source MCP server for developer tools. Dead code, duplication and complexity analysis for TypeScript and JavaScript repos. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted
- **Website:** https://fallow.tools/docs/integrations/mcp/
- **Repository:** https://github.com/fallow-rs/fallow
- **MCP Registry name:** io.github.fallow-rs/fallow
- **Categories:** developer tools
- **Listing updated:** 2026-11-14

## About

Fallow builds a full module graph of a codebase so an agent can ask questions it cannot answer by reading files: which exports are unused, which dependencies are never imported, where clones sit and which files are complexity hotspots. The page stresses that results are deterministic and complete.

The CLI is the main interface, with JSON output and a changed-since filter for pull-request workflows. The MCP server is an optional stdio layer that gives the same analyses typed inputs and outputs. It runs most requests in process and starts the CLI for options only the CLI has.

It resolves export-star chains through barrel files and detects feature flags and environment gates. The npm package ships the fallow-mcp launcher.

## Features

- **Module graph:** Builds one cached import graph across thousands of files.
- **Dead code finder:** Reports unused exports and dependencies.
- **Duplication detection:** Finds clones across files with a suffix array.
- **Auto-fix preview:** Dry-run before applying removals.
- **Typed output:** JSON types for check, health, dupes and audit results.

## Good for

- Clean unused exports before a release
- Check only files changed since main
- Find duplicated code across a monorepo
- Give a coding agent repeatable answers

## Install

### Claude Code (Terminal)

```sh
claude mcp add fallow -- npx -y fallow
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "fallow": {
      "command": "npx",
      "args": [
        "-y",
        "fallow"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "fallow": {
      "command": "npx",
      "args": [
        "-y",
        "fallow"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "fallow": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "fallow"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "fallow": {
      "command": "npx",
      "args": [
        "-y",
        "fallow"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "fallow": {
      "command": "npx",
      "args": [
        "-y",
        "fallow"
      ]
    }
  }
}
```

## FAQ

### Do I need MCP?

No, any agent that runs shell commands can use the CLI.

### Is output stable?

The page says the same input gives the same output.

### How is it installed?

Through the fallow npm package, cargo, or release binaries.

### Is Fallow free?

Yes. Fallow is open source, so you can use and self-host it for free.

### How do I add Fallow to Claude Code?

Run this command in your terminal: claude mcp add fallow -- npx -y fallow

### What are the best alternatives to Fallow?

The closest alternatives to Fallow are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/fallow
