db-gateway MCP
A community MCP server providing 145+ tools for AI agents to query and operate across 8 database engines including MySQL, PostgreSQL, Redshift, MongoDB, Redis, DynamoDB, Elasticsearch, and Kafka. It allows agents to read schemas, find relationships, and execute queries using a unified configuration style.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Read database schemas and table relationships
- Execute SQL queries across multiple database engines
- Connect to NoSQL databases like MongoDB and Redis
- Query streaming data via Kafka
Source and maintenance
- Last repository push
- Latest release
- v1.0.4
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
db-gateway 1.0.4
{
"version": "1.0.4",
"transport": "stdio",
"identifier": "db-gateway",
"registryType": "npm",
"environmentVariables": [
{
"name": "DBS",
"format": "string",
"isRequired": true,
"description": "Engines to enable, comma-separated. Only the listed engines get their tools registered. Example: mysql,redis,kafka"
},
{
"name": "READ_ONLY",
"format": "string",
"description": "Set to true to hide every write tool and restrict *_execute_query to SELECT-style statements. Recommended when pointing at production."
},
{
"name": "MYSQL",
"format": "string",
"description": "MySQL connection string(s), semicolon-separated for multiple instances. Format: mysql://<user>:<password>@<host>:3306/<database>?alias=dev&default=true — alias is required."
},
{
"name": "POSTGRESQL",
"format": "string",
"description": "PostgreSQL connection string(s), semicolon-separated. Format: postgresql://<user>:<password>@<host>:5432/<database>?alias=dev&ssl=true — alias is required."
},
{
"name": "REDSHIFT",
"format": "string",
"description": "Redshift connection string(s), semicolon-separated. Format: redshift://<user>:<password>@<host>:5439/<database>?alias=dev&ssl=true — alias is required."
},
{
"name": "MONGODB",
"format": "string",
"description": "MongoDB connection string(s), semicolon-separated. Format: mongodb://<user>:<password>@<host>:27017/<database>?alias=dev — alias is required."
},
{
"name": "REDIS",
"format": "string",
"description": "Redis connection string(s), semicolon-separated. Format: redis://:<password>@<host>:6379/0?alias=dev — leave the password empty for a no-auth instance. alias is required."
},
{
"name": "ELASTICSEARCH",
"format": "string",
"description": "Elasticsearch connection string(s), semicolon-separated. Format: elasticsearch://<user>:<password>@<host>:9200?alias=dev, or http(s)://<host>:9200?alias=dev for no auth. alias is required."
},
{
"name": "KAFKA",
"format": "string",
"description": "Kafka connection string(s), semicolon-separated. Format: kafka://<user>:<password>@<broker1>:9092,<broker2>:9092?alias=dev&mechanism=plain — alias is required."
},
{
"name": "DYNAMODB_REGION",
"format": "string",
"description": "AWS region for DynamoDB. DynamoDB is configured with discrete variables instead of a connection string."
},
{
"name": "DYNAMODB_ACCESS_KEY_ID",
"format": "string",
"description": "AWS access key ID for DynamoDB."
},
{
"name": "DYNAMODB_SECRET_ACCESS_KEY",
"format": "string",
"description": "AWS secret access key for DynamoDB."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · repository · passed · metadata changed · updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"db-gateway-mcp": {
"command": "npx",
"args": [
"-y",
"db-gateway@1.0.4"
],
"env": {
"DBS": "<YOUR_DBS>",
"READ_ONLY": "<YOUR_READ_ONLY>",
"MYSQL": "<YOUR_MYSQL>",
"POSTGRESQL": "<YOUR_POSTGRESQL>",
"REDSHIFT": "<YOUR_REDSHIFT>",
"MONGODB": "<YOUR_MONGODB>",
"REDIS": "<YOUR_REDIS>",
"ELASTICSEARCH": "<YOUR_ELASTICSEARCH>",
"KAFKA": "<YOUR_KAFKA>",
"DYNAMODB_REGION": "<YOUR_DYNAMODB_REGION>",
"DYNAMODB_ACCESS_KEY_ID": "<YOUR_DYNAMODB_ACCESS_KEY_ID>",
"DYNAMODB_SECRET_ACCESS_KEY": "<YOUR_DYNAMODB_SECRET_ACCESS_KEY>"
}
}
}
}Cline
{
"mcpServers": {
"db-gateway-mcp": {
"command": "npx",
"args": [
"-y",
"db-gateway@1.0.4"
],
"env": {
"DBS": "<YOUR_DBS>",
"READ_ONLY": "<YOUR_READ_ONLY>",
"MYSQL": "<YOUR_MYSQL>",
"POSTGRESQL": "<YOUR_POSTGRESQL>",
"REDSHIFT": "<YOUR_REDSHIFT>",
"MONGODB": "<YOUR_MONGODB>",
"REDIS": "<YOUR_REDIS>",
"ELASTICSEARCH": "<YOUR_ELASTICSEARCH>",
"KAFKA": "<YOUR_KAFKA>",
"DYNAMODB_REGION": "<YOUR_DYNAMODB_REGION>",
"DYNAMODB_ACCESS_KEY_ID": "<YOUR_DYNAMODB_ACCESS_KEY_ID>",
"DYNAMODB_SECRET_ACCESS_KEY": "<YOUR_DYNAMODB_SECRET_ACCESS_KEY>"
}
}
}
}VS Code
{
"servers": {
"db-gateway-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"db-gateway@1.0.4"
],
"env": {
"DBS": "<YOUR_DBS>",
"READ_ONLY": "<YOUR_READ_ONLY>",
"MYSQL": "<YOUR_MYSQL>",
"POSTGRESQL": "<YOUR_POSTGRESQL>",
"REDSHIFT": "<YOUR_REDSHIFT>",
"MONGODB": "<YOUR_MONGODB>",
"REDIS": "<YOUR_REDIS>",
"ELASTICSEARCH": "<YOUR_ELASTICSEARCH>",
"KAFKA": "<YOUR_KAFKA>",
"DYNAMODB_REGION": "<YOUR_DYNAMODB_REGION>",
"DYNAMODB_ACCESS_KEY_ID": "<YOUR_DYNAMODB_ACCESS_KEY_ID>",
"DYNAMODB_SECRET_ACCESS_KEY": "<YOUR_DYNAMODB_SECRET_ACCESS_KEY>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"db-gateway-mcp": {
"command": "npx",
"args": [
"-y",
"db-gateway@1.0.4"
],
"env": {
"DBS": "<YOUR_DBS>",
"READ_ONLY": "<YOUR_READ_ONLY>",
"MYSQL": "<YOUR_MYSQL>",
"POSTGRESQL": "<YOUR_POSTGRESQL>",
"REDSHIFT": "<YOUR_REDSHIFT>",
"MONGODB": "<YOUR_MONGODB>",
"REDIS": "<YOUR_REDIS>",
"ELASTICSEARCH": "<YOUR_ELASTICSEARCH>",
"KAFKA": "<YOUR_KAFKA>",
"DYNAMODB_REGION": "<YOUR_DYNAMODB_REGION>",
"DYNAMODB_ACCESS_KEY_ID": "<YOUR_DYNAMODB_ACCESS_KEY_ID>",
"DYNAMODB_SECRET_ACCESS_KEY": "<YOUR_DYNAMODB_SECRET_ACCESS_KEY>"
}
}
}
}Let your agent find its tools
Find servers like db-gateway MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.