Sqlite Graph MCP
Local SQLite code and docs graph that cites file and line for each answer
Sqlite Graph MCP is an MCP server for databases. It runs locally on your machine and is started by your AI client.
- Platforms
- CLI, macOS, Windows
- Runs
- Locally
- Version
- 0.5.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add sqlite-graph-mcp -- npx -y @developjik/sqlite-graph-mcpAdd --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": {
"sqlite-graph-mcp": {
"command": "npx",
"args": [
"-y",
"@developjik/sqlite-graph-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"sqlite-graph-mcp": {
"command": "npx",
"args": [
"-y",
"@developjik/sqlite-graph-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"sqlite-graph-mcp": {
"command": "npx",
"args": [
"-y",
"@developjik/sqlite-graph-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"sqlite-graph-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@developjik/sqlite-graph-mcp"
]
}
}
}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 sqlite-graph-mcp -- npx -y @developjik/sqlite-graph-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.sqlite-graph-mcp]
command = "npx"
args = ["-y", "@developjik/sqlite-graph-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"sqlite-graph-mcp": {
"command": "npx",
"args": [
"-y",
"@developjik/sqlite-graph-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "sqlite-graph-mcp": { "command": "npx", "args": [ "-y", "@developjik/sqlite-graph-mcp" ] } } }Or run: gemini mcp add -s user sqlite-graph-mcp npx -- -y @developjik/sqlite-graph-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "sqlite-graph-mcp": { "command": "npx", "args": [ "-y", "@developjik/sqlite-graph-mcp" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "sqlite-graph-mcp": { "command": "npx", "args": [ "-y", "@developjik/sqlite-graph-mcp" ] } } }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": { "sqlite-graph-mcp": { "command": "npx", "args": [ "-y", "@developjik/sqlite-graph-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "sqlite-graph-mcp": { "command": "npx", "args": [ "-y", "@developjik/sqlite-graph-mcp" ] } } }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": { "sqlite-graph-mcp": { "command": "npx", "args": [ "-y", "@developjik/sqlite-graph-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "sqlite-graph-mcp": { "command": "npx", "args": [ "-y", "@developjik/sqlite-graph-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "sqlite-graph-mcp": { "command": "npx", "args": [ "-y", "@developjik/sqlite-graph-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Sqlite Graph MCP
Sqlite Graph MCP indexes a workspace into a single SQLite file and answers structural questions with recursive queries instead of embeddings. Files, top-level symbols, Markdown headings and packages become nodes; imports, exports, definitions, links and references become edges.
Every result carries a path and line number, so an agent can say where a function is defined or which files import it and back the claim with a location. Because the graph is deterministic, the same workspace always produces the same answer.
It runs over stdio with Node.js 20 or newer, needs no Docker, database server or API key, and re-indexes a few thousand files quickly. The index lives in .sqlite-graph/index.db and can be opened with the sqlite3 CLI.
Tools this server provides (6)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 6 tools reads data; 5 names don't say.
From the server's own tool labels and tool names; not verified by us.
- graph_findName suggests: reads
- Find nodes by name with prefix ranking and glob fallback
- graph_walk
- Traverse edges such as imports from a starting node
- graph_filter
- Filter nodes by kind, tag or path
- graph_orphans
- List files never imported or linked
- graph_plan
- Chain operators and return cited answers
- graph_index
- Rebuild the graph for the workspace
What it does
- Five graph operators
- Find, walk, filter, set-difference and a chained plan operator cover most structural code questions.
- File and line citations
- Nodes and edges carry the path and line they came from, so answers can be verified.
- No embeddings
- The graph is built deterministically from the code, with no model, vector store or API key.
- Single SQLite file
- The whole index is one local database that can be inspected with standard SQLite tools.
- Orphan detection
- Lists files that are never imported or linked, skipping tests and entry files.
- AST and fallback indexing
- TypeScript and JavaScript are parsed with tree-sitter, with a heuristic engine as fallback.
Good for
- Find where a function or class is defined in a TypeScript project
- Trace what a file imports, transitively
- Locate unused files and dead documentation links
- Give a coding agent cited answers about repository structure
- Check which docs link to a given file or heading
More servers for the same service
Sqlite Graph MCP FAQ
Does Sqlite Graph MCP need embeddings or an API key?
No. It builds a deterministic graph in a local SQLite file and needs no embeddings, Docker, Neo4j or API key.
What does Sqlite Graph MCP index?
Files (TypeScript, JavaScript, Markdown, package.json), top-level symbols, Markdown headings and packages.
How do I run Sqlite Graph MCP?
Use npx -y @developjik/sqlite-graph-mcp serve --root /path/to/repo, or add it to Claude Code, Cursor, Codex or Claude Desktop.
What Node.js version is required?
Node.js 20 or newer.
How do I add Sqlite Graph MCP to Claude Code?
Run this command in your terminal: claude mcp add sqlite-graph-mcp -- npx -y @developjik/sqlite-graph-mcp
What are the best alternatives to Sqlite Graph MCP?
The closest alternatives to Sqlite Graph MCP are Graphicle, Code-Graph-RAG, Knowledge Graph RDBMS, Cgraphy and State Memory MCP.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.