fastmcp-sqltools
v0.4.3A MCP server provides SQL database access with support for PostgreSQL, MySQL, and SQLite.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_tables List Tables
List all tables in the specified schema.
| Parameter | Type | Description |
|---|---|---|
schema | Database schema name (default: None, uses default schema for the database) |
get_table_schema Get Table Schema
Get the schema (column definitions) for a specific table.
| Parameter | Type | Description |
|---|---|---|
table_name * | string | Name of the table |
schema | Database schema name (default: None, uses default schema for the database) |
execute_query Execute Query
Execute a SQL query and return results. WARNING: This can execute any SQL including DDL and DML statements.
| Parameter | Type | Description |
|---|---|---|
query * | string | SQL query to execute |
params | Optional list of query parameters for parameterized queries |
execute_safe_query Execute Safe Query
Execute a read-only SQL query (SELECT only). This is safer than execute_query as it prevents data modification.
| Parameter | Type | Description |
|---|---|---|
query * | string | SQL SELECT query to execute |
params | Optional list of query parameters for parameterized queries |