Connects to PostgreSQL, MySQL, or SQLite databases through a single DATABASE_URL environment variable and exposes four tools: list_tables for discovery, get_table_schema for inspecting columns and constraints, execute_query for writes and DDL, and execute_safe_query for read-only selects with safety guards. Built with FastMCP and async database drivers (asyncpg, aiomysql, aiosqlite). You'd reach for this when you want Claude to query and modify databases directly without writing custom scripts. The server auto-detects database type from your connection string, so switching between PostgreSQL for production and SQLite for local testing just means changing one environment variable.
mcp-name: io.github.atarkowska/fastmcp-sqltools
A Model Context Protocol (MCP) server built with FastMCP that provides SQL database access with support for PostgreSQL, MySQL, and SQLite.
The server automatically detects the database type from the DATABASE_URL environment variable.
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"sql-mcp-tools": {
"command": "uvx",
"args": [
"fastmcp-sqltools"
],
"env": {
"DATABASE_URL": "<your-database-url>"
}
}
}
}
The DATABASE_URL should be in one of the following formats:
postgresql://user:password@host:port/database or postgres://user:password@host:port/databasemysql://user:password@host:port/databasesqlite:///path/to/database.db (use three slashes for absolute path)This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See the LICENSE file for details.
hovecapital/read-only-local-postgres-mcp-server
cocaxcode/database-mcp
io.github.infoinlet-marketplace/mcp-mysql
io.github.cybeleri/database-admin
io.github.yash-0620/postgres-mcp-secured