awslabs.aurora-dsql-mcp-server

v1.1.6
awslabs.aurora-dsql-mcp-server Checked 1 day ago Published 15 days ago

An AWS Labs Model Context Protocol (MCP) server for Aurora DSQL

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

readonly_query

Run a read-only SQL query against the configured Aurora DSQL cluster. Aurora DSQL is distributed SQL database with Postgres compatibility. The following table summarizes `SELECT` functionality that is expected to work. Items not in this table may also be supported, as this is a point in time snapshot. | Primary clause | Supported clauses | |---------------------------------|-----------------------| | FROM | | | GROUP BY | ALL, DISTINCT | | ORDER BY | ASC, DESC, NULLS…

ParameterTypeDescription
sql *stringThe SQL query to run
paramsOptional list of parameter values to bind. Use %s placeholders in the SQL string (e.g. "SELECT * FROM t WHERE id = %s", params=["abc"]). When provided, values are bound by the database driver and neve…

transact

Execute SQL statements in a transaction against the configured Aurora DSQL cluster. Aurora DSQL is a distributed SQL database with Postgres compatibility. This tool will automatically insert `BEGIN` and `COMMIT` statements; you only need to provide the statements to run within the transaction scope. ## Behavior by Mode **READ-ONLY MODE:** - Use this tool for read operations that require transactional consistency (point-in-time snapshots) - Multiple SELECT queries will see data as it existed at transaction start time - All statements are validated before execution - NO write operations allow…

ParameterTypeDescription
sql_list *arrayList of one or more SQL statements to execute in a transaction
params_listOptional list of parameter lists, one per SQL statement. Use %s placeholders in the SQL strings. When provided, must be the same length as sql_list. An entry of null means no params for that statement…

get_schema

Get the schema of the given table

ParameterTypeDescription
table_name *stringname of the table

dsql_search_documentation

Search Aurora DSQL documentation

ParameterTypeDescription
search_phrase *stringSearch phrase to use
limitMaximum number of results to return

dsql_read_documentation

Read specific DSQL documentation pages

ParameterTypeDescription
url *stringSpecific url to read
max_lengthMaximum number of characters to return
start_indexStarting character index

dsql_recommend

Get recommendations for DSQL best practices

ParameterTypeDescription
url *stringURL of the documentation page to get recommendations for

dsql_lint

Validate SQL for Aurora DSQL compatibility and optionally auto-fix issues. Parses SQL and reports compatibility errors (unsupported syntax) with suggested fixes. Use fix=True to generate DSQL-compatible SQL automatically. ## When to Use - Before executing any externally-sourced SQL (ORM migrations, pg_dump, hand-written DDL) - When migrating schemas from PostgreSQL, MySQL, or other databases to DSQL - To validate CREATE TABLE, ALTER TABLE, CREATE INDEX, and other DDL statements - To check transaction structure (DSQL requires one DDL per transaction) ## Fix Behavior When fix=True, each diagn…

ParameterTypeDescription
sql *stringSQL string to validate for DSQL compatibility
fixbooleanWhen true, returns DSQL-compatible fixed SQL in addition to diagnostics