Simple PostgreSQL MCP Server

by perrypixel

Not rated
GitHub

About

An MCP server for executing SQL queries on PostgreSQL databases with configurable permissions.

Details

Author
perrypixel
Categories
Database

Setup

Install Simple PostgreSQL MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/perrypixel/Simple-Postgres-MCP

Follow the installation instructions in the repository README, then restart your MCP client.

An MCP server for executing SQL queries on PostgreSQL databases with configurable permissions.

A minimal Model Context Protocol (MCP) server for executing SQL queries on PostgreSQL databases with configurable permissions.

- Execute SQL queries with optional read-only or write access
- Server-level mode (read-only/write) configurable via command line
- Returns structured results with metadata
- Simple setup using a PostgreSQL connection string
- Clone the repository

git clone https://github.com/perrypixel/Simple-Postgres-MCP cd Simple-Postgres-MCP

Add the following to your MCP client configuration (mcp.json):

{ "mcpServers": { "simple-postgresql-mcp": { "command": "node", "args": [ "/path/to/build/index.js", "postgresql://username:password@localhost:5432/database_name", "write" ] } } }
{ "mcpServers": { "simple-postgresql-mcp": { "command": "node", "args": [ "/path/to/build/index.js", "postgresql://username:password@localhost:5432/database_name", "readonly" ] } } }

Note:Update the path in the configuration to point to theindex.jsfile inside yourbuildfolder.
- Copy the appropriate MCP configuration (read-only or write mode) to your tool’smcp.json(e.g., Cursor, Windsurf, Copilot, etc.).
- Start your MCP client. The server is now ready to use!

If you find this tool helpful, you can support the development by:

- Buying me a coffee athttps://ko-fi.com/perrypixel
- UPI to kevinp@apl

Official Airtable MCP server and skills for working with bases, records, workflows, and business operations from AI agents.

MCP Server For Apache Doris, an MPP-based real-time data warehouse.

Official MCP Server from Atlan which enables you to bring the power of metadata to your AI tools

Query Onchain data, like ERC20 tokens, transaction history, smart contract state.

Read and write access to your Baserow tables.

Introspect and query your apps deployed to Convex.

Interact with the data stored in Couchbase clusters using natural language.

Maritime intelligence for tracking vessels, analysing ports, and exploring ship data.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.