fastmcp-sqltools

v0.4.3
io.github.atarkowska/fastmcp-sqltools Checked 7 hours ago Published 9 days ago

A 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.

ParameterTypeDescription
schemaDatabase 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.

ParameterTypeDescription
table_name *stringName of the table
schemaDatabase 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.

ParameterTypeDescription
query *stringSQL query to execute
paramsOptional 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.

ParameterTypeDescription
query *stringSQL SELECT query to execute
paramsOptional list of query parameters for parameterized queries