An MCP server that connects to PostgreSQL or MySQL databases and exposes database schema and read-only query operations to AI agents. It also converts natural-language questions into SQL and returns structured results through FastAPI endpoints.
From the registry: MCP server for SQLite, PostgreSQL, and MySQL with natural language to SQL and direct SQL tooling.
$ docker pull souhardyak/mcp-db-server:1.3.1Please install the `mcp-db-server` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install Docker** — Docker is needed for the simplest portable MCP launch path using the published container image. (https://docs.docker.com/get-docker/)
- **Prepare a database connection URL** — Provide a PostgreSQL, MySQL, or SQLite database URL for the server to connect to.
Optional prerequisites:
- Pull the MCP server image — Download the published Docker image before running it as an MCP server. Run: `docker pull souhardyak/mcp-db-server:1.3.1`
Canonical MCP server config (stdio transport):
- command: `docker`
- args: ["run","--rm","-i","-e","DATABASE_URL=<your-database-url>","souhardyak/mcp-db-server:1.3.1"]
- required environment variables:
- `DATABASE_URL`: Full database connection URL. Required for connecting the server to your PostgreSQL, MySQL, or SQLite database. (example: `<your-database-url>`)
- optional environment variables:
- `DB_HOST`: Database host if using component-based configuration instead of DATABASE_URL. (example: `<your-database-host>`)
- `DB_PORT`: Database port if using component-based configuration instead of DATABASE_URL. (example: `<your-database-port>`)
- `DB_USER`: Database username if using component-based configuration instead of DATABASE_URL. (example: `<your-database-username>`)
- `DB_PASSWORD`: Database password if using component-based configuration instead of DATABASE_URL. (example: `<your-database-password>`)
- `DB_NAME`: Database name if using component-based configuration instead of DATABASE_URL. (example: `<your-database-name>`)
- `HOST`: Server bind host. (example: `<your-host>`)
- `PORT`: Server bind port. (example: `<your-port>`)
Note: The README primarily documents this as a FastAPI HTTP service, but it also includes an explicit MCP stdio configuration example using Docker and states the registry metadata is configured for stdio transport. The canonical MCP install shape is therefore the Docker-based stdio launch. Prefer passing DATABASE_URL as an environment variable rather than embedding a real value directly in args.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.DATABASE_URLrequiredFull database connection URL for PostgreSQL or MySQL.MCP server for interacting with the Supabase platform