LocalStack MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LocalStack MCP Serverlist all S3 buckets"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LocalStack MCP Server
MCP server that exposes LocalStack-managed AWS services as AI-agent tools, enabling LLMs and AI agents to interact with local AWS infrastructure during development and testing.
Installation
The server is published to npm and the MCP Registry. No local build needed.
npm install -g @giovane.martins/localstackOr run directly with npx (no install required):
npx @giovane.martins/localstackRelated MCP server: Composio MCP Server
Requirements
Node.js 20+
Docker (for LocalStack)
Local Development
# 1. Start LocalStack
docker compose up -d
# 2. Install dependencies
pnpm install
# 3. Build
pnpm run build
# 4. Run
pnpm startConfiguration
All configuration is via environment variables:
Variable | Default | Description |
|
| LocalStack base URL |
|
| AWS region |
|
| Fake credentials for LocalStack |
|
| Fake credentials for LocalStack |
Running Tests
Requires LocalStack running (docker compose up -d).
pnpm testMCP Client Configuration
Using the published npm package (recommended)
Add to your MCP client config (e.g. ~/.config/claude/claude_desktop_config.json):
{
"mcpServers": {
"localstack": {
"command": "npx",
"args": ["-y", "@giovane.martins/localstack"],
"env": {
"LOCALSTACK_ENDPOINT": "http://localhost:4566",
"AWS_REGION": "us-east-1",
"AWS_ACCESS_KEY_ID": "test",
"AWS_SECRET_ACCESS_KEY": "test"
}
}
}
}Using a local build
{
"mcpServers": {
"localstack": {
"command": "node",
"args": ["/path/to/mcp-servers/localstack/dist/index.js"],
"env": {
"LOCALSTACK_ENDPOINT": "http://localhost:4566",
"AWS_REGION": "us-east-1",
"AWS_ACCESS_KEY_ID": "test",
"AWS_SECRET_ACCESS_KEY": "test"
}
}
}
}Using tsx for development (no build step)
{
"mcpServers": {
"localstack": {
"command": "npx",
"args": ["tsx", "/path/to/mcp-servers/localstack/src/index.ts"],
"env": {
"LOCALSTACK_ENDPOINT": "http://localhost:4566",
"AWS_REGION": "us-east-1",
"AWS_ACCESS_KEY_ID": "test",
"AWS_SECRET_ACCESS_KEY": "test"
}
}
}
}Available Tools
S3
Tool | Description |
| List all S3 buckets |
| Create a bucket |
| Delete a bucket |
| Upload an object (text/JSON content) |
| Download an object as text |
| Delete an object |
| List objects with optional prefix filter |
SQS
Tool | Description |
| List all queues |
| Create a standard or FIFO queue |
| Delete a queue |
| Send a message |
| Receive up to 10 messages (with long-polling support) |
| Delete a message by receipt handle |
| Purge all messages from a queue |
SNS
Tool | Description |
| List all topics |
| Create a standard or FIFO topic |
| Delete a topic |
| Subscribe an endpoint to a topic |
| Unsubscribe from a topic |
| List all subscriptions for a topic |
| Publish a message to a topic |
EventBridge
Tool | Description |
| List all event buses |
| Create a custom event bus |
| Delete a custom event bus |
| List rules on a bus |
| Create or update a rule (event pattern or schedule) |
| Delete a rule |
| Describe a rule |
| Enable a rule |
| Disable a rule |
| Add or update rule targets |
| List targets for a rule |
| Remove targets from a rule |
| Send custom events to a bus (max 10) |
Kinesis
Tool | Description |
| List all streams |
| Create a stream |
| Delete a stream |
| Describe a stream (status, shards) |
| Put a single record |
| Put multiple records (max 500) |
| Get records from a shard |
DynamoDB
Tool | Description |
| List all tables |
| Create a table (partition key + optional sort key) |
| Delete a table |
| Describe a table |
| Put (create or replace) an item |
| Get an item by key |
| Delete an item by key |
| Scan all items (with optional filter expression) |
| Query by key condition |
Lambda
Tool | Description |
| List all functions |
| Get function details |
| Create a function from a base64-encoded ZIP |
| Delete a function |
| Invoke a function and return its response + logs |
Secrets Manager
Tool | Description |
| List all secrets |
| Create a new secret |
| Get the value of a secret |
| Update the value of a secret |
| Describe secret metadata |
| Delete a secret (with optional force delete) |
| Restore a previously deleted secret |
SSM Parameter Store
Tool | Description |
| Get a parameter by name |
| Create or update a parameter |
| Delete a parameter |
| Delete up to 10 parameters in batch |
| Get all parameters under a path prefix |
| List and describe parameters |
SES
Tool | Description |
| List all verified identities |
| Verify an email address |
| Get verification status for identities |
| Delete an identity |
| Send an email (plain text and/or HTML) |
Use Cases
Dev environment bootstrap — create S3 buckets, SQS queues, DynamoDB tables, and SSM parameters in one shot from a spec
Test data seeding — populate DynamoDB or S3 before running integration tests
Event-driven debugging — publish to EventBridge/SNS/Kinesis and inspect downstream effects without leaving the IDE
Secret/config management — read and update Secrets Manager / SSM values during local debug sessions
Lambda smoke testing — invoke Lambda functions, capture responses and logs, iterate quickly
Queue drain / inspect — receive and inspect SQS messages without a consumer running
Project Structure
localstack/
├── docker-compose.yml # LocalStack container
├── package.json
├── tsconfig.json
├── vitest.config.ts
├── src/
│ ├── index.ts # MCP server entry point
│ ├── config.ts # Environment config
│ ├── tools/ # One file per AWS service
│ │ ├── s3.ts
│ │ ├── sqs.ts
│ │ ├── sns.ts
│ │ ├── eventbridge.ts
│ │ ├── kinesis.ts
│ │ ├── dynamodb.ts
│ │ ├── lambda.ts
│ │ ├── secretsmanager.ts
│ │ ├── ssm.ts
│ │ └── ses.ts
│ └── utils/
│ ├── client.ts # Shared AWS client factory (LocalStack endpoint)
│ └── errors.ts # Standardised MCP error formatting
└── tests/ # Integration tests (real LocalStack)
├── s3.test.ts
├── sqs.test.ts
├── sns.test.ts
├── eventbridge.test.ts
├── kinesis.test.ts
├── dynamodb.test.ts
├── lambda.test.ts
├── secretsmanager.test.ts
├── ssm.test.ts
└── ses.test.tsThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/giovanemartins/localstack-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server