Integrations
Uses environment variables for AWS credential configuration, allowing secure connection to DynamoDB services without hardcoding sensitive information.
Hosts the source code repository, providing version control and enabling users to clone, contribute to, or customize the DynamoDB MCP implementation.
Supports configuration specifically for macOS systems, providing platform-specific file paths for Claude Desktop integration.
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 tablesdescribe-table
: View detailed information about a specific table
- Data Query Tools:
scan-table
: Scan all or part of a table's dataquery-table
: Search for data that matches specific conditions in a tablepaginate-query-table
: Retrieve data across multiple pages that matches specific conditionsget-item
: Retrieve an item with a specific keycount-items
: Calculate the number of items in a table
- Resources:
dynamodb-tables-info
: A resource that provides metadata for all tablesdynamodb-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.
Installation
- Clone the repository:Copy
- Install the required packages:Copy
- Create a
.env
file and set up your AWS credentials:Copy
Build and Run
Connect to Claude Desktop
To use this MCP server with Claude Desktop, you need to modify the Claude Desktop configuration file.
- Open the Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
- Add the server configuration as follows:Copy
- Restart Claude Desktop.
Run with NPX
You can also run this server using npx
without a global installation:
Usage Examples
You can ask Claude questions like:
- "Can you tell me what tables are in DynamoDB?"
- "Explain the structure of the Users table"
- "Find the number of users in the 'Users' table where groupId is '0lxp4paxk7'"
Architecture
This MCP server consists of the following layered structure:
- Client Interface (Claude Desktop) - Interaction between user and LLM
- MCP Protocol Layer - Provides standardized message exchange method
- DynamoDB Server - Implements functions that interact with DynamoDB
- AWS SDK - Communicates with AWS DynamoDB service
Key Operation Mechanisms
1. Initialization and Connection
When the server starts, the following process occurs:
StdioServerTransport
sets up a communication channel through standard input/output.server.connect(transport)
connects to Claude Desktop through the MCP protocol.- During connection, the server sends information about supported tools, resources, and prompts to the client.
2. Tool Request Processing
When a user asks Claude something like "Show me the list of DynamoDB tables":
- Claude analyzes this request and calls the
list-tables
tool. - This request is sent to the server through the MCP protocol.
- The server executes the corresponding tool handler:
- The result is returned to Claude through the MCP protocol.
- Claude processes this result into natural language and presents it to the user.
3. Specific Parameter Handling
When a user requests "Tell me the structure of the Users table":
- Claude determines that this request should use the
describe-table
tool. - Claude configures the parameter as
{ tableName: "Users" }
. - This information is sent to the MCP server:
Here, z.string()
uses the Zod library to validate parameters.
4. Resource Handling
Resources are another MCP feature that provides read-only data:
Claude accesses resources and uses them as context information.
5. Prompt Handling
The MCP server can provide prompt templates for specific tasks:
This prompt is used when a user requests "Show me how to write queries for the Users table."
Data Flow Summary
- User makes a request to Claude in natural language
- Claude analyzes the request and selects the appropriate MCP tool/resource/prompt
- MCP client sends the request to the server in a standardized format
- Server processes the request and calls the AWS DynamoDB API
- DynamoDB returns results
- Server converts results to MCP format and sends them to the client
- Claude processes the results into natural language and presents them to the user
License
This project is licensed under the MIT License - see the LICENSE file for details.
This server cannot be installed
A server that enables LLMs like Claude to query AWS DynamoDB databases through natural language requests, supporting table management, data querying, and schema analysis.