MCP Sqlite
概要
作者による説明(英語の原文)
MCP server for SQLCipher 4 encrypted SQLite databases with full CRUD operations and query support
PopNx MCPの3つの柱
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
- 利用者の声iレビューはまだありませんレビューは今後のステップで、アカウント機能と一緒に始まります
- 私たちの基本チェックi1項目中1項目に合格公開情報からチェック。コードはまだスキャンしていません
- 利用状況iとても新しい★ –
できること
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
- 接続方法: パソコンで動く
- トランスポート: stdio
- カテゴリ: データベース・データセット
- 入力が必要なもの:DB_PATH, DB_PASSPHRASE
インストール
使っているAIアプリを選んで、設定をコピーしてください。
インストールの前に
- 基本チェック:1項目中1項目に合格
- あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
- 自分で入力するもの:
DB_PATH,DB_PASSPHRASE
「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。
必要なもの
- DockerDockerのインストール
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"sqlite": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DB_PATH",
"-e",
"DB_PASSPHRASE",
"ghcr.io/rosch100/mcp-sqlite:0.2.4"
],
"env": {
"DB_PATH": "your-value",
"DB_PASSPHRASE": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add sqlite --env DB_PATH=your-value --env DB_PASSPHRASE=your-value -- docker run -i --rm -e DB_PATH -e DB_PASSPHRASE ghcr.io/rosch100/mcp-sqlite:0.2.4動かす前に、空欄の値を入力してください。
または、設定を自分でコピーする
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"sqlite": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DB_PATH",
"-e",
"DB_PASSPHRASE",
"ghcr.io/rosch100/mcp-sqlite:0.2.4"
],
"env": {
"DB_PATH": "your-value",
"DB_PASSPHRASE": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
または、設定を自分でコピーする
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"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": "your-value",
"DB_PASSPHRASE": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
自分で入力する値
- Path to the encrypted SQLite database file
- Passphrase for decrypting the database
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月8日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名は、リポジトリを所有するGitHubアカウント rosch100 で確認済みです
- … 未チェック
今もメンテナンスされている
このリポジトリはまだGitHubから読み取っていません
- … 未チェック
ライセンスがある
このリポジトリはまだGitHubから読み取っていません
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
データベース・データセットのほかのサーバーとの比較i
- このカテゴリのほかの1144件のうち0%よりスターが多い
- このカテゴリのほかの1144件のうち1%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの1144件のうち100%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
MCP Sqliteは安全ですか?
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
入力が必要なもの:DB_PATH, DB_PASSPHRASE
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は–、最新バージョン(0.2.4)がレジストリに届いたのは12 か月前です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにDockerも必要です。
代わりに使えるものは?
同じカテゴリには:Supabase, MongoDB MCP Server, Elasticsearch MCP Server
代わりの候補
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
Encrypted SQLite MCP Server
MCP server for encrypted SQLite databases
A Model Context Protocol (MCP) server for working with encrypted SQLite databases using SQLCipher. This server provides tools to read database structures, query tables, and perform CRUD operations on encrypted SQLite databases.
Compatible with all MCP clients (Cursor, Claude Desktop, and others).
Works with encrypted databases from: MoneyMoney, 1Password, Signal, WhatsApp, Firefox, Telegram, KeePass, and other applications using SQLCipher encryption.
Features
- Encrypted SQLite Support: Works with SQLCipher 4 encrypted databases - the key differentiator of this MCP server
- Encrypted Passphrases: Support for AES-256-GCM encrypted passphrases with macOS Keychain integration
- Database Exploration: List tables, columns, indexes, and schema metadata
- Query Support: Execute arbitrary SQL queries (SELECT, INSERT, UPDATE, DELETE, DDL)
- CRUD Operations: Insert, update, and delete rows with filtering
- Configurable Cipher Profiles: Support for different SQLCipher configurations
- MCP Protocol: Full Model Context Protocol implementation via STDIO
- Security: SQL identifier validation to prevent SQL injection
- Debug Mode: Optional debug output via
MCP_DEBUGenvironment variable - Input Validation: Comprehensive validation for limits, offsets, and identifiers
Why Encrypted SQLite?
Many popular applications use encrypted SQLite databases (SQLCipher) to protect sensitive data. This MCP server is specifically designed to work with these encrypted databases.
Applications Using Encrypted SQLite Databases
- MoneyMoney (macOS): Financial management app with encrypted local databases
- 1Password: Password manager using SQLCipher for local vault storage
- Signal: Encrypted messaging app with SQLCipher-protected message databases
- WhatsApp: Messaging app using encrypted SQLite for local message storage
- Firefox: Browser using SQLCipher for encrypted login databases
- Telegram: Messaging app with encrypted local database storage
- KeePass: Password manager supporting encrypted SQLite database files
If you need to access data from any of these applications or other SQLCipher-encrypted databases, this MCP server provides the tools you need. Note that you need the passphrase of the encrypted database.
Requirements
- Java 21 or higher (JDK)
- Gradle (wrapper included)
- SQLite JDBC driver with encryption support (
sqlite-jdbc-3.50.1.0.jarfrom sqlite-jdbc-crypt)
Quick Start
Cursor (One-Click Installation)
The easiest way to install this MCP server in Cursor is via the Cursor MCP Store:
- Visit cursor.store/mcp/rosch100/mcp-encrypted-sqlite
- Click "Add to Cursor"
- Follow the prompts to configure your database path and passphrase
Other MCP Clients
This server works with any MCP-compatible client. See the Configuration section below for setup instructions.
Installation
Docker (Recommended)
Use the pre-built Docker image from GitHub Container Registry:
docker pull ghcr.io/rosch100/mcp-encrypted-sqlite:latest
Quick Start: See DOCKER_QUICKSTART.md for Docker Desktop setup.
Detailed Configuration: See DOCKER_CONFIGURATION.md for advanced options.
From Source
- Clone the repository:
git clone https://github.com/rosch100/mcp-encrypted-sqlite.git
cd mcp-encrypted-sqlite
- Build the project:
./gradlew build installDist
The build process will automatically download sqlite-jdbc-3.50.1.0.jar from sqlite-jdbc-crypt releases and place it in the libs/ directory.
The executable will be available at build/install/mcp-encrypted-sqlite/bin/mcp-encrypted-sqlite.
Configuration
This MCP server works with any MCP-compatible client (Cursor, Claude Desktop, etc.). The configuration format follows the Model Context Protocol specification.
The server communicates via STDIO (standard input/output). Add the following configuration to your MCP client's configuration file:
Configuration file locations:
- Cursor:
~/.cursor/mcp.json - Claude Desktop (macOS):
~/Library/Application Support/Claude/claude_desktop_config.json - Claude Desktop (Windows):
%APPDATA%\Claude\claude_desktop_config.json - Other clients: Refer to your client's documentation
{
"mcpServers": { "encrypted-sqlite": { "command": "/path/to/mcp-encrypted-sqlite/build/install/mcp-encrypted-sqlite/bin/mcp-encrypted-sqlite", "args": [ "--args", "{\"db_path\":\"/path/to/your/database.sqlite\",\"passphrase\":\"your-passphrase\"}" ] } } }
Optional Parameters:
- `transport`: Defaults to
"stdio"(can be omitted) - `cwd`: Not needed when using absolute paths (can be omitted)
- `immutable`: Optional boolean in the
--argsJSON. Whentrue, opens the DB with SQLite URIfile:…?immutable=1(no file locks). Use for peeking at DBs locked exclusively by another app (e.g. MoneyMoney). All write tools/SQL are disabled in this mode (insert_or_update/delete_rowsomitted;execute_sqlaccepts read-only statements only). - `env`: Only needed if Java is not in your system PATH or for custom Java installation:
{
"mcpServers": { "encrypted-sqlite": { "command": "/path/to/mcp-encrypted-sqlite/build/install/mcp-encrypted-sqlite/bin/mcp-encrypted-sqlite", "args": [ "--args", "{\"db_path\":\"/path/to/your/database.sqlite\",\"passphrase\":\"your-passphrase\"}" ], "env": { "JAVA_HOME": "/path/to/java/home" } } } }
Docker Configuration
Plain Passphrase
{
"mcpServers": { "encrypted-sqlite": { "command": "docker", "args": [ "run", "--rm", "-i", "-v", "/path/to/your/database.sqlite:/data/database.sqlite:ro", "ghcr.io/rosch100/mcp-encrypted-sqlite:latest", "--args", "{\"db_path\":\"/data/database.sqlite\",\"passphrase\":\"your-passphrase\"}" ] } } }
Encrypted Passphrase (Recommended)
When using encrypted passphrases, you must pass the encryption key as an environment variable:
{
"mcpServers": { "encrypted-sqlite": { "command": "docker", "args": [ "run", "--rm", "-i", "-e", "MCP_SQLITE_ENCRYPTION_KEY=your-encryption-key", "-v", "/path/to/your/database.sqlite:/data/database.sqlite:ro", "ghcr.io/rosch100/mcp-encrypted-sqlite:latest", "--args", "{\"db_path\":\"/data/database.sqlite\",\"passphrase\":\"encrypted:your-encrypted-passphrase\"}" ] } } }
Important Notes:
- The
-eflag must come before the-vflag - macOS Keychain is NOT accessible from Docker containers - pass the encryption key explicitly
- Get your encryption key:
security find-generic-password -s "mcp-encrypted-sqlite" -a "encryption-key" -w - The database file is mounted as read-only (
:ro) by default. Remove:roif you need write access
Security Warning: Storing both the encryption key and encrypted passphrase as plain text in your configuration file is a security risk. See DOCKER_CONFIGURATION.md for secure alternatives.
Custom Cipher Profile
Override the default SQLCipher 4 settings by including a cipherProfile in the configuration JSON:
{
"mcpServers": { "encrypted-sqlite": { "command": "/path/to/mcp-encrypted-sqlite/build/install/mcp-encrypted-sqlite/bin/mcp-encrypted-sqlite", "args": [ "--args", "{\"db_path\":\"/path/to/your/database.sqlite\",\"passphrase\":\"your-passphrase\",\"cipherProfile\":{\"name\":\"SQLCipher 4 defaults\",\"pageSize\":4096,\"kdfIterations\":256000,\"hmacAlgorithm\":\"HMAC_SHA512\",\"kdfAlgorithm\":\"PBKDF2_HMAC_SHA512\"}}" ] } } }
Note: All fields in cipherProfile are optional - only specify the ones you want to override from the defaults. You can also specify cipherProfile in individual tool calls, but it's recommended to configure it once in the MCP server configuration for consistency.
Encrypted Passphrases
For enhanced security, you can store passphrases in encrypted form. The server uses AES-256-GCM encryption, which provides authenticated encryption and is both secure and fast.
macOS Keychain (Recommended for macOS)
- Generate and store key in Keychain: Run:
./store-key-in-keychain.sh --generate
- Encrypt your passphrase: Run:
./encrypt-passphrase.sh "your-plain-passphrase"
The key is automatically loaded from the Keychain when no environment variable is set.
Benefits:
- Key is securely encrypted and stored by macOS
- No environment variables needed
- Automatic unlock with macOS user password
- Works system-wide for all applications
Environment Variable (Cross-Platform)
- Generate an encryption key: Run:
java -cp build/libs/mcp-encrypted-sqlite-VERSION.jar com.example.mcp.sqlite.config.PassphraseEncryption
- Set the encryption key: Run:
export MCP_SQLITE_ENCRYPTION_KEY=" "
- Encrypt your passphrase: Run:
java -cp build/libs/mcp-encrypted-sqlite-VERSION.jar com.example.mcp.sqlite.util.EncryptPassphrase "your-plain-passphrase"
Usage
Use the encrypted passphrase (with encrypted: prefix) in your configuration:
On macOS with Keychain (recommended):
{
"mcpServers": { "encrypted-sqlite": { "command": "/path/to/mcp-encrypted-sqlite/build/install/mcp-encrypted-sqlite/bin/mcp-encrypted-sqlite", "args": [ "--args", "{\"db_path\":\"/path/to/your/database.sqlite\",\"passphrase\":\"encrypted: \"}" ] } } }
*Note: No `env` section needed - the key is automatically loaded from macOS Keychain.*
With environment variable (cross-platform):
{
"mcpServers": { "encrypted-sqlite": { "command": "/path/to/mcp-encrypted-sqlite/build/install/mcp-encrypted-sqlite/bin/mcp-encrypted-sqlite", "args": [ "--args", "{\"db_path\":\"/path/to/your/database.sqlite\",\"passphrase\":\"encrypted: \"}" ], "env": { "MCP_SQLITE_ENCRYPTION_KEY": " " } } } }
Important Security Notes:
- The encryption key MUST be available (macOS Keychain or
MCP_SQLITE_ENCRYPTION_KEYenvironment variable) - The server automatically detects encrypted passphrases (starting with
encrypted:) and decrypts them - Use
PassphraseEncryption.generateKey()to generate strong keys (256 bits / 32 bytes) - AES-256-GCM provides authenticated encryption
- Weak keys are automatically rejected
Available Tools
list_tables
List all tables in the database. By default only table names, with include_columns=true also column details.
Parameters:
db_path(optional if configured): Path to the database filepassphrase(optional if configured): Database passphraseinclude_columns(optional, default: false): If true, column details are also returned
Example:
{
"name": "list_tables", "arguments": { "include_columns": true } }
get_table_data
Read data from a table with optional filtering, column selection, and pagination.
Parameters:
table(required): Table namecolumns(optional): Array of column names to selectfilters(optional): Object with column-value pairs for filteringlimit(optional, default: 200): Maximum number of rowsoffset(optional, default: 0): Offset for pagination
Example: `json
冒頭だけを表示しています。続きはリポジトリで読めます