PostgreSQL is a powerful open-source relational database. The PostgreSQL MCP server lets you explore schemas, execute SQL queries, and analyze query plans using natural language.Documentation Index
Fetch the complete documentation index at: https://docs.gumloop.com/llms.txt
Use this file to discover all available pages before exploring further.
What Can It Do?
- Explore database schemas and table structures
- Execute SQL queries and view results
- Analyze query performance with execution plans
- Browse tables, views, and sequences across schemas
Where to Use It
In Agents (Recommended)
Add PostgreSQL as a tool to any agent. The agent can then interact with PostgreSQL conversationally, choosing the right actions based on context. To add an MCP tool to your agent:- Open your agent’s configuration
- Click Add tools → Connect an app with MCP
- Search for the integration and select it
- Authenticate with your account
In Workflows (Via Agent Node)
For automated pipelines, use an Agent Node with PostgreSQL tools. This gives you the flexibility of an agent within a deterministic workflow.As a Custom MCP Node
You can also create a standalone MCP node for a specific action. This generates a reusable node that performs one task, useful when you need the same operation repeatedly in workflows.- Go to your node library and search for the integration
- Click Create a node with AI
- Describe the specific action you want (e.g., “List all tables in the database”)
- Test the node and save it for reuse
Custom MCP nodes are single-purpose by design. For tasks that require multiple steps or dynamic decision-making, use an agent instead.
Available Tools
| Tool | Description |
|---|---|
| List Schemas | List all schemas with their owners |
| List Objects | List tables, views, sequences, or extensions in a schema |
| Get Object Details | Get detailed information about a table, view, sequence, or extension |
| Execute Sql | Execute any SQL query and return results |
| Explain Query | Show query execution plan with costs and strategy |
Example Prompts
Use these with your agent or in the Agent Node: Explore schema:Troubleshooting
| Issue | Solution |
|---|---|
| Authentication failed | Verify your PostgreSQL credentials and that you have the required permissions |
| Tool not available | Verify the tool is enabled in your agent’s MCP configuration |
| Unexpected results | The agent may chain multiple tools together. Review the agent’s reasoning to understand its approach. |
Need Help?
- Agents documentation for setup and best practices
- Agent Node guide for workflow integration
- Gumloop Community for questions and examples
- Contact support@gumloop.com for assistance
Use this integration directly in Claude or Cursor. Connect remotely via the PostgreSQL MCP server using your Gumloop credentials.
