MCP Sqlite logo

MCP Sqlite

Access, query, and modify SQLCipher 4-encrypted SQLite databases through MCP tools.

Install MCP Sqlite

Run the project’s own setup commands, in order.

Setup steps from the project

mcp-sqlite installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/rosch100/mcp-encrypted-sqlite.git
    
  2. 2. Install
    ./gradlew build installDist
    
  3. 3. Configure
    ./store-key-in-keychain.sh --generate
    
  4. 4. Configure
    ./encrypt-passphrase.sh "your-plain-passphrase"
    
  5. 5. Start the server
    ./build/install/mcp-encrypted-sqlite/bin/mcp-encrypted-sqlite --args '{"db_path":"/path/to/db.sqlite","passphrase":"secret"}' 2>&1 | tee mcp-debug.log
    

Overview

The mcp-sqlite MCP server connects MCP clients to SQLCipher 4-encrypted SQLite database files. It exposes tools for inspecting tables and schemas, reading records, running SQL, and performing inserts, updates, and deletes. Configuration accepts a database path and passphrase, with optional cipher profiles and immutable read-only access. Reach for it when an agent needs structured access to an encrypted SQLite database, including files used by applications such as Signal, Firefox, or KeePass.

Use cases

  • Inspect encrypted application databases
  • Query SQLCipher records with filters
  • Modify rows in an encrypted SQLite file
  • Review tables, indexes, and constraints
  • Open a locked database in read-only mode

Key features

  • SQLCipher 4 database support
  • Table and schema inspection
  • Arbitrary SQL execution
  • CRUD and upsert operations
  • Immutable read-only mode
  • Configurable cipher profiles

Tools7

What MCP Sqlite lets your agent do. Expand a tool for its parameters.

Self-reported~144 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 82d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit3mo agoMost recent push to the default branch.
Tools exposed7Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Sqlite works

What mcp-sqlite does

The mcp-sqlite MCP server gives an MCP-compatible client access to an encrypted SQLite database through a standard input/output connection. It is designed for SQLCipher 4 databases and requires the database passphrase. The repository notes compatibility with encrypted database files used by applications including MoneyMoney, 1Password, Signal, WhatsApp, Firefox, Telegram, and KeePass, as well as other applications using SQLCipher.

The server supports database discovery and data changes. Agents can inspect tables, columns, indexes, foreign keys, and constraints; read rows with filters and pagination; execute SQL statements; and insert, update, or delete records. SQL identifier validation and input checks are included for identifiers, limits, and offsets.

How it works

The mcp-sqlite MCP server communicates over STDIO. An MCP client starts the server with a database path and passphrase supplied in the server arguments. The default configuration uses SQLCipher 4 settings, while a cipherProfile object can override values such as page size, key-derivation iterations, HMAC algorithm, and KDF algorithm.

An immutable option opens the database through SQLite's immutable URI mode. This is intended for inspecting files that another application has locked exclusively. In immutable mode, write tools are omitted, and execute_sql accepts read-only statements only.

Passphrases may be provided directly or in encrypted form. Encrypted passphrases use AES-256-GCM. On macOS, the server can load the encryption key from Keychain; Docker containers cannot access the macOS Keychain, so the key must be supplied explicitly in that environment.

Setup and configuration

Running from source requires Java 21 or newer. The project includes a Gradle wrapper and downloads an encryption-capable SQLite JDBC driver during the build. Build and install the distribution with ./gradlew build installDist, then configure the generated executable in the MCP client's server settings.

Docker users can run the published image from GitHub Container Registry and mount the database into the container. The documented Docker example mounts the database read-only by default; remove the read-only mount option when write access is needed. When using an encrypted passphrase in Docker, set MCP_SQLITE_ENCRYPTION_KEY and pass the encrypted value with the encrypted: prefix.

The client configuration can include db_path, passphrase, transport, cwd, immutable, and cipherProfile. The transport defaults to stdio. Absolute paths avoid needing a working-directory override. The repository provides example locations for Cursor and Claude Desktop configuration files.

Tools and capabilities

  • list_tables lists table names and can include column details.
  • get_table_data reads selected columns with optional filters and pagination.
  • execute_sql runs SELECT, INSERT, UPDATE, DELETE, and DDL statements unless immutable mode restricts it to reads.
  • insert_or_update performs an upsert when a conflict occurs.
  • delete_rows removes rows matching supplied filters.
  • get_table_schema returns columns, indexes, foreign keys, and constraints for a table.
  • list_indexes lists indexes associated with a table.

These tools make the mcp-sqlite MCP server suitable for inspecting application databases, querying encrypted records, and making controlled database changes through an MCP client.

Limitations and notes

The database passphrase is required; the server cannot access an encrypted database without it. Docker does not provide access to the host macOS Keychain, so encrypted-passphrase deployments need an explicit encryption key. Database write behavior also depends on both the server's immutable setting and the filesystem mount permissions.

The server is delivered through STDIO rather than a network transport. Debug output can be enabled with MCP_DEBUG when needed.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Sqlite

mcp-sqlite is an MCP server that connects MCP clients to SQLCipher 4-encrypted SQLite databases. Its main tools list tables, inspect schemas and indexes, read table data, execute SQL, perform upserts, and delete filtered rows. It communicates over STDIO and requires the database passphrase.

Install it from the published Docker image or build it from source with Java 21 or newer and the included Gradle wrapper. The source build uses `./gradlew build installDist`; then configure the generated executable, database path, and passphrase in your MCP client's server settings.

Yes, mcp-sqlite works with Cursor through its MCP configuration or Cursor MCP Store. Configure the server in `~/.cursor/mcp.json`, or use the documented one-click installation and provide the database path and passphrase.

Yes, set `immutable` to true to open the database without file locks for inspection. This mode disables write tools and limits `execute_sql` to read-only statements, so it is intended for viewing databases that another application has locked.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Sqlite AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-sqlite?style=directory)](https://allmcps.com/mcp/mcp-sqlite)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-sqlite"><img src="https://allmcps.com/api/badge/mcp-sqlite?style=directory" alt="MCP Sqlite on AllMCPs" /></a>