Query and manage PostgreSQL databases directly
Run the underlying MCP server directly — without Agent-CoreX routing.
npx -y @modelcontextprotocol/server-postgresNote: Requires DATABASE_URL environment variable
DATABASE_URLRequiredAgent-CoreX intelligently routes which tools from PostgreSQL your AI agent actually needs per request — reducing token usage and cost.
agent-corex.json
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres"
],
"env": {
"DATABASE_URL": "<your-database_url>"
}
}
}
}Connect in 2 minutes. Only pay for the tools your agent actually uses.
Recommended: intelligent tool routing, lower costs
uvx agent-corex mcp add postgresAgent-CoreX selects only the tools your agent needs, cutting token usage by up to 60%.
Use PostgreSQL directly without routing
npx -y @modelcontextprotocol/server-postgresNew to Agent-CoreX? View setup guide →