MCP LocalStack Server

MCP LocalStack Server

Provides conversational access to LocalStack AWS services (S3, DynamoDB, Lambda, SQS) through natural language, enabling local cloud infrastructure management without real AWS costs.

Category
访问服务器

README

MCP LocalStack Server

A Model Context Protocol (MCP) server that provides conversational access to LocalStack AWS services. Build, test, and debug cloud infrastructure through natural language without touching real AWS resources.

Features

  • S3 Operations: Create buckets, upload/download objects, list contents
  • DynamoDB: Create tables, put/get/scan items, manage data
  • Lambda: Create functions, invoke them, retrieve logs
  • SQS: Create queues, send/receive messages, manage queue attributes
  • Zero AWS Costs: All operations run locally through LocalStack
  • Natural Language Interface: Ask Claude to manage your infrastructure conversationally

Prerequisites

Installation

1. Install LocalStack

# Using Docker (recommended)
docker run -d --name localstack -p 4566:4566 localstack/localstack

# Or install via pip
pip install localstack
localstack start

2. Install MCP LocalStack Server

git clone <your-repo-url>
cd mcp-localstack-server
npm install
npm run build

3. Configure Claude Desktop

Add to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "localstack": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-localstack-server/dist/index.js"],
      "env": {
        "LOCALSTACK_ENDPOINT": "http://localhost:4566",
        "AWS_REGION": "us-east-1"
      }
    }
  }
}

Usage Examples

Once configured, you can interact with LocalStack through natural language in Claude:

S3 Operations

You: Create an S3 bucket called my-test-bucket
You: Upload a file to my-test-bucket with key data.json containing {"test": "value"}
You: List all objects in my-test-bucket
You: Get the contents of data.json from my-test-bucket

DynamoDB Operations

You: Create a DynamoDB table called Users with id as the hash key
You: Put an item in Users table: {"id": "user123", "name": "John", "email": "john@example.com"}
You: Get item from Users table with id user123
You: Scan the entire Users table

Lambda Operations

You: Create a Lambda function called hello-world using Python 3.9
You: Invoke the hello-world function with payload {"name": "Alice"}
You: Get the logs from hello-world function

SQS Operations

You: Create an SQS queue called my-queue
You: Send a message to my-queue with body "Hello from SQS"
You: Receive messages from my-queue
You: Get the attributes of my-queue

Available Tools

S3

  • s3_create_bucket - Create a new bucket
  • s3_list_buckets - List all buckets
  • s3_upload_object - Upload an object
  • s3_list_objects - List objects in a bucket
  • s3_get_object - Get object contents
  • s3_delete_object - Delete an object

DynamoDB

  • dynamodb_create_table - Create a table
  • dynamodb_list_tables - List all tables
  • dynamodb_put_item - Insert an item
  • dynamodb_get_item - Retrieve an item
  • dynamodb_scan - Scan table
  • dynamodb_delete_item - Delete an item
  • dynamodb_delete_table - Delete a table

Lambda

  • lambda_create_function - Create a function
  • lambda_invoke - Invoke a function
  • lambda_list_functions - List all functions
  • lambda_get_function - Get function details
  • lambda_delete_function - Delete a function
  • lambda_get_logs - Retrieve function logs

SQS

  • sqs_create_queue - Create a queue
  • sqs_list_queues - List all queues
  • sqs_send_message - Send a message
  • sqs_receive_messages - Receive messages
  • sqs_delete_message - Delete a message
  • sqs_get_queue_url - Get queue URL
  • sqs_delete_queue - Delete a queue
  • sqs_get_queue_attributes - Get queue attributes

Environment Variables

  • LOCALSTACK_ENDPOINT - LocalStack endpoint (default: http://localhost:4566)
  • AWS_REGION - AWS region (default: us-east-1)
  • AWS_ACCESS_KEY_ID - Access key (default: test)
  • AWS_SECRET_ACCESS_KEY - Secret key (default: test)

Development

# Install dependencies
npm install

# Build
npm run build

# Watch mode
npm run watch

Troubleshooting

LocalStack not responding

Ensure LocalStack is running:

docker ps | grep localstack

If not running, start it:

docker start localstack

Connection refused errors

Verify LocalStack endpoint:

curl http://localhost:4566/_localstack/health

Tools not appearing in Claude

  1. Restart Claude Desktop completely
  2. Check config file path is correct
  3. Verify absolute path to dist/index.js
  4. Check Claude Desktop logs for errors

Contributing

Contributions welcome! This project fills a gap in the MCP ecosystem and benefits from community input.

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

License

MIT License - see LICENSE file for details

Why This Matters

LocalStack is a powerful tool for AWS development, but it requires knowledge of AWS CLIs, SDKs, and APIs. This MCP server makes cloud development accessible through conversation—ask Claude to manage your infrastructure instead of writing boto3 scripts or memorizing AWS CLI commands.

Perfect for:

  • Learning AWS services without cost
  • Testing infrastructure changes safely
  • Rapid prototyping of cloud architectures
  • Teaching cloud concepts interactively
  • CI/CD pipeline development

Acknowledgments

Built on:

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选