MCP Catalogs
Homeroam-code screenshot

roam-code

by Cranot·461·Score 54

A local codebase intelligence CLI and MCP server that analyzes code structures, dependencies, and patterns to provide actionable insights for developers and AI agents.

developer-toolsknowledge-graphai-llm
44
Forks
6
Open issues
this month
Last commit
2d ago
Indexed

Overview

Roam-code is a comprehensive local codebase intelligence solution that parses repositories into a SQLite-backed graph, providing 238 commands and 224 MCP tools across 28 languages. It offers features like code context retrieval, change safety analysis, algorithmic risk review, and dry/shape detection. The server helps AI agents understand codebase structure, identify potential issues before changes, and maintain code quality through automated analysis.

Try asking AI

After installing, here are 6 things you can ask your AI assistant:

you:Analyzing code changes before committing to identify potential issues
you:Retrieving relevant code snippets based on natural language queries
you:Ensuring code quality through automated refactoring safety checks
you:Detecting algorithmic inefficiencies that might pass tests but fail at scale
you:What makes roam-code different from other code analysis tools?
you:How does roam-code ensure change safety?

When to choose this

Choose roam-code when working with AI coding assistants on complex codebases where you need to understand structural relationships and ensure algorithmic correctness beyond traditional code review.

When NOT to choose this

Avoid roam-code if you need a simple, lightweight linter or if your workflow requires cloud-based analysis since it runs entirely locally with no SaaS offering.

Tools this server exposes

12 tools extracted from the README
  • understand

    Get a full briefing of the codebase

  • context

    Get files to read with exact line ranges for a given symbol

  • retrieve

    Get graph-aware spans for free-form natural language tasks

  • preflight

    Check blast radius + tests + complexity before making changes

  • critique

    Verify a patch for clones not edited and hot paths

  • health

    Get a composite health score (0-100) for the codebase

  • diff

    Show blast radius of uncommitted changes

  • stale-refs

    Find dangling links, hrefs, and broken anchors across the repo

  • math

    Detect code that is correct but computationally expensive

  • smells

    Find code duplication and structural issues

  • pr-analyze

    Analyze pull requests for completeness and correctness

  • impact

    Determine the impact of changing a specific symbol

Comparable tools

semgrep-mcpcode-mcpsnyk-mcpgit-mcp

Installation

pip install roam-code
cd your-repo/
roam understand

For Claude Desktop, add this to your config.json:

{
  "mcpServers": {
    "roam": {
      "command": "roam",
      "args": ["mcp"]
    }
  }
}

FAQ

What makes roam-code different from other code analysis tools?
Roam-code creates a comprehensive graph of the codebase including symbols, dependencies, call graphs, architecture layers, and git history, providing structural context that goes beyond simple pattern matching.
How does roam-code ensure change safety?
Through features like preflight checks, impact analysis, affected test identification, and diff critique capabilities that help understand what would be affected by code changes.

Compare roam-code with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.