# Sqlite Graph MCP

> Sqlite Graph MCP is an MCP server for databases. Local SQLite code and docs graph that cites file and line for each answer. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, macOS, Windows, Linux
- **Repository:** https://github.com/developjik/sqlite-graph-mcp
- **MCP Registry name:** io.github.developjik/sqlite-graph-mcp
- **Categories:** [databases](https://ai-powered.com/categories/databases), [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

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

```sh
claude mcp add sqlite-graph-mcp -- npx -y @developjik/sqlite-graph-mcp
```

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": {
    "sqlite-graph-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@developjik/sqlite-graph-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "sqlite-graph-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@developjik/sqlite-graph-mcp"
      ]
    }
  }
}
```

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

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

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

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

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

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

```sh
codex mcp add sqlite-graph-mcp -- npx -y @developjik/sqlite-graph-mcp
```

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

```toml
[mcp_servers.sqlite-graph-mcp]
command = "npx"
args = ["-y", "@developjik/sqlite-graph-mcp"]
```

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

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

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

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```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 (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "sqlite-graph-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@developjik/sqlite-graph-mcp"
      ]
    }
  }
}
```

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

```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 (~/.kiro/settings/mcp.json)

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

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

```json
{
  "mcpServers": {
    "sqlite-graph-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@developjik/sqlite-graph-mcp"
      ]
    }
  }
}
```

## Tools

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_find` (name 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

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

## Alternatives

- [Graphicle](https://ai-powered.com/mcp/graphicle): Graphicle 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.
- [Knowledge Graph RDBMS](https://ai-powered.com/mcp/knowledge-graph-rdbms): Knowledge Graph RDBMS is an open-source MCP server for databases.
- [Cgraphy](https://ai-powered.com/mcp/cgraphy): Cgraphy is an open-source MCP server for developer tools.
- [State Memory MCP](https://ai-powered.com/mcp/state-memory-mcp): State Memory MCP is an open-source MCP server for knowledge and memory.
- [Graphlens MCP](https://ai-powered.com/mcp/graphlens-mcp): Graphlens MCP is an open-source MCP server for developer tools.
- [Sqlite](https://ai-powered.com/mcp/sqlite): Sqlite is an open-source MCP server for databases.
- [Astria](https://ai-powered.com/mcp/astria-2): Astria is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/sqlite-graph-mcp
