MCP Configs2026年3月29日·1 分钟阅读

PostgreSQL MCP Server — Database Queries for AI

MCP server for PostgreSQL database access. Run read-only SQL queries, inspect schemas, list tables, and analyze data directly from Claude Code or Cursor.

介绍

Connect your AI coding tools directly to PostgreSQL databases. Inspect schemas, run queries, analyze data, and generate reports — all through natural language. Read-only by default for safety.

Best for: Data analysis, schema exploration, query debugging, report generation Works with: Claude Code, Cursor, Gemini CLI


Capabilities

  • Schema inspection: List tables, columns, types, constraints, indexes
  • SQL queries: Run SELECT queries with results returned as structured data
  • Data analysis: Ask questions about your data in natural language
  • Query building: Describe what you need, get optimized SQL

Safety

  • Read-only mode by default (SELECT only)
  • Connection string passed as argument, not stored
  • No DDL operations unless explicitly enabled

FAQ

Q: What is PostgreSQL MCP Server? A: MCP server for PostgreSQL database access. Run read-only SQL queries, inspect schemas, list tables, and analyze data directly from Claude Code or Cursor.

Q: How do I install PostgreSQL MCP Server? A: Check the Quick Use section above for step-by-step installation instructions. Most assets can be set up in under 2 minutes.

🙏

来源与感谢

Created by Anthropic. Licensed under MIT. modelcontextprotocol/servers

讨论

登录后参与讨论。
还没有评论,来写第一条吧。