awslabs.dynamodb-mcp-server
v2.1.11The official MCP Server for interacting with AWS DynamoDB
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
dynamodb_data_modeling
Retrieves the complete DynamoDB Data Modeling Expert prompt. This tool returns a prompt to help user with data modeling on DynamoDB. The prompt guides through requirements gathering, access pattern analysis, and schema design. The prompt contains: - Structured 2-phase workflow (requirements → final design) - Enterprise design patterns: hot partition analysis, write sharding, sparse GSIs, and more - Cost optimization strategies and RPS-based capacity planning - Multi-table design philosophy with advanced denormalization patterns - Integration guidance for Ope…
dynamodb_data_model_schema_converter
Retrieves the DynamoDB Data Model Schema Converter Expert prompt. This tool returns a specialized prompt for converting DynamoDB data models (dynamodb_data_model.md) into schema.json - a structured JSON representation used for generating type-safe entities and repositories. By default, also includes instructions for generating usage_data.json with realistic sample data. The prompt guides through: - Reading and parsing dynamodb_data_model.md files - Converting table designs, GSIs, and access patterns into structured JSON format - Validating generated schemas using…
| Parameter | Type | Description |
|---|---|---|
generate_usage_data | boolean | Set to False if user only wants schema.json without usage examples/sample data. Set to True (default) to generate both schema.json and usage_data.json with realistic sample data for code generation |
dynamodb_data_model_schema_validator
Validates a schema.json file - the structured JSON representation of your DynamoDB data model. This tool validates that your schema.json file is properly formatted and contains all required fields for use with the repository generation tool and other automation tools. It provides detailed error messages with suggestions for fixing any issues found. Optionally, if usage_data_path is provided, it will also validate the usage_data.json file against the schema to ensure consistency. The validation checks: - Required sections (table_config, entities) exist - All r…
| Parameter | Type | Description |
|---|---|---|
schema_path * | string | Absolute path to the schema.json file to validate |
usage_data_path | Optional absolute path to the usage_data.json file to validate alongside the schema |
source_db_analyzer
Analyzes source database to extract schema and access patterns for DynamoDB modeling. WHEN TO USE: Call this tool when the user selects "Existing Database Analysis" option after invoking the `dynamodb_data_modeling` tool. This extracts schema and query patterns from an existing relational database to accelerate DynamoDB data model design. IMPORTANT: Always ask the user which execution mode they prefer before calling this tool. Execution Modes: - self_service: Generates SQL queries for user to run manually, then parses their results. - managed (MySQL only): Databa…
| Parameter | Type | Description |
|---|---|---|
output_dir * | string | Absolute path for output folder. Must exist and be writable. REQUIRED. |
source_db_type * | string | Database type: 'mysql', 'postgresql', 'sqlserver', or 'oracle' |
aws_cluster_arn | [managed/RDS Data API-based] Aurora cluster ARN. Use this OR hostname, not both. Env: MYSQL_CLUSTER_ARN. | |
aws_region | [managed] AWS region. REQUIRED. Env: AWS_REGION. | |
aws_secret_arn | [managed] Secrets Manager ARN for DB credentials. REQUIRED. Env: MYSQL_SECRET_ARN. | |
execution_mode | string | 'self_service': generates SQL for user to run, then parses results. 'managed' (MySQL only): RDS Data API-based access (aws_cluster_arn) or Connection-based access (hostname+port). |
hostname | [managed/connection-based] MySQL hostname. Use this OR aws_cluster_arn, not both. Env: MYSQL_HOSTNAME. | |
max_query_results | Max rows per query. Default: 500. Env: MYSQL_MAX_QUERY_RESULTS. | |
pattern_analysis_days | Days of query logs to analyze. Default: 30. | |
port | [managed/connection-based] MySQL port. Default: 3306. Env: MYSQL_PORT. | |
queries_file_path | [self_service] Output path for generated SQL queries (Step 1). | |
query_result_file_path | [self_service] Path to query results file for parsing (Step 2). | |
source_identifier | Identifier for the source to analyze. Accepts a database name (MySQL, PostgreSQL, SQL Server) or a schema/owner name (Oracle, where objects are scoped by schema rather than database). REQUIRED for sel… |
dynamodb_data_model_validation
Validates and tests DynamoDB data models against DynamoDB Local. Use this tool to validate, test, and verify your DynamoDB data model after completing the design phase. This tool automatically checks that all access patterns work correctly by executing them against a local DynamoDB instance. WHEN TO USE: - After completing data model design with dynamodb_data_modeling tool - When user asks to "validate", "test", "check", or "verify" their DynamoDB data model - To ensure all access patterns execute correctly before deploying to production WHAT IT DOES: 1.…
| Parameter | Type | Description |
|---|---|---|
workspace_dir * | string | Absolute path of the workspace directory |
compute_performances_and_costs
Calculate DynamoDB capacity units and monthly costs from access patterns. Call after completing data model design. Extracts patterns from Access Pattern Mapping table and tables from Table Designs section in dynamodb_data_model.md. Args: access_pattern_list: Access patterns with fields: - operation: GetItem|Query|Scan|PutItem|UpdateItem|DeleteItem|BatchGetItem|BatchWriteItem|TransactGetItems|TransactWriteItems - pattern, description, table, rps (>0), item_size_bytes (1-409600) - item_count: required for Query/Scan/Batch/Transact operati…
generate_resources
Generates resources from a DynamoDB data model JSON file (dynamodb_data_model.json). This tool generates various resources based on the provided `dynamodb_data_model.json` file. Currently supports generating a CDK app for deploying DynamoDB tables. Supported resource types: - cdk: CDK app for deploying DynamoDB tables. Generates a CDK app that provisions DynamoDB tables and GSIs as defined in `dynamodb_data_model.json`. WHEN TO USE: - After completing data model validation with `dynamodb_data_model_validation` tool - When user asks to "deploy", "create…
| Parameter | Type | Description |
|---|---|---|
dynamodb_data_model_json_file * | string | Absolute path to the dynamodb_data_model.json file. Resources will be generated in the same directory. |
resource_type * | string | Type of resource to generate: 'cdk' for CDK app |
generate_data_access_layer
Generate Python code for a data access layer to interact with your DynamoDB tables. 🔴 PREREQUISITE: Before calling this tool, you MUST first call `dynamodb_data_model_schema_converter` to generate schema.json from dynamodb_data_model.md. This tool ONLY accepts schema.json. TYPICAL WORKFLOW: 1. Complete data modeling with `dynamodb_data_modeling` tool (creates dynamodb_data_model.md) 2. Validate with `dynamodb_data_model_validation` tool (optional but recommended) 3. Optionally deploy infrastructure with `generate_resources` tool (resource_type='cdk') 4. Convert…
| Parameter | Type | Description |
|---|---|---|
schema_path * | string | Path to the schema JSON file |
generate_sample_usage | boolean | Generate usage examples and test cases |
language | string | Target programming language (python) |
usage_data_path | Path to usage_data.json file for realistic sample data (optional) |