Sponsored by Deepsite.site

Postgresql Analytics Mcp Server

Created By
Archimedes Market4 days ago
The MCP PostgreSQL Analytics server provides advanced analytics capabilities for PostgreSQL databases, including smart schema exploration, query optimization, index suggestions, and natural language to SQL conversion. It is designed to enhance database performance and accessibility through AI-driven tools.
Content

PostgreSQL Analytics MCP Server

PostgreSQL Analytics for AI Assistants

Go beyond basic SQL. This MCP server gives your AI assistant deep visibility into PostgreSQL databases: smart schema
exploration, query plan analysis with bottleneck annotations, index optimization suggestions, table health monitoring, referential integrity auditing, and natural language to SQL generation.

Tools

  • explore_schema — Structured schema tree: tables, columns, types, FKs, indexes, row counts, sizes
  • analyze_query — EXPLAIN ANALYZE with human-readable bottleneck annotations (seq scans, disk spills, estimate mismatches)
  • suggest_indexes — Analyze slow queries or entire databases, suggest optimal indexes with CREATE INDEX statements
  • table_stats — Row counts, dead tuples, bloat %, vacuum/analyze history, cache hit ratios
  • find_missing_fks — Detect *_id columns without FK constraints, auto-generate ALTER TABLE suggestions
  • generate_query — Natural language to SQL using actual schema context, with optional execution

Installation

{
  "mcpServers": {
    "postgres": {
      "command": "node",
      "args": ["/path/to/mcp-postgres-analytics/dist/index.js"],                                                           
      "env": {
        "DATABASE_URL": "postgres://user:password@localhost:5432/mydb"                                                     
      }                                                                                                                    
    }
  }                                                                                                                        
}                                                         

Use cases

- Understand a new database in one prompt — full schema with row counts and FK relationships                               
- Optimize slow queries with annotated EXPLAIN ANALYZE output
- Find missing foreign keys across an entire schema in seconds                                                             
                                                                                                                           
License
                                                                                                                           
MIT — full source on archimedes.market                                                                                     
 
---                                                                                                                        
             

Server Config

{
  "mcpServers": {
    "postgres": {
      "command": "node",
      "args": [
        "/path/to/mcp-postgres-analytics/dist/index.js"
      ],
      "env": {
        "DATABASE_URL": "postgres://user:password@localhost:5432/mydb"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
DeepChatYour AI Partner on Desktop
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Serper MCP ServerA Serper MCP Server
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
ChatWiseThe second fastest AI chatbot™
Amap Maps高德地图官方 MCP Server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Playwright McpPlaywright MCP server
Tavily Mcp
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
CursorThe AI Code Editor
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
WindsurfThe new purpose-built IDE to harness magic