src/aurora-dsql-mcp-server/skills/amazon-aurora-dsql-skill/SKILL.md
Build with Aurora DSQL - manage schemas, execute queries, and handle migrations with DSQL-specific requirements. Use when developing a scalable or distributed database/application or user requests DSQL.
npx skillsauth add awslabs/mcp amazon aurora dsqlInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Aurora DSQL is a serverless, PostgreSQL-compatible distributed SQL database. This skill provides direct database interaction via MCP tools, schema management, migration support, and multi-tenant patterns.
Key capabilities:
Load these files as needed for detailed guidance:
When: ALWAYS load before implementing schema changes or database operations Contains: DDL rules, connection patterns, transaction limits, security best practices
When: Always load for guidance using or updating the DSQL MCP server Contains: Instructions for setting up the DSQL MCP server with 2 configuration options as sampled in .mcp.json
When: Load when you need detailed MCP tool syntax and examples Contains: Tool parameters, detailed examples, usage patterns
When: MUST load when making language-specific implementation choices Contains: Driver selection, framework patterns, connection code for Python/JS/Go/Java/Rust
When: Load when looking for specific implementation examples Contains: Code examples, repository patterns, multi-tenant implementations
When: Load when debugging errors or unexpected behavior Contains: Common pitfalls, error messages, solutions
When: User explicitly requests to "Get started with DSQL" or similar phrase Contains: Interactive step-by-step guide for new users
When: MUST load when creating database roles, granting permissions, setting up schemas for applications, or handling sensitive data Contains: Scoped role setup, IAM-to-database role mapping, schema separation for sensitive data, role design patterns
When: MUST load when trying to perform DROP COLUMN, RENAME COLUMN, ALTER COLUMN TYPE, or DROP CONSTRAINT functionality Contains: Table recreation patterns, batched migration for large tables, data validation
When: MUST load when migrating from MySQL to DSQL or translating MySQL DDL to DSQL-compatible equivalents Contains: MySQL data type mappings, DDL operation translations, AUTO_INCREMENT/ENUM/SET/FOREIGN KEY migration patterns, ALTER TABLE ALTER COLUMN and DROP COLUMN via table recreation
The aurora-dsql MCP server provides these tools:
Database Operations:
Documentation & Knowledge: 4. dsql_search_documentation - Search Aurora DSQL documentation 5. dsql_read_documentation - Read specific documentation pages 6. dsql_recommend - Get DSQL best practice recommendations
Note: There is no list_tables tool. Use readonly_query with information_schema.
See mcp-setup.md for detailed setup instructions. See mcp-tools.md for detailed usage and examples.
Bash scripts for cluster management and direct psql connections. All scripts are located in scripts/.
Cluster Management:
Database Connection:
Quick example:
./scripts/create-cluster.sh --region us-east-1
export CLUSTER=abc123def456
./scripts/psql-connect.sh
See scripts/README.md for detailed usage.
Use readonly_query with information_schema to list tables
Use get_schema to understand table structure
Use readonly_query for SELECT queries
Always include tenant_id in WHERE clause for multi-tenant apps
Validate inputs carefully (no parameterized queries available)
Use transact tool with list of SQL statements
Follow one-DDL-per-transaction rule
Always use CREATE INDEX ASYNC in separate transaction
Goal: Create a new table with proper tenant isolation
Steps:
Critical rules:
transact(["CREATE TABLE ..."])Goal: Add a new column with defaults safely
Steps:
transact(["ALTER TABLE ... ADD COLUMN ..."])Critical rules:
Goal: Safely insert/delete records with parent-child relationships
Steps for INSERT:
Steps for DELETE:
Goal: Retrieve data scoped to a specific tenant
Steps:
Critical rules:
Goal: Create application-specific database roles instead of using the admin role
MUST load access-control.md for detailed guidance.
Steps:
admin (the only time admin should be used)CREATE ROLE <name> WITH LOGINdsql:DbConnect for each database roleAWS IAM GRANTusers_schema)generate-db-connect-auth-token (not the admin variant)Critical rules:
publicdsql:DbConnect for application IAM rolesGoal: Perform DROP COLUMN, RENAME COLUMN, ALTER COLUMN TYPE, or DROP CONSTRAINT using the table recreation pattern.
MUST load ddl-migrations.md for detailed guidance.
Steps:
readonly_queryget_schematransactCREATE INDEX ASYNCRules:
Goal: Migrate MySQL table schemas and DDL operations to DSQL-compatible equivalents, including data type mapping, ALTER TABLE ALTER COLUMN, and DROP COLUMN operations.
MUST load mysql-to-dsql-migrations.md for detailed guidance.
Steps:
ALTER TABLE ... ALTER COLUMN col datatype or MODIFY COLUMN: MUST use table recreation patternALTER TABLE ... DROP COLUMN col: MUST use table recreation patternCREATE INDEX ASYNC in separate transactionsRules:
CREATE INDEX ASYNC is mandatorydsql:DbConnect; refer to Access Controltools
Investigate Bedrock AgentCore runtime sessions via CloudWatch Logs Insights — resolve session/trace IDs, query OTEL spans, filter noise, build timelines. Use when debugging AgentCore agent sessions, tracing tool calls, or analyzing latency.
development
Build with Aurora DSQL - manage schemas, execute queries, and handle migrations with DSQL-specific requirements. Use when developing a scalable or distributed database/application or user requests DSQL.
development
Build with Aurora DSQL - manage schemas, execute queries, and handle migrations with DSQL-specific requirements. Use when developing a scalable or distributed database/application or user requests DSQL.
development
Build with Aurora DSQL - manage schemas, execute queries, and handle migrations with DSQL-specific requirements. Use when developing a scalable or distributed database/application or user requests DSQL.