# graphrelay [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/openwt-vn/graphrelay  
**GitHub Stars:** 6  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/graphrelay

## Description
Stop letting your AI coding agent grep its way through your codebase. One local binary gives it a real map of how your code connects — no cloud, no Python daemon.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/openwt-vn/graphrelay), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

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

2. Configure:

```sh
gr init      # register the project
```

3. Start the server:

```sh
gr start     # start the daemon and index
```

4. Add to your MCP client:

```sh
gr setup     # wire up Claude Code, Cursor, OpenCode, Amp or Codex
```

5. Install:

```sh
git clone https://github.com/openwt-vn/graphrelay graphrelay
```

6. Run:

```sh
cd graphrelay
```

## Documentation

## 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:

```sh
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.

_Full upstream README: https://allmcps.com/mcp/graphrelay/readme_

