Skip to main content
Glama
cookieark7

DevVault MCP

by cookieark7

devvault-mcp

Claude Code に DevVault のローカル Postgres データベースへの構造化されたアクセスを提供する小さな MCP サーバーです。スキーマの確認、読み取り専用クエリの実行、保護された書き込み、テスト用のダミーデータの投入ができます。

接続

DATABASE_URL は次の順序で解決されます:

  1. process.env.DATABASE_URL

  2. DEVVAULT_ENV_PATH.env ファイルへのパス)が設定されている場合

  3. ../devvault-backend/.env

したがって、DB パスワードはバックエンドの .env に保持され、どの MCP 設定にも複製されません

Related MCP server: PostgreSQL MCP Server

ツール

ツール

目的

db_info

接続先のデータベース/ユーザー(認証情報は表示されません)。

list_tables

パブリックテーブルとおおよその行数。

describe_table

テーブルの列(名前、型、null 許容、デフォルト値)。

count_rows

主要な DevVault テーブルの正確な行数。

run_query

読み取り専用のステートメント(SELECT/WITH/EXPLAIN/SHOW)を 1 つ、READ ONLY トランザクションで実行します。$1,$2… パラメータをサポートします。

run_write

INSERT/UPDATE/DELETE を 1 つ実行します。DDL および WHERE 句のない UPDATE/DELETE は、allowDangerous=true でない限り拒否されます。

seed_dummy

既存のユーザーに紐づけて、snippets/bookmarks/notes/commands/prompts にダミー行(有効な cuid ID + タイムスタンプ)を挿入します。

安全ガード

  • run_query は読み取り専用でないものを拒否し、ステートメントの連結(;)をブロックします。

  • run_writeDROP/TRUNCATE/ALTER/CREATE/GRANT/… を拒否し、WHERE 句のない UPDATE/DELETE も拒否します。ただし allowDangerous: true を渡した場合を除きます。

  • 書き込みはトランザクション内で実行され、エラー時にはロールバックされます。

Claude Code への登録

../.mcp.json(プロジェクトスコープ)経由で既に設定済みです:

{
  "mcpServers": {
    "devvault-db": {
      "command": "node",
      "args": ["/Users/cookie/project-git/devvault_2/devvault-mcp/server.js"]
    }
  }
}

MCP サーバーは Claude Code の起動時に読み込まれるため、devvault-db ツールを表示するにはセッションを再起動/再接続してください。

ローカルチェック(MCP クライアントは不要)

npm install
node smoke.js     # connectivity + row counts
node mcptest.js   # full MCP handshake: list tools + call a few

ダミーデータ

seed_dummy によって作成されたシード行は、すべてタイトルが Dummy で始まります。 削除するには:

DELETE FROM prompts  WHERE title LIKE 'Dummy %';
DELETE FROM commands WHERE title LIKE 'Dummy %';
DELETE FROM snippets WHERE title LIKE 'Dummy %';
DELETE FROM bookmarks WHERE title LIKE 'Dummy %';
DELETE FROM notes    WHERE title LIKE 'Dummy %';
Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides read-only access to PostgreSQL databases with schema inspection, query execution in multiple formats (JSON, CSV, Markdown), and query history tracking with built-in security features.
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to query and manage local PostgreSQL databases through SQL execution and schema exploration tools. It supports both read-only queries and write operations including table creation and data modification via natural language.
    34
    ISC
  • A
    license
    A
    quality
    D
    maintenance
    Enables Claude to interact with a local PostgreSQL database through SQL queries, schema inspection, and CRUD operations.
    8
    225
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables safe interaction with PostgreSQL databases through read-only queries, schema exploration, and performance analysis.
    225
    MIT

View all related MCP servers

Related MCP Connectors

  • Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.

  • Comprehensive PostgreSQL documentation and best practices, including ecosystem tools

  • MCP server for managing Prisma Postgres.

View all MCP Connectors

Latest Blog Posts

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/cookieark7/devvault-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server