Skip to content

Summary

Local codebase-intelligence MCP server and CLI for coding agents: a SQLite code graph over 28 languages with dependency tracing, impact analysis, pattern findings and scoped checks.

Features

  • Local SQLite code graph across 28 languages
  • Definitions, references, dependencies and change-impact analysis
  • Dead code, coupling, taint and metrics checks
  • Pattern findings with candidate algorithmic alternatives
  • 259 MCP tools in 8 presets; 17-tool core preset by default
  • roam mcp-setup writes config for Claude Code, Cursor, Windsurf, VS Code, Gemini CLI and Codex
  • No model calls, account or API key for local analysis

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it.
  3. Restart the agent — the "roam-code" tools will be available.
{
  "mcpServers": {
    "roam-code": {
      "command": "roam",
      "args": [
        "mcp"
      ]
    }
  }
}

Description

roam-code gives coding agents a reusable local index of a repository and a set of analyses they can call as they work. It builds a SQLite code graph of files and functions across 28 languages, then answers questions such as where a symbol is defined and used, what a change will affect, which tests are related, where code is coupled or dead, and where a detected pattern has a candidate algorithmic alternative. Static checks run on local compute, with no model calls and no account or API key.

The MCP server (roam mcp) exposes 259 tools grouped into eight presets; the default core preset keeps the list to 17 tools (roam_understand, roam_search_symbol, roam_uses, roam_deps, roam_prepare_change, roam_dead_code, roam_taint and others), and ROAM_MCP_PRESET switches to review, refactor, debug, architecture, compliance or full. roam ask routes a question to one of 31 deterministic recipes. The README is careful about limits: findings are leads, static connections can be incomplete and a suggested test list is not coverage.

Install: Python 3.11+ and Git; pip install "roam-code[mcp]", roam init in the repository, then roam mcp-setup <agent> --write for Claude Code, Cursor, Windsurf, VS Code, Gemini CLI or Codex CLI. The CLI and MCP server are free under Apache-2.0; paid hosted layers are planned but not available.

Related MCP Servers

See all roam-code alternatives

MCP: ripwire

by Red Hat

Featured

Red Hat's zero-dependency C++23 code-context engine — ranked call graphs and blast-radius analysis, indexing a repo in under half a second with no server and no database.

MCP: tokensave

by Enzo Lombardi

New

Local code-intelligence MCP server in Rust: indexes a repository into a semantic knowledge graph so coding agents get symbols, callers and impact in one call instead of scanning files.

New

A human-in-the-loop MCP server for coding agents: the agent pauses at checkpoints and a local web UI collects your text, images and prompt presets before it continues.

MCP server that parses a multi-language codebase with Tree-sitter into a knowledge graph, so agents can resolve definitions, trace callers, query structure in plain English and patch code.

Browse all MCP servers →