Graphrelay logo

Graphrelay

Local graph-aware code search for AI agents, exposing symbol, call-graph, REST, and web tools through one Rust binary.

Install Graphrelay

Run the project’s own setup commands, in order.

Setup steps from the project

graphrelay installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    curl -fsSL https://raw.githubusercontent.com/openwt-vn/graphrelay/main/scripts/install.sh | sh
    
  2. 2. Configure
    gr init      # register the project
    
  3. 3. Start the server
    gr start     # start the daemon and index
    
  4. 4. Add to your MCP client
    gr setup     # wire up Claude Code, Cursor, OpenCode, Amp or Codex
    
  5. 5. Install
    git clone https://github.com/openwt-vn/graphrelay graphrelay
    
  6. 6. Run
    cd graphrelay
    

Overview

graphrelay indexes a local codebase into a symbol and call graph, then exposes graph-aware search to coding agents over MCP, REST, and a small web UI. Its retrieval combines SQLite FTS5/BM25 text matching with caller/callee expansion and query-seeded PageRank, without embeddings or a database server. Use it when agents need symbol context, implementation discovery, or impact analysis while keeping source code on the developer’s machine. The project is early, and published evaluations show fewer tool calls in some tests but no reliable improvement over grep, read, and glob alone.

Use cases

  • Search a large local codebase using natural-language intent
  • Find implementations of an interface, trait, or base class
  • Inspect a symbol with its callers, callees, and source context
  • Trace the potential impact of changing a function
  • Explore a project’s call graph in a browser

Key features

  • Local symbol and call-graph indexing
  • MCP, REST, and browser-based access
  • Lexical search combined with graph expansion
  • Caller, callee, and impact analysis
  • Tree-sitter support for 31 languages
  • Single Rust binary with no cloud dependency

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

6/6 checks healthy over the last 20d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars6Stargazers on the source repository.
Last commit18d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Graphrelay works

What graphrelay does

graphrelay turns a local project into an indexed view of its symbols and relationships. The resulting index supports natural-language code search, interface or base-class implementation lookup, symbol inspection, caller and callee exploration, and change-impact tracing. Agents access these capabilities through MCP, while developers can also use a REST endpoint or browser-based interface.

The system is distributed as one Rust executable named gr. It does not require Python, Node.js, a separate database server, a cloud account, or an API key. Source remains on the local machine. Supported release artifacts target macOS on Apple Silicon and Linux on x86_64 or ARM64; macOS Intel users can build from source.

How it works

Indexing uses tree-sitter parsers for 31 programming languages, including Rust, JavaScript and TypeScript, Python, Go, Java, C and C++, C#, Ruby, Kotlin, Swift, PHP, and Scala. Retrieval combines SQLite FTS5/BM25 lexical matching with graph expansion and query-seeded personalized PageRank. The design does not use embeddings.

The optional SCIP command can add compiler-backed cross-file edges. A background daemon maintains project indexes, and watch_status lets an agent check whether results are fresh. The web interface is available at http://localhost:3030/{project}/; it includes search, a Cytoscape call-graph view with language filtering, and an inspector for source, callers, and callees.

Setup and configuration

Install the platform archive with:

Terminal
curl -fsSL https://raw.githubusercontent.com/openwt-vn/graphrelay/main/scripts/install.sh | sh

The installer verifies the downloaded archive’s SHA-256 checksum and places gr in ~/.local/bin. From a checkout, run the installer script directly. GitHub API rate limits can be addressed with --token or GITHUB_TOKEN.

Register and start a project with:

sh
cd /path/to/your-project
gr init
gr start
gr setup

gr setup creates MCP configuration and an instruction hook for supported tools, including Claude Code, Cursor, OpenCode, Amp, and Codex. Project settings live in .graphrelay/config.toml; defaults are usable without edits. Options include ignored paths and the final result count. GRAPHRELAY_DATA_DIR changes the default data location of ~/.graphrelay, while RUST_LOG controls logging.

Building from source requires Rust 1.78 or newer:

sh
cargo build --release
cargo test --workspace

Tools and capabilities

The MCP endpoint is POST http://localhost:3030/{project}/mcp, using JSON-RPC 2.0 over HTTP. It provides four tools:

  • search_code(intent?, implements?, top_n?) performs fused lexical and graph retrieval. Supply either a natural-language intent or an implements target for implementations and inherited types.
  • inspect(symbol?, path?, focus_line?, include_source?, max_symbols?) returns symbol details, or file and directory context. It can include definitions, documentation, callers, and callees.
  • trace_impact(symbol, depth?) follows the call graph to estimate what may be affected by changing a symbol.
  • watch_status() reports index freshness.

The CLI also supports daemon control, project registration, status checks, forced re-indexing, SCIP indexing, release updates, and retrieval self-checks through commands such as status, index, scip, update, bench, and compare.

Limitations and notes

GraphRelay is early and under active development. Benchmark results on large codebases did not establish a reliable answer-quality improvement over a no-tool baseline. In the reported runs, it used roughly 30% fewer tool calls but cost roughly 30% more per question. Caller tracing recovered the evaluated callers with reported precision varying by codebase, but impact-question evaluations did not show a confirmed agent-quality lift.

Official binaries cover macOS Apple Silicon, Linux x86_64, and Linux ARM64. There is no official macOS Intel archive, although source builds are expected to work there. Index freshness matters: agents should use watch_status before relying on search results after code changes.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Graphrelay

graphrelay is an MCP server that connects AI coding agents to a local codebase indexed as symbols and call relationships. Its main tools search code, inspect symbols or paths, trace a symbol’s potential impact through callers, and report index freshness. It runs as a local Rust binary without sending source to a cloud service.

Install it with the project’s shell installer, which downloads and verifies the matching release archive and places `gr` in `~/.local/bin`. Then run `gr init`, `gr start`, and `gr setup` from the project directory. GitHub API limits can be handled with `--token` or `GITHUB_TOKEN`.

Yes, graphrelay supports Cursor configuration through `gr setup`. Initialize and start the project first, then run setup so the MCP server entry and instruction hook can be configured for the supported client.

graphrelay supports 31 languages through tree-sitter. The listed languages include Rust, JavaScript, TypeScript, Python, Go, Java, C, C++, C#, Ruby, Kotlin, Swift, PHP, and Scala.

No, graphrelay runs locally without a cloud account or API key, and project source stays on the machine. The installer downloads release archives from GitHub; `GITHUB_TOKEN` is only an option for handling GitHub API rate limits during installation.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGraphrelay AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/graphrelay?style=directory)](https://allmcps.com/mcp/graphrelay)
HTML Embed
<a href="https://allmcps.com/mcp/graphrelay"><img src="https://allmcps.com/api/badge/graphrelay?style=directory" alt="Graphrelay on AllMCPs" /></a>