db gateway for Cursor
io.github.sijunkim/db-gateway
145+ tools across 8 databases: MySQL, PostgreSQL, Redshift, MongoDB, Redis, Kafka, and more
client:Cursor
transport:stdio
runtime:npm
Install db gateway in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"db-gateway": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"db-gateway"
],
"env": {
"DBS": "<DBS>",
"READ_ONLY": "<READ_ONLY>",
"MYSQL": "<MYSQL>",
"POSTGRESQL": "<POSTGRESQL>",
"REDSHIFT": "<REDSHIFT>",
"MONGODB": "<MONGODB>",
"REDIS": "<REDIS>",
"ELASTICSEARCH": "<ELASTICSEARCH>",
"KAFKA": "<KAFKA>",
"DYNAMODB_REGION": "<DYNAMODB_REGION>",
"DYNAMODB_ACCESS_KEY_ID": "<DYNAMODB_ACCESS_KEY_ID>",
"DYNAMODB_SECRET_ACCESS_KEY": "<DYNAMODB_SECRET_ACCESS_KEY>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs