Overview of Cloudflare Remote PostgreSQL MCP Server
mainThis project is a production-ready Model Context Protocol (MCP) server that allows you to chat with a PostgreSQL database. It is designed to be deployed as a remote server on Cloudflare Workers and uses GitHub OAuth for secure, role-based access control.
Key features include:
- Database Integration: Direct PostgreSQL connection for all tool calls.
- Role-Based Access: Permissions are managed via GitHub usernames (read access for all authenticated users, write access for specific privileged users).
- Schema Discovery: Automatic retrieval of table and column information.
- Security: Built-in SQL injection protection and query validation.
- Transport Support: Supports both modern Streamable HTTP (
/mcp) and legacy Server-Sent Events (/sse).