DevVault MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DevVault MCP List all tables with estimated row counts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
devvault-mcp
A small MCP server that gives Claude Code structured access to DevVault's local Postgres database — inspect schema, run read-only queries, make guarded writes, and seed dummy data for testing.
Connection
DATABASE_URL is resolved in this order:
process.env.DATABASE_URLDEVVAULT_ENV_PATH(path to an.envfile), if set../devvault-backend/.env
So the DB password stays in the backend .env and is not duplicated into
any MCP config.
Related MCP server: PostgreSQL MCP Server
Tools
Tool | Purpose |
| Which database/user we're connected to (no credentials shown). |
| Public tables + approximate row counts. |
| Columns (name, type, nullable, default) for a table. |
| Exact row counts for the main DevVault tables. |
| One read-only statement (SELECT/WITH/EXPLAIN/SHOW), run in a |
| One INSERT/UPDATE/DELETE. DDL and unscoped UPDATE/DELETE (no WHERE) are refused unless |
| Insert dummy rows (valid cuid ids + timestamps) into snippets/bookmarks/notes/commands/prompts, attached to existing users. |
Safety guards
run_queryrejects anything that isn't read-only and blocks statement stacking (;).run_writerefusesDROP/TRUNCATE/ALTER/CREATE/GRANT/…and refusesUPDATE/DELETEwith noWHEREclause, unless you passallowDangerous: true.Writes run inside a transaction and roll back on error.
Registering with Claude Code
Already wired up via ../.mcp.json (project scope):
{
"mcpServers": {
"devvault-db": {
"command": "node",
"args": ["/Users/cookie/project-git/devvault_2/devvault-mcp/server.js"]
}
}
}MCP servers load at Claude Code startup, so restart / reconnect the session
for the devvault-db tools to appear.
Local checks (no MCP client needed)
npm install
node smoke.js # connectivity + row counts
node mcptest.js # full MCP handshake: list tools + call a fewDummy data
Seed rows created by seed_dummy all have titles beginning with Dummy .
To remove them:
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 %';Available Tools
7 toolscount_rowsCount rowsB
Exact row counts for the main DevVault tables.
Inputs: no named parameters.
db_infoDatabase infoA
Show which database this server is connected to (host/db only, no credentials).
Inputs: no named parameters.
describe_tableDescribe tableA
Show columns (name, type, nullable, default) for a table.
Inputs: table (required).
list_tablesList tablesA
List public tables with their live row estimates.
Inputs: no named parameters.
run_queryRun read-only queryA
Run a single read-only SQL statement (SELECT/WITH/EXPLAIN/SHOW). Executes inside a READ ONLY transaction. Use $1, $2… placeholders with params.
Inputs: sql (required), limit, params.
run_writeRun write statementA
Run a single INSERT/UPDATE/DELETE. DDL (DROP/TRUNCATE/ALTER/…) and unscoped UPDATE/DELETE (no WHERE) are refused unless allowDangerous=true. Add "RETURNING *" to see affected rows.
Inputs: sql (required), params, allowDangerous.
seed_dummySeed dummy dataA
Insert dummy rows (with valid cuid ids + timestamps) into snippets/bookmarks/notes/commands/prompts, attached to existing users. Great for filling the empty prompts/commands tables. Returns how many rows were inserted.
Inputs: notes, userId, prompts, commands, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools have distinct purposes: querying, writing, seeding, and introspection. However, run_query and run_write are clear opposites, and count_rows overlaps slightly with db_info/list_tables in terms of database introspection, though they serve different specific needs.
All tool names use a consistent verb_noun pattern: run_query, run_write, seed_dummy, db_info, list_tables, describe_table, count_rows. Each name clearly indicates the action and the target, making the set highly predictable.
With 7 tools, the count is well within the ideal range for a database management server. Each tool covers a core operation (query, write, seed, introspect), and none feel redundant. A couple more tools for advanced operations (e.g., transactions, backups) could be added, but the current count is appropriate.
The server covers essential database operations: querying, writing, seeding dummy data, and introspection (list tables, describe schema, row counts). It lacks tools for schema modification or data deletion scoped by ID, but the primary workflows for development (read, write, seed, introspect) are well covered.
Related MCP Connectors
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Comprehensive PostgreSQL documentation and best practices, including ecosystem tools
Work with your database from AI tools: ask, export, approved changes, and scheduled jobs.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides 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.-
- FlicenseNot gradedqualityDmaintenanceEnables 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.1-
- AlicenseAqualityNot gradedmaintenanceEnables Claude to interact with a local PostgreSQL database through SQL queries, schema inspection, and CRUD operations.8MIT
- FlicenseNot gradedqualityDmaintenanceEnables safe interaction with PostgreSQL databases through read-only queries, schema exploration, and performance analysis.-