Basic information
About MCP Postgres Server
# MCP Postgres Server
MCP Postgres Server is a MCP server in the Databases category listed in the AddMCP.net directory, published by MadeByNando. It exposes 3 tools, including postgres_query, postgres_list_tables, postgres_describe_table. Supported transport: stdio. Runtime: node. Source code is hosted on github.com. Related topics: database, mcp-postgres-server, postgresql.
Setup
{
"mcpServers": {
"mcp-postgres-server-madebynando": {
"command": "docker",
"args": [
"logs",
"mcp-postgres-server"
]
}
}
}
{
"mcpServers": {
"mcp-postgres-server-madebynando": {
"command": "docker",
"args": [
"logs",
"mcp-postgres-server"
]
}
}
}
{
"servers": {
"mcp-postgres-server-madebynando": {
"command": "docker",
"args": [
"logs",
"mcp-postgres-server"
]
}
}
}
MCP Postgres Server — by MadeByNando config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-postgres-server-madebynando": {
"command": "docker",
"args": [
"logs",
"mcp-postgres-server"
]
}
}
}
MCP Postgres Server — by MadeByNando tools
- postgres_query — executes read-only SQL queries.
- postgres_list_tables — lists all database tables.
- postgres_describe_table — returns a table’s schema.
Overview
What is MCP Postgres Server?
MCP Postgres Server implements the Model Context Protocol (MCP) for Cursor, letting you use a PostgreSQL database as storage for model contexts. It is designed for developers who want to securely query and explore PostgreSQL databases directly from Cursor.
How to use MCP Postgres Server?
Clone the repository and start the server with Docker Compose (docker-compose up -d). Then configure a new MCP connection in Cursor (Settings > MCP) using the command docker exec -i mcp-postgres-server node dist/index.js.
Key features of MCP Postgres Server
- Runs PostgreSQL as MCP storage via Docker.
- Exposes three tools: query, list tables, describe table.
postgres_queryexecutes read-only SQL queries.postgres_list_tableslists all database tables.postgres_describe_tablereturns a table’s schema.- Enables secure database exploration from Cursor.
Use cases of MCP Postgres Server
- Querying a PostgreSQL database directly from Cursor’s agent.
- Listing tables and inspecting schemas during development.
- Integrating database context into AI‑assisted coding workflows.
- Troubleshooting database structure without leaving the editor.
Frequently asked questions
1 What are the prerequisites to run MCP Postgres Server?
Docker and Docker Compose must be installed on your system.
2 How do I configure MCP Postgres Server in Cursor?
In Cursor, go to Settings > MCP, add a new connection with the command docker exec -i mcp-postgres-server node dist/index.js.
3 What tools does MCP Postgres Server expose?
It exposes three tools: postgres_query (read-only SQL), postgres_list_tables (list all tables), and postgres_describe_table (describe a table’s schema).
4 Is the query tool safe for production databases?
Yes, postgres_query is explicitly read-only, so it cannot modify data.
5 How do I troubleshoot if the server fails to start?
Check the container logs with docker logs mcp-postgres-server or restart the server with docker-compose restart.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In