
Dynamodb
com.pulsemcp由 pulsemcp.com 发布v0.2.7更新于 Oct 24, 2026
MCP server for AWS DynamoDB with fine-grained tool control and configurable access levels.
概览
本地 MCP 服务器,让助手查看和修改 AWS DynamoDB 的表、条目与查询,并可配置只读、读写或管理员权限。
- 可以做什么
- 列出、描述和扫描表,按主键读取单条、按键条件查询以及跨表批量读取(只读组)。创建或替换、更新、删除条目,以及批量写入和删除(读写组)。创建、更新和删除表(管理员组)。以资源形式提供服务器配置和工具组映射。通过环境变量限制可用的工具和可访问的表。
- 适用场景
- 适合需要助手直接操作 DynamoDB 数据的场景,例如查看表结构、执行查询或进行受控的条目与表变更,并希望将其限制为只读或限定表范围。也适合针对本地 DynamoDB 或 LocalStack 的开发调试。
- 运行要求
- 通过 npx 在本地运行(需要 Node.js)。需要 AWS_REGION(或 AWS_DEFAULT_REGION);若使用 AWS 凭证链,AWS_ACCESS_KEY_ID 和 AWS_SECRET_ACCESS_KEY 可省略。DYNAMODB_ENDPOINT 可指向本地 DynamoDB 或 LocalStack。未使用本地端点时需要访问 AWS 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Dynamodb,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
DynamoDB MCP Server
An MCP server for AWS DynamoDB with fine-grained tool control. Provides comprehensive DynamoDB operations with configurable access levels.
Features
- Complete DynamoDB Operations: Tables, items, queries, scans, and batch operations
- Fine-grained Access Control: Enable/disable tools by group or individually
- Table-level Access Control: Restrict operations to specific tables
- AWS Credential Support: Works with explicit credentials or AWS credential chain
- Custom Endpoints: Support for local DynamoDB or LocalStack
Available Tools
Tool names are kept short since MCP clients typically prefix them with the server name (e.g., dynamodb:list_tables).
Readonly Tools (Group: readonly)
| Tool | Description |
|---|---|
list_tables | List all DynamoDB tables with pagination |
describe_table | Get table metadata, schema, and indexes |
get_item | Retrieve single item by primary key |
query_items | Query items using key conditions |
scan_table | Scan table with optional filters |
batch_get_items | Get multiple items across tables |
ReadWrite Tools (Group: readwrite)
| Tool | Description |
|---|---|
put_item | Create or replace an item |
update_item | Update specific attributes |
delete_item | Delete item by primary key |
batch_write_items | Batch put/delete operations |
Admin Tools (Group: admin)
| Tool | Description |
|---|---|
create_table | Create a new table |
delete_table | Delete a table and all data |
update_table | Update table settings |
Configuration
Environment Variables
| Variable | Required | Description |
|---|---|---|
AWS_REGION | Yes | AWS region (or AWS_DEFAULT_REGION) |
AWS_ACCESS_KEY_ID | No | AWS access key (uses credential chain if not set) |
AWS_SECRET_ACCESS_KEY | No | AWS secret key (uses credential chain if not set) |
DYNAMODB_ENDPOINT | No | Custom endpoint (for local DynamoDB) |
DYNAMODB_ENABLED_TOOL_GROUPS | No | Comma-separated groups: readonly, readwrite, admin |
DYNAMODB_ENABLED_TOOLS | No | Whitelist specific tools |
DYNAMODB_DISABLED_TOOLS | No | Blacklist specific tools |
DYNAMODB_ALLOWED_TABLES | No | Restrict operations to specific tables (comma-separated) |
Tool Access Control
Control which tools are available using three methods:
1. Tool Groups (recommended for most cases):
# Read-only access
DYNAMODB_ENABLED_TOOL_GROUPS="readonly"
# Read and write, no table management
DYNAMODB_ENABLED_TOOL_GROUPS="readonly,readwrite"
# All operations (default)
DYNAMODB_ENABLED_TOOL_GROUPS="readonly,readwrite,admin"
2. Whitelist Specific Tools:
# Only allow specific operations
DYNAMODB_ENABLED_TOOLS="get_item,query_items,scan_table"
3. Blacklist Specific Tools:
# Enable all except dangerous operations
DYNAMODB_DISABLED_TOOLS="delete_table,create_table"
Priority: DYNAMODB_ENABLED_TOOLS > DYNAMODB_DISABLED_TOOLS > DYNAMODB_ENABLED_TOOL_GROUPS
Table-level Access Control
Restrict all operations to specific tables only:
# Only allow access to Users and Orders tables
DYNAMODB_ALLOWED_TABLES="Users,Orders"
When DYNAMODB_ALLOWED_TABLES is set:
list_tablesonly returns tables in the allowed list- Operations on non-allowed tables return an "Access denied" error
- Batch operations fail if any table in the request is not allowed
- Table names are matched case-sensitively (DynamoDB table names are case-sensitive)
- When using pagination with
list_tables, thelimitapplies before filtering
Note: If not set or set to an empty string, all tables are accessible (no filtering).
This is useful for:
- Multi-tenant environments where each client should only access their tables
- Development environments where you want to protect production tables
- Limiting the blast radius of AI agents to specific tables
Claude Desktop Configuration
Add to your claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"dynamodb": {
"command": "npx",
"args": ["-y", "aws-dynamodb-mcp-server"],
"env": {
"AWS_REGION": "us-east-1",
"AWS_ACCESS_KEY_ID": "your-access-key",
"AWS_SECRET_ACCESS_KEY": "your-secret-key",
"DYNAMODB_ENABLED_TOOL_GROUPS": "readonly,readwrite"
}
}
}
}
Using Local DynamoDB
For development with local DynamoDB or LocalStack:
{
"mcpServers": {
"dynamodb-local": {
"command": "npx",
"args": ["-y", "aws-dynamodb-mcp-server"],
"env": {
"AWS_REGION": "us-east-1",
"AWS_ACCESS_KEY_ID": "local",
"AWS_SECRET_ACCESS_KEY": "local",
"DYNAMODB_ENDPOINT": "http://localhost:8000"
}
}
}
}
Examples
Query Items
Query all orders for customer "C123" from the last 30 days:
- Table: Orders
- Key condition: customerId = :cid AND orderDate > :date
- Values: {":cid": "C123", ":date": "2025-01-01"}
Create Table
Create a Users table with:
- Partition key: userId (String)
- Billing: Pay per request
Batch Operations
Get user profiles for IDs: user1, user2, user3 from the Users table
Development
Setup
cd experimental/dynamodb
npm run install-all
npm run build
Testing
# Unit tests
npm run test:run
# Integration tests
npm run test:integration
# Manual tests (requires AWS credentials)
npm run test:manual
Resources
| Resource | Description |
|---|---|
dynamodb://config | Server configuration and tool group mappings |
License
MIT
来源:experimental/dynamodb/README.md,提交 0ed34de
工具
0版本历史
1- v0.2.7最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分