mcp-server-demo

mcp-server-demo

3.1

If you are the rightful owner of mcp-server-demo 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.

Database Analyzer MCP Server is a tool for PostgreSQL database introspection and analysis using an MCP server interface.

The Database Analyzer MCP Server is a robust tool designed for the introspection and analysis of PostgreSQL databases. It provides a Model Context Protocol (MCP) server interface that allows users to explore database schemas, understand relationships, and execute safe queries. The server is equipped with features that ensure secure and efficient database operations, such as schema analysis and safe query execution. It is particularly useful for database administrators and developers who need to interact with PostgreSQL databases in a controlled and secure manner. The tool requires Python 3.x and specific Python packages, including 'mcp', 'psycopg2', and 'python-dotenv', to function effectively.

Features

  • Database Schema Analysis: Allows listing of all tables in a specified schema, detailed schema information for specific tables, and viewing of column definitions, data types, and constraints.
  • Safe Query Execution: Enables execution of SELECT queries with parameterized inputs and includes built-in security measures to prevent unauthorized modifications.
  • Security Features: Includes only allowing SELECT queries, parameterized queries to prevent SQL injection, environment variable-based configuration for sensitive data, and automatic connection cleanup.
  • Error Handling: Comprehensive error handling for database connection issues, invalid queries, schema access problems, and resource cleanup.