graphlore
MCP server that maps a codebase as a graph so AI assistants can trace impact and locate
graphlore is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted, VS Code
- Runs
- Locally
- Version
- 0.7.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add graphlore --env GRAPHLORE_PROJECT_DIR='<GRAPHLORE_PROJECT_DIR>' -- uvx graphloreAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"graphlore": {
"command": "uvx",
"args": [
"graphlore"
],
"env": {
"GRAPHLORE_PROJECT_DIR": "<GRAPHLORE_PROJECT_DIR>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"graphlore": {
"command": "uvx",
"args": [
"graphlore"
],
"env": {
"GRAPHLORE_PROJECT_DIR": "<GRAPHLORE_PROJECT_DIR>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add graphlore --env GRAPHLORE_PROJECT_DIR='<GRAPHLORE_PROJECT_DIR>' -- uvx graphloreOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.graphlore]
command = "uvx"
args = ["graphlore"]
env = { GRAPHLORE_PROJECT_DIR = "<GRAPHLORE_PROJECT_DIR>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"graphlore": {
"command": "uvx",
"args": [
"graphlore"
],
"env": {
"GRAPHLORE_PROJECT_DIR": "<GRAPHLORE_PROJECT_DIR>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
GRAPHLORE_PROJECT_DIRAbsolute path of the project to explore. The server reads graphify-out/graph.json inside it.RequiredGRAPHLORE_TOOLSETTool surface: lean (12 core exploration tools), full (all 34) or locate (5, a locate-first surface).GRAPHLORE_OFFLINESet to 1 to refuse every path graphlore knows reaches the network.
About graphlore
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.
Tools this server provides (12)
Taken from the project documentation; the running server may differ.
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_searchName 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_fetchName 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.
What it does
- 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
Pricing
Open source
Free, MIT licensed
graphlore 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.