# MCP Sqlite

> MCP Sqlite is an open-source MCP server for databases. MCP server for SQLCipher 4 encrypted SQLite databases with full CRUD operations and query support. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/rosch100/mcp-sqlite
- **MCP Registry name:** io.github.rosch100/mcp-sqlite
- **Categories:** databases
- **Listing updated:** 2026-11-13

## About

MCP server for SQLCipher 4 encrypted SQLite databases with full CRUD operations and query support

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp-sqlite --env DB_PATH='<DB_PATH>' --env DB_PASSPHRASE='<DB_PASSPHRASE>' -- docker run -i --rm -e DB_PATH -e DB_PASSPHRASE ghcr.io/rosch100/mcp-sqlite:0.2.4
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-sqlite": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DB_PATH",
        "-e",
        "DB_PASSPHRASE",
        "ghcr.io/rosch100/mcp-sqlite:0.2.4"
      ],
      "env": {
        "DB_PATH": "<DB_PATH>",
        "DB_PASSPHRASE": "<DB_PASSPHRASE>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-sqlite": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DB_PATH",
        "-e",
        "DB_PASSPHRASE",
        "ghcr.io/rosch100/mcp-sqlite:0.2.4"
      ],
      "env": {
        "DB_PATH": "<DB_PATH>",
        "DB_PASSPHRASE": "<DB_PASSPHRASE>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp-sqlite": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DB_PATH",
        "-e",
        "DB_PASSPHRASE",
        "ghcr.io/rosch100/mcp-sqlite:0.2.4"
      ],
      "env": {
        "DB_PATH": "<DB_PATH>",
        "DB_PASSPHRASE": "<DB_PASSPHRASE>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-sqlite": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DB_PATH",
        "-e",
        "DB_PASSPHRASE",
        "ghcr.io/rosch100/mcp-sqlite:0.2.4"
      ],
      "env": {
        "DB_PATH": "<DB_PATH>",
        "DB_PASSPHRASE": "<DB_PASSPHRASE>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-sqlite": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DB_PATH",
        "-e",
        "DB_PASSPHRASE",
        "ghcr.io/rosch100/mcp-sqlite:0.2.4"
      ],
      "env": {
        "DB_PATH": "<DB_PATH>",
        "DB_PASSPHRASE": "<DB_PASSPHRASE>"
      }
    }
  }
}
```

## FAQ

### Is MCP Sqlite free?

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

### How do I add MCP Sqlite to Claude Code?

Run this command in your terminal: claude mcp add mcp-sqlite --env DB_PATH='<DB_PATH>' --env DB_PASSPHRASE='<DB_PASSPHRASE>' -- docker run -i --rm -e DB_PATH -e DB_PASSPHRASE ghcr.io/rosch100/mcp-sqlite:0.2.4

### What are the best alternatives to MCP Sqlite?

The closest alternatives to MCP Sqlite are Midplane, PlatypusDB, Lorebase, Sovaria and model2data studio.

## Alternatives

- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [PlatypusDB](https://ai-powered.com/mcp/platypusdb): PlatypusDB is an open-source MCP server for databases.
- [Lorebase](https://ai-powered.com/mcp/lorebase): Lorebase is an open-source MCP server for knowledge and memory.
- [Sovaria](https://ai-powered.com/mcp/sovaria): Sovaria is a freemium MCP server for databases.
- [model2data studio](https://ai-powered.com/mcp/model2data-studio): model2data studio is a freemium MCP server for databases.
- [semlayer](https://ai-powered.com/mcp/semlayer): semlayer is a free MCP server for databases.
- [bricksentry](https://ai-powered.com/mcp/bricksentry): bricksentry is an open-source MCP server for databases.
- [MCP Toolbox for Databases](https://ai-powered.com/mcp/mcp-toolbox-for-databases-2): MCP Toolbox for Databases is an open-source MCP server for databases.

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