postgres-mcp
If you are the rightful owner of postgres-mcp 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 FastMCP server that enables LLMs to connect and interact with PostgreSQL databases.
The MCP PostgreSQL Demo is a FastMCP server designed to facilitate the interaction between Language Models (LLMs) and PostgreSQL databases. By leveraging the Model Context Protocol (MCP), this server allows LLMs to query and explore database schemas and tables efficiently. The server supports schema exploration, table inspection, and database querying, with results formatted in YAML for easy consumption by LLMs. This project is ideal for developers looking to integrate LLMs with PostgreSQL databases, providing a seamless interface for data retrieval and exploration.
Features
- Schema Exploration: Retrieve metadata about database schemas
- Table Inspection: Get detailed information about table structures
- Database Querying: Execute SQL queries against the database
- YAML Formatting: Results are returned in YAML format for easy consumption by LLMs
Tools
query_database
Execute SQL queries against the database (SELECT queries only)