The AWS MCP Server is a Model Context Protocol implementation allowing Claude and other compatible AI models to work with AWS services, specifically S3 and DynamoDB. It enables authorized AI assistants to create buckets, upload files, manage database tables, and perform other AWS operations on your behalf when properly configured.
The fastest way to install AWS MCP Server for Claude Desktop is through Smithery:
npx -y @smithery/cli install mcp-server-aws --client claude
For more control over the installation process, follow these steps:
git clone https://github.com/your-username/mcp-server-aws.git
cd mcp-server-aws
Configure AWS credentials using one of these methods:
Environment Variables:
export AWS_ACCESS_KEY_ID="your-access-key"
export AWS_SECRET_ACCESS_KEY="your-secret-key"
export AWS_REGION="us-east-1" # Optional, defaults to us-east-1
AWS CLI Configuration:
aws configure
Then enter your credentials when prompted.
Update Claude Desktop configuration file:
On macOS:
nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows:
notepad %APPDATA%/Claude/claude_desktop_config.json
Add the following to your configuration file:
"mcpServers": {
"mcp-server-aws": {
"command": "uv",
"args": [
"--directory",
"/path/to/repo/mcp-server-aws",
"run",
"mcp-server-aws"
]
}
}
Once installed, Claude can perform AWS operations on your behalf. Here are some example prompts to get started:
Creating a bucket:
Can you create an S3 bucket for me called "my-test-bucket-2023"?
Uploading a file:
Please upload this text to S3 in my-test-bucket-2023 with the filename hello.txt:
Hello world! This is a test file.
Listing bucket contents:
What files do I have in my my-test-bucket-2023 bucket?
Reading file contents:
Can you show me the contents of hello.txt in my-test-bucket-2023?
Creating a table:
Create a DynamoDB table called "Users" with a primary key of "user_id" (string) and a sort key of "signup_date" (number).
Adding an item:
Add a new user to my Users table with user_id "user123", signup_date 1678942800, name "Jane Smith", and email "[email protected]".
Querying data:
Query the Users table for all items with user_id "user123".
Scanning a table:
Scan the Users table and show me all items.
If you encounter issues:
All operations are automatically logged and can be accessed through the audit://aws-operations resource endpoint.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "mcp-server-aws" '{"command":"uv","args":["--directory","/path/to/repo/mcp-server-aws","run","mcp-server-aws"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:
{
"mcpServers": {
"mcp-server-aws": {
"command": "uv",
"args": [
"--directory",
"/path/to/repo/mcp-server-aws",
"run",
"mcp-server-aws"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json2. Add this to your configuration file:
{
"mcpServers": {
"mcp-server-aws": {
"command": "uv",
"args": [
"--directory",
"/path/to/repo/mcp-server-aws",
"run",
"mcp-server-aws"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect