# graphlore

> graphlore is an open-source MCP server for developer tools. MCP server that maps a codebase as a graph so AI assistants can trace impact and locate. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, VS Code
- **Repository:** https://github.com/yasinyaman/graphlore
- **MCP Registry name:** io.github.yasinyaman/graphlore
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-27

## About

Instead of grepping file by file, graphlore gives an AI coding assistant a structural map of a repository. It builds a code graph with its own Rust and tree-sitter extractor, or reads one produced by Graphify, and joins each node to its source span so answers point to exact file and line locations.

The server exposes tools for locating code by what it does, listing what depends on a symbol, fetching only the source it needs under a token budget, and reporting import cycles and shared state. A default lean toolset of 12 tools keeps the model's choices small, and a full mode exposes all 34.

It suits developers working in unfamiliar or large codebases, and teams that want pull request reviews of structural impact without sending code to a model. Analysis runs on local files and needs no API key, and an offline switch blocks the network paths it controls.

## Features

- **Semantic code location:** Finds the enclosing symbol, its neighborhood and related code for a plain-language question.
- **Blast radius analysis:** Lists what depends on a symbol, with production code shown before tests and file-line references.
- **Budgeted source fetching:** Returns the exact source span of a symbol under a token budget.
- **Pull request review:** Reports the definitions a change touches, their dependents, related tests and new import cycles.
- **Configurable toolsets:** Switch between a lean 12-tool surface, a 5-tool locate surface and a full 34-tool surface.
- **Local and offline operation:** Analysis reads local files without an API key, and an offline setting refuses known network paths.

## Good for

