Feedback

MEC Postgres MCP Server

@pratye Claim

Basic information

Runtime
JavaScript
Category
License
Not specified
Transports
stdio
Author
pratye
Submitted by
Community
Quality
25

About MEC Postgres MCP Server

A Model Context Protocol server that provides read and write access to PostgreSQL databases. This server enables LLMs to inspect database schemas and execute read and write queries.

MEC Postgres is a MCP server in the Databases category listed in the AddMCP.net directory, published by Pratye. Supported transport: stdio. Runtime: JavaScript. Source code is hosted on github.com. Related topics: database, postgres, postgresql.

Setup

{
    "mcpServers": {
        "postgres": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "mcp/postgres",
                "postgresql://host.docker.internal:5432/mydb"
            ]
        }
    }
}

MEC Postgres MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "postgres": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "mcp/postgres",
                "postgresql://host.docker.internal:5432/mydb"
            ]
        }
    }
}

MEC Postgres MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is MEC Postgres?

MEC Postgres is a Model Context Protocol (MCP) server that provides read and write access to PostgreSQL databases. It enables LLMs to inspect database schemas and execute SQL queries.

How to use MEC Postgres?

Use with Claude Desktop by adding the server configuration to the mcpServers section of claude_desktop_config.json. The server runs via Docker and connects to a PostgreSQL database using a connection URL (e.g., postgresql://user:password@host:port/db-name). Replace the database name and credentials as needed.

Key features of MEC Postgres

  • Execute read-only SQL queries against PostgreSQL
  • Upload and process CSV files into database tables
  • Automatically discover table schemas as JSON resources
  • Deploy via Docker for easy setup with Claude Desktop
  • All queries use transactions (read-only or read-write)

Use cases of MEC Postgres

  • Allow an LLM to explore database schema before generating queries
  • Enable an LLM to execute analytical read queries on business data
  • Let an LLM ingest CSV data into a PostgreSQL table for further analysis
  • Provide database schema information to an LLM for context‑aware responses

Frequently asked questions

1 What is the difference between the query and uploadCsv tools?

query executes read-only SQL queries within a READ ONLY transaction; uploadCsv executes read and write queries within a READ AND WRITE transaction.

2 How do I connect to a PostgreSQL database?

Use a PostgreSQL connection URL (e.g., postgresql://user:password@host:port/db-name) when running the Docker container.

3 Does the server support authentication?

Yes, username and password can be included in the PostgreSQL connection URL.

4 What runtime is required to run MEC Postgres?

The server is distributed as a Docker image; Docker is required to run it.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