RathodDarshil_mcp-postgres-query-server

RathodDarshil_mcp-postgres-query-server

3.2

If you are the rightful owner of RathodDarshil_mcp-postgres-query-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server implementation for querying a PostgreSQL database in read-only mode, designed to work with Claude Desktop and other MCP clients.

The MCP Postgres Query Server is a secure, read-only interface to a PostgreSQL database, designed to integrate seamlessly with Claude Desktop and other MCP clients. It ensures that only SELECT queries are executed, providing a safe environment for data retrieval. The server includes SQL query validation and a query timeout feature to prevent long-running queries from consuming excessive resources. It is built using Node.js and requires a PostgreSQL database connection, which is provided via command line. The server is configured to work with Claude Desktop by adding it to the MCP server section in the configuration file, allowing for easy integration and management.

Features

  • Read-Only Database Access: Only SELECT queries are permitted for security.
  • Query Validation: Prevents potentially harmful SQL operations.
  • Timeout Protection: Queries running longer than 10 seconds are automatically terminated.
  • MCP Protocol Support: Complete implementation of the Model Context Protocol.
  • JSON Response Formatting: Query results are returned in structured JSON format.

Tools

  1. query-postgres

    Executes a read-only SQL query against the configured PostgreSQL database.