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.

已驗證STDIO僅桌面資料庫雲端與基礎設施

概覽

AI 產生的概覽

本機 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 的網路。
安裝前請注意
預設啟用包含管理員在內的所有工具群組,助理可建立、更新與刪除資料表及項目;建議以 DYNAMODB_ENABLED_TOOL_GROUPS、DYNAMODB_ENABLED_TOOLS 或 DYNAMODB_DISABLED_TOOLS 加以限制。未設定 DYNAMODB_ALLOWED_TABLES 時所有資料表皆可存取。AWS_ACCESS_KEY_ID 與 AWS_SECRET_ACCESS_KEY 是存放在用戶端設定中的密鑰,應使用最小權限憑證。刪除資料表會清除其中所有資料。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Dynamodb,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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)

ToolDescription
list_tablesList all DynamoDB tables with pagination
describe_tableGet table metadata, schema, and indexes
get_itemRetrieve single item by primary key
query_itemsQuery items using key conditions
scan_tableScan table with optional filters
batch_get_itemsGet multiple items across tables

ReadWrite Tools (Group: readwrite)

ToolDescription
put_itemCreate or replace an item
update_itemUpdate specific attributes
delete_itemDelete item by primary key
batch_write_itemsBatch put/delete operations

Admin Tools (Group: admin)

ToolDescription
create_tableCreate a new table
delete_tableDelete a table and all data
update_tableUpdate table settings

Configuration

Environment Variables

VariableRequiredDescription
AWS_REGIONYesAWS region (or AWS_DEFAULT_REGION)
AWS_ACCESS_KEY_IDNoAWS access key (uses credential chain if not set)
AWS_SECRET_ACCESS_KEYNoAWS secret key (uses credential chain if not set)
DYNAMODB_ENDPOINTNoCustom endpoint (for local DynamoDB)
DYNAMODB_ENABLED_TOOL_GROUPSNoComma-separated groups: readonly, readwrite, admin
DYNAMODB_ENABLED_TOOLSNoWhitelist specific tools
DYNAMODB_DISABLED_TOOLSNoBlacklist specific tools
DYNAMODB_ALLOWED_TABLESNoRestrict 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_tables only 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, the limit applies 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

ResourceDescription
dynamodb://configServer configuration and tool group mappings

License

MIT

來源:experimental/dynamodb/README.md,提交 0ed34de

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.7最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分