awslabs.aurora-dsql-mcp-server
v1.1.6An 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…
| Parameter | Type | Description |
|---|---|---|
sql * | string | The SQL query to run |
params | Optional 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…
| Parameter | Type | Description |
|---|---|---|
sql_list * | array | List of one or more SQL statements to execute in a transaction |
params_list | Optional 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
| Parameter | Type | Description |
|---|---|---|
table_name * | string | name of the table |
dsql_search_documentation
Search Aurora DSQL documentation
| Parameter | Type | Description |
|---|---|---|
search_phrase * | string | Search phrase to use |
limit | Maximum number of results to return |
dsql_read_documentation
Read specific DSQL documentation pages
| Parameter | Type | Description |
|---|---|---|
url * | string | Specific url to read |
max_length | Maximum number of characters to return | |
start_index | Starting character index |
dsql_recommend
Get recommendations for DSQL best practices
| Parameter | Type | Description |
|---|---|---|
url * | string | URL 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…
| Parameter | Type | Description |
|---|---|---|
sql * | string | SQL string to validate for DSQL compatibility |
fix | boolean | When true, returns DSQL-compatible fixed SQL in addition to diagnostics |