JD

jjikky/dynamo-readonly-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

2 stars 6 forks 质量 64 趋势 8MIT

AWS DynamoDB Read-Only MCP Server

概览

A server that utilizes the Model Context Protocol (MCP) to query AWS DynamoDB databases. This server allows LLMs like Claude to query DynamoDB data through natural language requests. This MCP server provides the following features: - : - list-tables: View a list of all DynamoDB tables - describe-table: View detailed information about a specific table - : - scan-table: Scan all or part of a table's data - query-table: Search for data that matches specific conditions in a table - paginate-query-table: Retrieve data across multiple pages that matches specific conditions - get-item: Retrieve an item with a specific key - count-items: Calculate the number of items in a table - : - dynamodb-tables-info: A resource that provides metadata for all tables - dynamodb-table-schema: A resource that provides schema information for a specific table - : - dynamodb-query-help: A help prompt for writing DynamoDB queries You can run it without installation using the Run with NPX method below.

README

以下为原文 README 节选,完整内容请查看原文。

DynamoDB Read-Only MCP

A server that utilizes the Model Context Protocol (MCP) to query AWS DynamoDB databases. This server allows LLMs like Claude to query DynamoDB data through natural language requests.

Features

This MCP server provides the following features:

  • Table Management Tools:
    • list-tables: View a list of all DynamoDB tables
    • describe-table: View detailed information about a specific table
  • Data Query Tools:
    • scan-table: Scan all or part of a table’s data
    • query-table: Search for data that matches specific conditions in a table
    • paginate-query-table: Retrieve data across multiple pages that matches specific conditions
    • get-item: Retrieve an item with a specific key
    • count-items: Calculate the number of items in a table
  • Resources:
    • dynamodb-tables-info: A resource that provides metadata for all tables
    • dynamodb-table-schema: A resource that provides schema information for a specific table
  • Prompts:
    • dynamodb-query-help: A help prompt for writing DynamoDB queries

Installation and Execution

You can run it without installation using the Run with NPX method below.

Installing via Smithery

To install DynamoDB Read-Only Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @jjikky/dynamo-readonly-mcp --client claude

Installation

  1. Clone the repository:

    git clone https://github.com/jjikky/dynamo-readonly-mcp.git
    cd dynamo-readonly-mcp
    
  2. Install the required packages:

    npm install
    
  3. Create a .env file and set up your AWS credentials:

    AWS_ACCESS_KEY_ID=your_access_key
    AWS_SECRET_ACCESS_KEY=your_secret_key
    AWS_REGION=your_region
    

Build and Run

npm run build
npm start

Connect to Claude Desktop

To use this MCP server with Claude Desktop, you need to modify the Claude Desktop configuration file.

  1. Open the Claude Desktop configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add the server configuration as follows:

    {
      "mcpServers": {
        "dynamodb-readonly": {
          "command": "node",
在 GitHub 查看完整 README

安装

npx -y dynamo-readonly-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "dynamodb-readonly": { "command": "node", "args": ["/absolute-path/dynamo-readonly-mcp/dist/index.js"], "env": { "AWS_ACCESS_KEY_ID": "your_access_key", "AWS_SECRET_ACCESS_KEY": "your_secret_key", "AWS_REGION": "your_region" } } } }