MCP Postgres Server
MCP Postgres 服务器
该服务器为 Cursor 实现了模型上下文协议 (MCP),允许使用 PostgreSQL 数据库作为模型上下文的存储。
先决条件
Docker
Docker Compose
Related MCP server: pg-mcp-server
安装和启动
克隆此存储库
使用 Docker Compose 启动服务器:
docker-compose up -d光标中的配置
打开游标
前往“设置”>“MCP”
使用以下设置添加新连接:
名称:MCP Postgres 服务器
类型:命令
命令:
docker exec -i mcp-postgres-server node dist/index.js
故障排除
如果服务器没有正确启动:
检查容器日志:
docker logs mcp-postgres-server要重新启动服务器:
docker-compose restart
MCP 服务器功能
MCP PostgreSQL 服务器为 Cursor 提供了以下工具:
postgres_query- 执行只读 SQL 查询postgres_list_tables列出数据库中的所有表postgres_describe_table- 获取特定表的模式
这些工具允许 Cursor 安全地探索和查询数据库。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceA Model Context Protocol server implementation that provides a simple interface to interact with PostgreSQL databases, enabling SQL queries, database operations, and schema management through MCP.
- Alicense-qualityDmaintenanceA Model Context Protocol server for PostgreSQL databases that enables AI agents to connect, query, and explore multiple databases with schema discovery and extension context.540MIT
- Flicense-qualityDmaintenanceA standardized Model Context Protocol server for interacting with PostgreSQL databases, enabling full CRUD operations, schema management, and database introspection.1
- Alicense-qualityDmaintenanceMCP server for PostgreSQL that enables Cursor and other MCP clients to execute SQL queries, list tables, and explore database schemas via HTTP.505MIT
Related MCP Connectors
MCP server for managing Prisma Postgres.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for interacting with the Supabase platform
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MadeByNando/mcp-postgres-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server