DevVault MCP

DevVault MCP

Provides structured access to DevVault's local Postgres database, allowing schema inspection, read-only queries, guarded writes, and dummy data seeding for testing.

Category
Visit Server

README

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:

  1. process.env.DATABASE_URL
  2. DEVVAULT_ENV_PATH (path to an .env file), if set
  3. ../devvault-backend/.env

So the DB password stays in the backend .env and is not duplicated into any MCP config.

Tools

Tool Purpose
db_info Which database/user we're connected to (no credentials shown).
list_tables Public tables + approximate row counts.
describe_table Columns (name, type, nullable, default) for a table.
count_rows Exact row counts for the main DevVault tables.
run_query One read-only statement (SELECT/WITH/EXPLAIN/SHOW), run in a READ ONLY transaction. Supports $1,$2… params.
run_write One INSERT/UPDATE/DELETE. DDL and unscoped UPDATE/DELETE (no WHERE) are refused unless allowDangerous=true.
seed_dummy Insert dummy rows (valid cuid ids + timestamps) into snippets/bookmarks/notes/commands/prompts, attached to existing users.

Safety guards

  • run_query rejects anything that isn't read-only and blocks statement stacking (;).
  • run_write refuses DROP/TRUNCATE/ALTER/CREATE/GRANT/… and refuses UPDATE/DELETE with no WHERE clause, unless you pass allowDangerous: 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 few

Dummy 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 %';

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured