Database MCP Server
Overview
Database MCP Server is a Model Context Protocol (MCP) server that provides tools for connecting to and interacting with various database systems.
To use the Database MCP Server, install the required Python packages, configure your database connections, and run the server using Python commands.
- Multi-Database Support: Connect to SQLite, PostgreSQL, MySQL/MariaDB, and SQL Server databases. - Unified Interface: Common tools for database operations across all supported database types. - Database-Specific Extensions: Specific tools for database-specific features. - Schema Management: Create, alter, and drop tables and indexes. - Query Execution: Execute raw SQL queries or use structured query tools. - Transaction Support: Begin, commit, and rollback transactions.
- Managing multiple database connections in a unified manner.
- Executing SQL queries across different database systems.
- Performing schema management tasks like creating and altering tables.
Add to your AI client
Use these steps to connect Database MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"database-mcp-server-georgi-terziyski": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-database-mcp-server-georgi-terziyski"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"database-mcp-server-georgi-terziyski": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-database-mcp-server-georgi-terziyski"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"database-mcp-server-georgi-terziyski": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-database-mcp-server-georgi-terziyski"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"database-mcp-server-georgi-terziyski": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-database-mcp-server-georgi-terziyski"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"database-mcp-server-georgi-terziyski": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-database-mcp-server-georgi-terziyski"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"database-mcp-server-georgi-terziyski": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-database-mcp-server-georgi-terziyski"
]
}
}
}FAQ
What databases does the MCP Server support?
It supports SQLite, PostgreSQL, MySQL/MariaDB, and SQL Server.
How do I install the Database MCP Server?
You can install it by cloning the repository and using pip to install the required packages.
Can I run the server as a web server?
Yes! You can run it as a standalone web server for any LLM.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3290,"uuid":"c88931ca-883a-4c78-a987-07d1fd28eb95","name":"database_mcp_server","title":"Database MCP Server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/158063993?v=4","created_at":"2025-03-18T15:01:41.211Z","updated_at":"2025-03-18T15:03:25.875Z","status":"created","author_name":"georgi-terziyski","author_avatar_url":"https://avatars.githubusercontent.com/u/158063993?v=4","tags":"database,mcp,server","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/georgi-terziyski/database_mcp_server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-18 15:31:27\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]