- Onboarding onto an unfamiliar repository by tracing how a feature works end to end
- Checking what a planned change would break before editing shared code
- Finding import cycles and layering violations across a codebase
- Reviewing a pull request for structural impact and affected tests
- Locating code by behavior when the exact symbol name is unknown

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add graphlore --env GRAPHLORE_PROJECT_DIR='<GRAPHLORE_PROJECT_DIR>' -- uvx graphlore
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "graphlore": {
      "command": "uvx",
      "args": [
        "graphlore"
      ],
      "env": {
        "GRAPHLORE_PROJECT_DIR": "<GRAPHLORE_PROJECT_DIR>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "graphlore": {
      "command": "uvx",
      "args": [
        "graphlore"
      ],
      "env": {
        "GRAPHLORE_PROJECT_DIR": "<GRAPHLORE_PROJECT_DIR>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "graphlore": {
      "command": "uvx",
      "args": [
        "graphlore"
      ],
      "env": {
        "GRAPHLORE_PROJECT_DIR": "<GRAPHLORE_PROJECT_DIR>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "graphlore": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "graphlore"
      ],
      "env": {
        "GRAPHLORE_PROJECT_DIR": "<GRAPHLORE_PROJECT_DIR>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add graphlore --env GRAPHLORE_PROJECT_DIR='<GRAPHLORE_PROJECT_DIR>' -- uvx graphlore
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.graphlore]
command = "uvx"
args = ["graphlore"]
env = { GRAPHLORE_PROJECT_DIR = "<GRAPHLORE_PROJECT_DIR>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "graphlore": {
      "command": "uvx",
      "args": [
        "graphlore"
      ],
      "env": {
        "GRAPHLORE_PROJECT_DIR": "<GRAPHLORE_PROJECT_DIR>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e GRAPHLORE_PROJECT_DIR='<GRAPHLORE_PROJECT_DIR>' graphlore uvx -- graphlore

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "graphlore": {
      "command": "uvx",
      "args": [
        "graphlore"
      ],
      "env": {
        "GRAPHLORE_PROJECT_DIR": "<GRAPHLORE_PROJECT_DIR>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "graphlore": {
      "command": "uvx",
      "args": [
        "graphlore"
      ],
      "env": {
        "GRAPHLORE_PROJECT_DIR": "<GRAPHLORE_PROJECT_DIR>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "graphlore": {
      "command": "uvx",
      "args": [
        "graphlore"
      ],
      "env": {
        "GRAPHLORE_PROJECT_DIR": "<GRAPHLORE_PROJECT_DIR>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "graphlore": {
      "command": "uvx",
      "args": [
        "graphlore"
      ],
      "env": {
        "GRAPHLORE_PROJECT_DIR": "<GRAPHLORE_PROJECT_DIR>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "graphlore": {
      "command": "uvx",
      "args": [
        "graphlore"
      ],
      "env": {
        "GRAPHLORE_PROJECT_DIR": "<GRAPHLORE_PROJECT_DIR>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "graphlore": {
      "command": "uvx",
      "args": [
        "graphlore"
      ],
      "env": {
        "GRAPHLORE_PROJECT_DIR": "<GRAPHLORE_PROJECT_DIR>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "graphlore": {
      "command": "uvx",
      "args": [
        "graphlore"
      ],
      "env": {
        "GRAPHLORE_PROJECT_DIR": "<GRAPHLORE_PROJECT_DIR>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "graphlore": {
      "command": "uvx",
      "args": [
        "graphlore"
      ],
      "env": {
        "GRAPHLORE_PROJECT_DIR": "<GRAPHLORE_PROJECT_DIR>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 12 tools read data; 10 names don't say. From the server's own tool labels and tool names; not verified by us.

- `graphlore_overview`: Size, most connected nodes, communities and suggested next steps.
- `graphlore_locate`: Finds the enclosing symbol, its subgraph and hidden links for a question or name.
- `graphlore_search` (name suggests: reads): Finds nodes matching a name or id.
- `graphlore_neighbors`: Lists the direct neighbors of a node.
- `graphlore_subgraph`: Returns the neighborhood around a node under a token budget.
- `graphlore_impact`: Shows the blast radius of a node and the chokepoints it passes through.
- `graphlore_node_details`: Shows a node's type, file and line, docstring and community.
- `graphlore_fetch` (name suggests: reads): Returns a node's source code span under a token budget.
- `graphlore_communities`: Lists the subsystems of the codebase.
- `graphlore_freshness`: Reports whether the graph is fresh, needs an update or a rebuild.
- `graphlore_build`: Builds or updates the code graph.
- `graphlore_project`: Shows or switches the project directory the server reads.

## FAQ

### What is graphlore used for?

Giving an AI coding assistant a structural view of a repository, for onboarding, tracing features, finding what a change breaks, and reviewing cycles, layering and dead or duplicated code.

### Does graphlore_locate need semble or an embedding model?

No. It has its own BM25-based search index that works in a default install, with optional embedding or semble backends available as extras.

### Does graphlore need an API key or send my code anywhere?

The analysis tools read local files and need no key. Some paths can reach the network, such as downloading an embedding model or a tree-sitter grammar, and GRAPHLORE_OFFLINE=1 refuses the ones it controls.

### Does graphlore replace grep?

No. Exact identifiers are faster with rg. It is aimed at multi-hop questions and orientation in unfamiliar code, and each answer includes file and line so it can be checked.

### Is graphlore free?

Yes. graphlore is open source, so you can use and self-host it for free.

### How do I add graphlore to Claude Code?

Run this command in your terminal: claude mcp add graphlore --env GRAPHLORE_PROJECT_DIR='<GRAPHLORE_PROJECT_DIR>' -- uvx graphlore

### What are the best alternatives to graphlore?

The closest alternatives to graphlore are Codegraph, CGraph, Graphlens MCP, Grafyx and Code-Graph-RAG.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Codegraph](https://ai-powered.com/mcp/codegraph): Codegraph is an open-source MCP server for developer tools.
- [CGraph](https://ai-powered.com/mcp/cgraph): CGraph is an open-source MCP server for developer tools.
- [Graphlens MCP](https://ai-powered.com/mcp/graphlens-mcp): Graphlens MCP is an open-source MCP server for developer tools.
- [Grafyx](https://ai-powered.com/mcp/grafyx): Grafyx is an open-source MCP server for developer tools.
- [Code-Graph-RAG](https://ai-powered.com/mcp/code-graph-rag): Code-Graph-RAG is an open-source MCP server for knowledge and memory.
- [Cgraphy](https://ai-powered.com/mcp/cgraphy): Cgraphy is an open-source MCP server for developer tools.
- [Automatised Pipeline](https://ai-powered.com/mcp/automatised-pipeline): Automatised Pipeline is an open-source MCP server for developer tools.
- [Kivgraph](https://ai-powered.com/mcp/kivgraph): Kivgraph is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/graphlore
