keepassmcp
🔐keepassmcp🔐
keepassmcpは、ローカルのKeePassデータベース(エントリ、メモ、カスタムプロパティ、パスワード)を読み取るPHPヘルパー兼MCPサーバーです。
設計上、読み取り専用です。データベース内の何かが書き込まれたり変更されたりすることは一切ありません。
keepassmcpにはPHP 8.5以降と、pykeepassを備えたPython 3が必要です。復号処理自体はpykeepassに委任されています。これは、KDBX 4.xを確実に読み取れるPHPライブラリが存在しないためです。そのため、Argon2キー導出を含むすべてのKDBXバリアントがサポートされています。
インストール
composer require vielhuber/keepassmcp
pip install pykeepassRelated MCP server: vault-kv-mcp
設定
.env.example を .env にコピーするか、同じ変数をプロセス環境を通じて提供します:
KEEPASS_DATABASE=/path/to/passwords.kdbx
KEEPASS_PASSWORD_FILE=/dev/shm/keepass.pass
MCP_TOKEN=マスターパスワードは、KEEPASS_PASSWORD として直接指定するか、できれば KEEPASS_PASSWORD_FILE で指定されたファイルを通じて指定できます。ファイルを使用すると、パスワードがプロセス環境から除外されます。プロセス環境に置くと、すべての子プロセスに継承され、/proc/<pid>/environ で読み取り可能なままになります。どちらの経路を使用しても、値は読み取られた時点で環境から削除され、stdinを通じてリーダーに渡されるため、プロセスの引数に現れることはありません。
KEEPASS_PYTHON は、オプションで特定のインタープリタ(たとえばvirtualenv内のもの)を指定します。
PHP
use vielhuber\keepassmcp\keepassmcp;
$vault = new keepassmcp();
$vault->listEntries();
$vault->searchEntries('api-key');
$vault->getEntry('7f9c…');MCPサーバー
vendor/bin/mcp-server.php利用可能なツール:
list_entriessearch_entriesget_entry
list_entries と search_entries は、パスワードやメモ本文を返すことはありません。タイトル、グループパス、ユーザー名、URL、および has_password と has_notes のフラグを報告します。search_entries はメモやカスタムプロパティ名の内部を検索するため、エントリに保存された長文のドキュメントも検索可能なままです。機密値を返すのは get_entry だけです。
テスト
composer install
vendor/bin/phpunitテストスイートはフェイクリーダーを使用し、実際のデータベースを開くことはありません。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceA secure, read-only MCP server for browsing and searching files in a specified directory with path traversal protection and .gitignore support.3MIT
- FlicenseAqualityCmaintenanceA read-only MCP server that provides tools to read, list, and inspect secrets from HashiCorp Vault's KV secrets engine (versions 1 and 2) using a Vault token.5
- AlicenseNot gradedqualityCmaintenanceMCP server for the Nextcloud Passwords app, enabling reading and managing password entries (list, search, create, update, delete) with strong security guarantees.MIT
- AlicenseAqualityBmaintenanceRead-only MCP server that connects to multiple IMAP accounts, enabling cross-account email listing, search, and retrieval without modifying mailboxes.4MIT
Related MCP Connectors
2,000+ MCP servers read at source level. Know what one does before you connect. Free, no key.
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
Federated commerce search across independent WooCommerce merchants. Keyless, read-only MCP server.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vielhuber/keepassmcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server