ddb-explorer-mcp
v0.1.1Read-only Model Context Protocol (MCP) server for Amazon DynamoDB — safe exploration, querying, and schema discovery.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_tables
List DynamoDB tables in the configured region. Args: name_contains: Optional case-insensitive substring filter (e.g. "orders" matches "dev-orders-oc").
| Parameter | Type | Description |
|---|---|---|
name_contains | string |
describe_table
Describe a table: key schema, attribute types, GSIs, LSIs, item count, size. NOTE: DynamoDB only declares attributes that are used as keys or index keys in `attribute_definitions`. Non-key attributes are schemaless — use `sample_items` to discover the full shape of items.
| Parameter | Type | Description |
|---|---|---|
table_name * | string |
get_indexes
Trimmed view of only the GSIs and LSIs on a table (keys + projection).
| Parameter | Type | Description |
|---|---|---|
table_name * | string |
sample_items
Fetch a few items via a small scan to discover the attribute shape. Useful because DynamoDB is schemaless and `describe_table` only reveals key attributes. Capped at n={SAMPLE_MAX_N} (env: DDB_SAMPLE_MAX_N).
| Parameter | Type | Description |
|---|---|---|
table_name * | string | |
n | integer |
get_item
Fetch a single item by primary key. Args: table_name: Exact table name (run `list_tables` first if unsure). key: Primary key dict. Partition-only: {"order_id": "abc"}. Composite: {"pk": "USER#1", "sk": "ORDER#2"}. consistent_read: Use strongly-consistent read. Default eventual.
| Parameter | Type | Description |
|---|---|---|
key * | object | |
table_name * | string | |
consistent_read | boolean |
batch_get_item
Fetch multiple items by primary key. Automatically chunks into {BATCH_CHUNK_SIZE}s (env: DDB_BATCH_CHUNK_SIZE) and retries any UnprocessedKeys (up to {BATCH_MAX_RETRIES} retries, env: DDB_BATCH_MAX_RETRIES).
| Parameter | Type | Description |
|---|---|---|
keys * | array | |
table_name * | string | |
consistent_read | boolean |
query
Query a table or a GSI/LSI using DynamoDB expression syntax. Example: key_condition_expression = "#pk = :pk AND begins_with(#sk, :sk)" expression_attribute_names = {"#pk": "user_id", "#sk": "order_id"} expression_attribute_values = {":pk": "U123", ":sk": "ORD#"} index_name = "by_user_id" # querying a GSI instead of the base table Pagination: if response includes `last_evaluated_key`, pass it back as `exclusive_start_key` to get the next page. Limits: `limit` is capped at {QUERY_MAX_LIMIT} (env: DDB_QUERY_MAX_LIMIT); default {QUERY_DEFAU…
| Parameter | Type | Description |
|---|---|---|
expression_attribute_values * | object | |
key_condition_expression * | string | |
table_name * | string | |
exclusive_start_key | ||
expression_attribute_names | ||
filter_expression | ||
index_name | ||
limit | integer | |
projection_expression | ||
scan_index_forward | boolean |
scan
Scan a table or index. Prefer `query` when you can — scans read every item. Safety: default max_pages={SCAN_DEFAULT_MAX_PAGES} (env: DDB_SCAN_DEFAULT_MAX_PAGES) to prevent accidentally walking huge tables. Hard caps: max_pages<={SCAN_MAX_PAGES} (env: DDB_SCAN_MAX_PAGES), limit<={SCAN_MAX_LIMIT} (env: DDB_SCAN_MAX_LIMIT). Pagination: pass returned `last_evaluated_key` back as `exclusive_start_key`.
| Parameter | Type | Description |
|---|---|---|
table_name * | string | |
exclusive_start_key | ||
expression_attribute_names | ||
expression_attribute_values | ||
filter_expression | ||
index_name | ||
limit | integer | |
max_pages | integer | |
projection_expression |