Best for
- Developers who need to interact with multiple database types
- Claude users who want to operate databases using natural language
- Scenarios requiring quick data export or insight recording
This server provides a rich set of database operation tools, covering multiple database types with flexible configuration. However, users need to be cautious with write operations and credential security.
MCP Database Server is a Model Context Protocol (MCP) server that enables Claude to interact with various relational databases through a set of tools. It supports SQLite, SQL Server, PostgreSQL, and MySQL. The server provides capabilities for executing queries, managing table schemas, exporting data, and recording business insights.
{
"mcpServers": {
"sqlite": {
"command": "npx",
"args": [
"-y",
"@executeautomation/database-server",
"/path/to/your/database.db"
]
},
"sqlserver": {
"command": "npx",
"args": [
"-y",
"@executeautomation/database-server",
"--sqlserver",
"--server",
"your-server-name",
"--database",
"your-database-name",
"--user",
"your-username",
"--password",
"your-password"
]
},
"postgresql": {
"command": "npx",
"args": [
"-y",
"@executeautomation/database-server",
"--postgresql",
"--host",
"your-host-name",
"--database",
"your-database-name",
"--user",
"your-username",
"--password",
"your-password"
]
},
"mysql": {
"command": "npx",
"args": [
"-y",
"@executeautomation/database-server",
"--mysql",
"--host",
"your-host-name",
"--database",
"your-database-name",
"--port",
"3306",
"--user",
"your-username",
"--password",
"your-password"
]
},
"mysql-aws": {
"command": "npx",
"args": [
"-y",
"@executeautomation/database-server",
"--mysql",
"--aws-iam-auth",
"--host",
"your-rds-endpoint.region.rds.amazonaws.com",
"--database",
"your-database-name",
"--user",
"your-aws-username",
"--aws-region",
"us-east-1"
]
}
}
}