by plugpier · 8.1k installs
Execute SQL, inspect schemas, run migrations, and explore your database directly from your AI context.
A production-grade PostgreSQL integration that lets AI agents query, analyze, and manage your databases safely.
A PostgreSQL connection string. Supports PostgreSQL 12+.
execute_queryRun a SQL query and return results as JSON.
list_tablesList all tables in the database with row counts.
describe_tableGet column definitions, types, and constraints for a table.
list_indexesShow all indexes on a table with size and usage stats.
explain_queryRun EXPLAIN ANALYZE and return the query plan.
No reviews yet.
Be the first to review after installing.
{
"mcpServers": {
"postgres-mcp": {
"command": "npx",
"args": [
"-y",
"@plugpier/postgres-mcp"
],
"env": {
"PLUGPIER_KEY": "YOUR_API_KEY"
}
}
}
}