# CompareGraph MCP server

> Compare multiple code repositories feature by feature using a code graph and cited claims to generate a detailed comparison matrix.

- Repository: https://github.com/MassRelayAI/comparegraph
- Page: https://hostedmcp.org/servers/massrelayai/comparegraph
- Transport: stdio
- Stars: 0
- License: Apache-2.0
- Latest version: 0.1.3

## Install

### Claude Code

```sh
claude mcp add comparegraph -- npx -y @massrelayai/comparegraph
```

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

```json
{
  "mcpServers": {
    "comparegraph": {
      "command": "npx",
      "args": [
        "-y",
        "@massrelayai/comparegraph"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "comparegraph": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@massrelayai/comparegraph"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"comparegraph","type":"stdio","command":"npx","args":["-y","@massrelayai/comparegraph"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "comparegraph": {
      "command": "npx",
      "args": [
        "-y",
        "@massrelayai/comparegraph"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add comparegraph -- npx -y @massrelayai/comparegraph
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.comparegraph]
command = "npx"
args = ["-y", "@massrelayai/comparegraph"]
```

### Gemini CLI

```sh
gemini mcp add -s user comparegraph npx -- -y @massrelayai/comparegraph
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "comparegraph": {
      "command": "npx",
      "args": [
        "-y",
        "@massrelayai/comparegraph"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `COMPAREGRAPH_VERSION` | no | no |  |

## FAQ

### Does CompareGraph use AI models or the network?

No, the engine never calls an AI model or the network; it reads clones locally and computes results from stored facts.

### What kind of evidence does the tool provide for its answers?

Each answer includes an evidence class such as observed, derived, inferred, or unknown, along with a list of limitations.

### Can I use CompareGraph with my coding agent?

Yes, it can be wired up to various agents like Claude Code, Cursor, and Windsurf through MCP.
