MCP Server
Active
MIT
io.github.arifulislamat/database-mcp-postgres MCP Server
io.github.arifulislamat/database-mcp-postgres
What is the io.github.arifulislamat/database-mcp-postgres MCP server?
MCP server for PostgreSQL. Read-only by default, row caps, timeouts, secrets never logged.
How to install io.github.arifulislamat/database-mcp-postgres
Copy-paste configuration for popular MCP clients.
transport: stdio
Config generated by PluginBench — verify against the source before use.Environment / auth
POSTGRES_HOSTrequiredDatabase host
POSTGRES_USERrequiredDatabase user (a read-only user is recommended)
POSTGRES_PASSWORDsecretDatabase password (or use POSTGRES_PASSWORD_FILE)
POSTGRES_DATABASErequiredDatabase name
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"database-mcp-postgres": {
"command": "npx",
"args": [
"-y",
"@database-mcp/postgres"
],
"env": {
"POSTGRES_HOST": "<YOUR_POSTGRES_HOST>",
"POSTGRES_USER": "<YOUR_POSTGRES_USER>",
"POSTGRES_PASSWORD": "<YOUR_POSTGRES_PASSWORD>",
"POSTGRES_DATABASE": "<YOUR_POSTGRES_DATABASE>"
}
}
}
}Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"database-mcp-postgres": {
"command": "npx",
"args": [
"-y",
"@database-mcp/postgres"
],
"env": {
"POSTGRES_HOST": "<YOUR_POSTGRES_HOST>",
"POSTGRES_USER": "<YOUR_POSTGRES_USER>",
"POSTGRES_PASSWORD": "<YOUR_POSTGRES_PASSWORD>",
"POSTGRES_DATABASE": "<YOUR_POSTGRES_DATABASE>"
}
}
}
}Windsurf
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"database-mcp-postgres": {
"command": "npx",
"args": [
"-y",
"@database-mcp/postgres"
],
"env": {
"POSTGRES_HOST": "<YOUR_POSTGRES_HOST>",
"POSTGRES_USER": "<YOUR_POSTGRES_USER>",
"POSTGRES_PASSWORD": "<YOUR_POSTGRES_PASSWORD>",
"POSTGRES_DATABASE": "<YOUR_POSTGRES_DATABASE>"
}
}
}
}VS Code
.vscode/mcp.json
{
"servers": {
"database-mcp-postgres": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@database-mcp/postgres"
],
"env": {
"POSTGRES_HOST": "<YOUR_POSTGRES_HOST>",
"POSTGRES_USER": "<YOUR_POSTGRES_USER>",
"POSTGRES_PASSWORD": "<YOUR_POSTGRES_PASSWORD>",
"POSTGRES_DATABASE": "<YOUR_POSTGRES_DATABASE>"
}
}
}
}Claude Code
claude mcp add database-mcp-postgres --env POSTGRES_HOST=<YOUR_POSTGRES_HOST> --env POSTGRES_USER=<YOUR_POSTGRES_USER> --env POSTGRES_PASSWORD=<YOUR_POSTGRES_PASSWORD> --env POSTGRES_DATABASE=<YOUR_POSTGRES_DATABASE> -- npx -y @database-mcp/postgresRelated MCP servers
MCP server for libSQL/Turso, local or remote. Read-only by default, row caps, timeouts.
5
View repository →Python
MIT
MCP server for MariaDB. Read-only by default, row caps, timeouts, secrets never logged.
5
View repository →Python
MIT
MCP server for MySQL. Read-only by default, row caps, statement timeouts, secrets never logged.
5
View repository →Python
MIT
MCP server for SQLite databases. Read-only by default, row caps, statement timeouts.
5
View repository →Python
MIT