fastmcp-sqltools gives an agent direct SQL database access โ listing tables, inspecting schemas, and executing queries โ across PostgreSQL, MySQL, and SQLite.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Fastmcp Sqltools.
list_tablesList all tables in the specified schema.
get_table_schemaGet the schema (column definitions) for a specific table.
execute_queryExecute a SQL query and return results. WARNING: This can execute any SQL including DDL and DML statements.
execute_safe_queryExecute a read-only SQL query (SELECT only). This is safer than execute_query as it prevents data modification.
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:
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.
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/fastmcp-sqltools)<a href="https://allmcps.com/mcp/fastmcp-sqltools"><img src="https://allmcps.com/api/badge/fastmcp-sqltools?style=directory" alt="Fastmcp Sqltools on AllMCPs" /></a>