MCP Encrypted Sqlite logo

MCP Encrypted Sqlite

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

Install MCP Encrypted Sqlite

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

Setup steps from the project

mcp-encrypted-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
    docker pull ghcr.io/rosch100/mcp-encrypted-sqlite:latest
    
  2. 2. Install
    git clone https://github.com/rosch100/mcp-encrypted-sqlite.git
    
  3. 3. Install
    ./gradlew build installDist
    
  4. 4. Configure
    ./store-key-in-keychain.sh --generate
    
  5. 5. Configure
    ./encrypt-passphrase.sh "your-plain-passphrase"
    
  6. 6. 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

mcp-encrypted-sqlite MCP server connects MCP clients to SQLCipher 4-encrypted SQLite databases for schema inspection, queries, and data changes. It communicates over STDIO and accepts a database path, passphrase, and optional cipher profile through its configuration. The server supports databases used by applications such as MoneyMoney, KeePass, Signal, and Firefox. Reach for it when an agent needs structured access to an encrypted SQLite file and you have its passphrase.

Use cases

  • Inspect encrypted application databases
  • Query records from SQLCipher files
  • Update rows through an MCP client
  • Explore tables, indexes, and constraints
  • Read locked databases in immutable mode

Key features

  • SQLCipher 4 database access
  • Schema and index inspection
  • Filtered and paginated table reads
  • SQL and CRUD operations
  • Encrypted passphrase support
  • Configurable cipher profiles

Tools7

What MCP Encrypted 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 83d

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 Encrypted Sqlite works

What mcp-encrypted-sqlite does

The mcp-encrypted-sqlite MCP server gives an MCP client access to SQLCipher 4 databases through database inspection and data-management tools. It can open a database using a file path and passphrase, enumerate its structure, read rows, and apply changes. The repository describes compatibility with encrypted databases from MoneyMoney, 1Password, Signal, WhatsApp, Firefox, Telegram, KeePass, and other applications that use SQLCipher.

Access requires the database passphrase. The server also supports passphrases encrypted with AES-256-GCM. On macOS, the encryption key can be loaded from Keychain when using the relevant setup. Docker containers cannot access the macOS Keychain, so Docker users must provide the encryption key through the container environment when using an encrypted passphrase.

How it works

The server implements MCP over STDIO. An MCP client launches the executable or Docker command and passes startup arguments containing the database path and passphrase. The default cipher configuration targets SQLCipher 4, while an optional cipher profile can override values such as page size, KDF iterations, HMAC algorithm, and KDF algorithm.

The mcp-encrypted-sqlite MCP server validates SQL identifiers and input values such as limits and offsets. This validation applies to the server’s database operations, while execute_sql still accepts arbitrary SQL statements in normal read-write mode. Debug output can be enabled with the MCP_DEBUG environment variable.

Setup and configuration

Running from source requires Java 21 or later and uses the included Gradle wrapper. Building with ./gradlew build installDist produces an executable under build/install/mcp-encrypted-sqlite/bin/. The build obtains the encrypted SQLite JDBC driver from the referenced sqlite-jdbc-crypt release.

A prebuilt image is available at ghcr.io/rosch100/mcp-encrypted-sqlite:latest. For a local client configuration, set the MCP command to the installed executable and pass an --args JSON object containing db_path and passphrase. Cursor and Claude Desktop configuration paths are documented in the repository. Docker examples mount the database into the container, using read-only mode by default.

The immutable option opens the file with SQLite’s immutable URI mode. It is intended for reading a database that another application has locked exclusively. In that mode, write tools are omitted and execute_sql accepts read-only statements.

Tools and capabilities

Available operations include:

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

These capabilities make the mcp-encrypted-sqlite MCP server suitable for inspecting application databases, querying stored records, and performing controlled CRUD or schema operations through an MCP client.

Limitations and notes

The database passphrase is not optional for an encrypted file, and the server does not provide a way to recover it. Writing also depends on the database being opened in normal mode and on the mounted file having write access. Docker configurations shown in the repository mount files read-only unless that setting is changed.

Storing an encryption key and encrypted passphrase as plain text in client configuration creates a security risk. Custom cipher settings may be necessary for databases whose SQLCipher configuration differs from the defaults. The project requires the encrypted SQLite JDBC driver rather than a standard unencrypted SQLite driver.

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 Encrypted Sqlite

mcp-encrypted-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 filtered data, execute SQL, insert or update rows, and delete matching rows. It communicates with clients over STDIO and requires the database passphrase.

Install it by pulling the published Docker image or building from source with Java 21 or later and the included Gradle wrapper. The source build uses `./gradlew build installDist`; configure the resulting executable in your MCP client with a database path and passphrase.

Yes, mcp-encrypted-sqlite works with Cursor through its MCP configuration, and the repository also provides a Cursor MCP Store installation path. Configure the database path and passphrase, or use the documented Docker command.

Use the `immutable` option to open a database without file locks when another application, such as MoneyMoney, has it locked exclusively. Immutable mode is read-only: write tools are omitted and `execute_sql` accepts only read statements.

Pass the encryption key through the `MCP_SQLITE_ENCRYPTION_KEY` container environment variable and use the encrypted passphrase format in the startup arguments. Docker cannot access the macOS Keychain, and the repository warns against storing both values as plain text.

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 Encrypted Sqlite AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-encrypted-sqlite?style=directory)](https://allmcps.com/mcp/mcp-encrypted-sqlite)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-encrypted-sqlite"><img src="https://allmcps.com/api/badge/mcp-encrypted-sqlite?style=directory" alt="MCP Encrypted Sqlite on AllMCPs" /></a>