ID

imankamyabi/dynamodb-mcp-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

17 stars 7 forks 품질 65 트렌드 21MIT

Model Context Protocol server for managing Amazon DynamoDB resources

개요

A Model Context Protocol server for managing Amazon DynamoDB resources. This server provides tools for table management, capacity management, and data operations. - Create new DynamoDB tables with customizable configurations - List existing tables - Get detailed table information - Configure table settings - Create and manage Global Secondary Indexes (GSI) - Update GSI capacity - Create Local Secondary Indexes (LSI) - Update provisioned read/write capacity units - Manage table throughput settings - Insert or replace items in tables - Retrieve items by primary key - Update specific item attributes - Query tables with conditions - Scan tables with filters : Delete operations are not supported to prevent accidental data loss. 2. Configure AWS credentials as environment variables: Creates a new DynamoDB table with specified configuration.

README

원문 README의 일부입니다. 원문 보기.

DynamoDB MCP Server

A Model Context Protocol server for managing Amazon DynamoDB resources. This server provides tools for table management, capacity management, and data operations.

Author

Iman Kamyabi ([email protected])

Features

Table Management

  • Create new DynamoDB tables with customizable configurations
  • List existing tables
  • Get detailed table information
  • Configure table settings

Index Management

  • Create and manage Global Secondary Indexes (GSI)
  • Update GSI capacity
  • Create Local Secondary Indexes (LSI)

Capacity Management

  • Update provisioned read/write capacity units
  • Manage table throughput settings

Data Operations

  • Insert or replace items in tables
  • Retrieve items by primary key
  • Update specific item attributes
  • Query tables with conditions
  • Scan tables with filters

Note: Delete operations are not supported to prevent accidental data loss.

Setup

  1. Install dependencies:
npm install
  1. Configure AWS credentials as environment variables:
export AWS_ACCESS_KEY_ID="your_access_key"
export AWS_SECRET_ACCESS_KEY="your_secret_key"
export AWS_REGION="your_region"
  1. Build the server:
npm run build
  1. Start the server:
npm start

Tools

create_table

Creates a new DynamoDB table with specified configuration.

Parameters:

  • tableName: Name of the table to create
  • partitionKey: Name of the partition key
  • partitionKeyType: Type of partition key (S=String, N=Number, B=Binary)
  • sortKey: (Optional) Name of the sort key
  • sortKeyType: (Optional) Type of sort key
  • readCapacity: Provisioned read capacity units
  • writeCapacity: Provisioned write capacity units

Example:

{
  "tableName": "Users",
  "partitionKey": "userId",
  "partitionKeyType": "S",
  "readCapacity": 5,
  "writeCapacity": 5
}

list_tables

Lists all DynamoDB tables in the account.

Parameters:

  • limit: (Optional) Maximum number of tables to return
  • exclusiveStartTableName: (Optional) Name of the table to start from for pagination

Example:

{
  "limit": 10
}

describe_table

Gets detailed information about a DynamoDB table.

Parameters:

  • tableName: Name of the table to describe

Example:

{
  "tableName": "Users"
}

create_gsi

Creates a global secondary index on a table.

Parameters:

  • tableName: Name of the table
  • indexName: Name of the new index
  • partitionKey: Partition key for the index
  • partitionKeyType: Type of partition key
  • sortKey: (Optional) Sort key for the index
  • sortKeyType: (Optional) Type of sort key
  • projectionType: Type of projection (ALL, KEYS_ONLY, INCLUDE)
  • nonKeyAttributes: (Optional) Non-key attributes to project
  • readCapacity: Provisioned read capacity units
  • writeCapacity: Provisioned write capacity units

Example:

{
  "tableName": "Users",
  "indexName": "EmailIndex",
  "partitionKey": "email",
GitHub에서 전체 README 보기

설치

docker run -i --rm -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_REGION -e AWS_SESSION_TOKEN mcp/dynamodb-mcp-server
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "dynamodb": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "AWS_ACCESS_KEY_ID", "-e", "AWS_SECRET_ACCESS_KEY", "-e", "AWS_REGION", "-e", "AWS_SESSION_TOKEN", "mcp/dynamodb-mcp-server" ], "env": { "AWS_ACCESS_KEY_ID": "your_access_key", "AWS_SECRET_ACCESS_KEY": "your_secret_key", "AWS_REGION": "your_region", "AWS_SESSION_TOKEN": "your_session_token" } } } }