Borrowing it
Nothing to install: this file belongs to vishnu2kmohan/mcp-server-langgraph. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/vishnu2kmohan/mcp-server-langgraph/main/.claude/commands/db-operations.mdgit clone --depth 1 https://github.com/vishnu2kmohan/mcp-server-langgraphWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/vishnu2kmohan/mcp-server-langgraph/db-operations)<a href="https://agentmods.dev/commands/vishnu2kmohan/mcp-server-langgraph/db-operations"><img src="https://agentmods.dev/badge/commands/vishnu2kmohan/mcp-server-langgraph/db-operations/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/vishnu2kmohan/mcp-server-langgraph/db-operations"><img src="https://agentmods.dev/badge/commands/vishnu2kmohan/mcp-server-langgraph/db-operations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00012 | $0.02264 |
| Opus 5.5 | $0.00005 | $0.00906 |
| Sonnet 5.5 | $0.00002 | $0.00453 |
| Haiku 4.5 | $0.00001 | $0.00226 |
Grade B, and why
db-operations scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
chmod 755 backups How it starts
The opening of the file, as written. The whole thing — 495 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Database Operations
Usage: /db-operations or /db-operations <action>
Purpose: Manage PostgreSQL database operations for OpenFGA and application data
Actions:
shell- Access database shellbackup- Create database backuprestore- Restore from backupmigrate- Run migrations
📊 Database Overview
The MCP Server LangGraph uses PostgreSQL for:
- OpenFGA data: Authorization tuples and models
- Session data: (if configured for PostgreSQL backend)
- Application state: Persistent storage
Connection Details:
- Host:
localhost - Port:
5432 - Database:
openfga - User:
postgres - Container:
postgres(via docker-compose)
🔧 Database Operations
Access Database Shell
Open PostgreSQL interactive shell:
make db-shell
What it does:
- Connects to PostgreSQL container
- Opens
psqlinteractive shell - Connected to
openfgadatabase
Example session:
openfga=# \dt
-- List all tables
openfga=# SELECT * FROM store;
-- View OpenFGA stores
openfga=# \d authorization_model
-- Describe authorization_model table
openfga=# \q
-- Quit
Common psql commands:
\dt- List tables\d table_name- Describe table\l- List databases\du- List users\q- Quit
Create Database Backup
Create timestamped backup:
make db-backup
What it does:
- Creates
backups/directory if needed - Dumps database to SQL file
- Filename:
openfga_backup_YYYYMMDD_HHMMSS.sql - Includes all tables, data, and schema
Example:
Creating database backup...
✓ Backup created in backups/
Backup file: backups/openfga_backup_20251021_143022.sql
Size: 2.4 MB
Backup includes:
- All OpenFGA stores
- Authorization models
- Tuples (user-role-resource relationships)
- Configuration data
Storage location: ./backups/
Retention: Manual cleanup (keep critical backups)
Restore from Backup
Restore database from backup file:
make db-restore
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 495 lines · 12 tokens per session scan B baf2d5781595
db-operations is a command published in the GitHub repository vishnu2kmohan/mcp-server-langgraph (4 stars, last pushed 2d ago), licensed MIT. It adds 12 tokens to every session and 2,264 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
sql-migrations
SQL database migrations with zero-downtime strategies for PostgreSQL, MySQL, SQL Server.
dba
Invoke the Database Administrator for schema design, indexing, query tuning, safe migrations, replication, and backups (Postgres/MySQL OLTP).
seed-reset
Reset and reseed live demo data in the database.
pgvector-search
Production hybrid search with PGVector and BM25 using Reciprocal Rank Fusion, metadata filtering, and performance tuning for semantic retrieval. Use when building hybrid semantic and keyword search, tuning PGVector performance, or filtering by metadata. Triggers on pgvector, hybrid search, BM25, reciprocal rank…
sql-migrations
SQL database migrations with zero-downtime strategies for PostgreSQL, MySQL, SQL Server.
check-drift
Run schema drift detection — compare the live Postgres schema against ORM table definitions, backend function .select() calls, the schema doc, and the techstack inventory.