
imankamyabi/dynamodb-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Amazon DynamoDB リソースを管理するモデルコンテキスト プロトコル サーバー
概要
Amazon DynamoDB リソースを管理するモデルコンテキストプロトコルサーバー。 テーブル管理、キャパシティ管理、データ操作のためのツールを提供しています。 - カスタマイズ可能な設定で新しい DynamoDB 表を作成する - 既存の表を一覧表示 - 詳細な表情報を取得する - 設定表の設定 - グローバル二次インデックス(GSI)の作成と管理 - GSI容量の更新 - ローカル二次インデックス(LSI)の作成 - 暫定読み取り/書き込み容量ユニットを更新 - テーブルのスループット設定を管理 - アイテムをテーブルにインサートまたは交換 - プライマリキーによるアイテムの取得 - 特定の項目の属性を更新 - 条件付きのクエリテーブル - フィルターでテーブルをスキャン : 誤ったデータの損失を防ぐため、削除操作はサポートされません。 2. AWS の認証情報を環境変数として構成します。 指定された設定で新しい DynamoDB テーブルを作成します.
概要(AI 翻訳)
Amazon DynamoDB リソースを管理するモデルコンテキストプロトコルサーバー。 テーブル管理、キャパシティ管理、データ操作のためのツールを提供しています。
著者
Iman kamyabi ([email protected]) からのツイート
##特徴
###表管理
- カスタマイズ可能な設定で新しい DynamoDB 表を作成
- 既存のテーブルのリスト
- 詳細なテーブル情報を取得する
- テーブルの設定
インデックス管理
- グローバル二次インデックスの作成と管理(GSI)
- GSIの容量を更新して下さい
- ローカル二次インデックスの作成(LSI)
容量管理
- 暫定読み取り/書き込み容量単位の更新
- テーブルのスループット設定の管理
データの操作
- アイテムをテーブルにインサートまたは交換する
- 主キーによるアイテムの取得
- 特定の項目属性を更新する
- 条件付きのクエリテーブル
- フィルター付きのテーブルをスキャン
**注記: 誤ったデータの損失を防ぐため、削除操作はサポートされていません。
セットアップ
-
依存関係を取付けて下さい:
-
AWS の認証情報を環境変数として構成します。
-
サーバの構築:
-
サーバーを始めて下さい:
ツール
create table ## ## ## create table ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
指定された設定で新しい DynamoDB テーブルを作成します。
パラメーター:
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
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
- Install dependencies:
npm install
- 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"
- Build the server:
npm run build
- Start the server:
npm start
Tools
create_table
Creates a new DynamoDB table with specified configuration.
Parameters:
tableName: Name of the table to createpartitionKey: Name of the partition keypartitionKeyType: Type of partition key (S=String, N=Number, B=Binary)sortKey: (Optional) Name of the sort keysortKeyType: (Optional) Type of sort keyreadCapacity: Provisioned read capacity unitswriteCapacity: 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 returnexclusiveStartTableName: (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 tableindexName: Name of the new indexpartitionKey: Partition key for the indexpartitionKeyType: Type of partition keysortKey: (Optional) Sort key for the indexsortKeyType: (Optional) Type of sort keyprojectionType: Type of projection (ALL, KEYS_ONLY, INCLUDE)nonKeyAttributes: (Optional) Non-key attributes to projectreadCapacity: Provisioned read capacity unitswriteCapacity: Provisioned write capacity units
Example:
{
"tableName": "Users",
"indexName": "EmailIndex",
"partitionKey": "email",
インストール
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設定
{
"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"
}
}
}
}