자연어를 사용하여 AWS, Azure, Snowflake용 로컬 클라우드 에뮬레이션을 관리, 배포 및 디버깅할 수 있습니다.
다른 이름 localstack/localstack-mcp-server, @localstack/localstack-mcp-server
- 스타
- 29
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- 0.5.0
- 마지막 커밋
- 2026년 11월 11일
- 라이선스
- Apache-2.0
LocalStack MCP란?
LocalStack은(는) MCP server입니다. 자연어를 사용하여 AWS, Azure, Snowflake용 로컬 클라우드 에뮬레이션을 관리, 배포 및 디버깅할 수 있습니다.
프로젝트 README에서 생성된 요약
LocalStack MCP server 정보
이 MCP server를 사용하면 자연어를 통해 AWS, Azure, Snowflake용 로컬 클라우드 에뮬레이션을 관리할 수 있습니다. 개발자는 Claude, Cursor, VS Code와 같은 AI 클라이언트를 로컬 머신의 LocalStack 환경에 직접 연결할 수 있습니다. 이 server를 사용하면 AI agent가 에뮬레이션된 클라우드 서비스를 시작, 중지 및 모니터링할 수 있어 클라우드 비용 발생 없이 보안과 신뢰성을 쉽게 검증할 수 있습니다.
사용 가능한 도구를 사용하려면 환경 변수를 통해 LocalStack Auth Token을 제공해야 합니다. 이 server에는 CDK, Terraform 또는 SAM 프로젝트를 실행하기 위한 localstack-deployer와 네트워크 지연을 추가하여 시스템 회복 탄력성을 테스트하는 localstack-chaos-injector와 같은 특화된 기능이 포함되어 있습니다. 또한 권한 오류를 식별하고 수정된 IAM policy를 자동으로 생성하는 것을 돕는 localstack-iam-policy-analyzer 기능도 갖추고 있습니다. 이 설정을 통해 agent가 local stack과의 직접적인 상호 작용을 통해 인프라 배포, 로그 분석 및 상태 관리를 처리하므로 수동 스크립트가 필요하지 않습니다.
활용 사례
- 1자연어를 통한 인프라 배포agent에게 LocalStack을 시작하고 로컬 디렉토리의 특정 Terraform 프로젝트를 배포하도록 요청하세요.
- 2권한 오류 자동 디버깅agent가 서비스 로그를 읽어 IAM 실패를 찾고 이를 수정하기 위한 policy를 생성하도록 하세요.
- 3카오스 엔지니어링을 통한 시스템 회복 탄력성 테스트애플리케이션의 재시도 로직이 작동하는지 확인하기 위해 agent에게 데이터베이스에 지연을 주입하도록 지시하세요.
- 4Azure 리소스 로컬 관리agent를 사용하여 스토리지 계정과 같은 Azure 에뮬레이션 리소스를 설정하고 데이터를 업로드하세요.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
LocalStack MCP 설치 방법
형식 확인: 2026년 11월 10일Claude Code에 LocalStack MCP 설치
$ claude mcp add --env LOCALSTACK_AUTH_TOKEN=<YOUR_LOCALSTACK_AUTH_TOKEN> --env AWS_ACCESS_KEY_ID=<YOUR_AWS_ACCESS_KEY_ID> --env AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID=<YOUR_AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID> --env AWS_REPLICATOR_SOURCE_AWS_SECRET_ACCESS_KEY=<YOUR_AWS_REPLICATOR_SOURCE_AWS_SECRET_ACCESS_KEY> --env AWS_REPLICATOR_SOURCE_AWS_SESSION_TOKEN=<YOUR_AWS_REPLICATOR_SOURCE_AWS_SESSION_TOKEN> --env AWS_SECRET_ACCESS_KEY=<YOUR_AWS_SECRET_ACCESS_KEY> --env AWS_SESSION_TOKEN=<YOUR_AWS_SESSION_TOKEN> localstack-mcp-server -- npx -y @localstack/localstack-mcp-serverCursor에 LocalStack MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"localstack-mcp-server": {
"command": "npx",
"args": [
"-y",
"@localstack/localstack-mcp-server"
],
"env": {
"LOCALSTACK_AUTH_TOKEN": "<YOUR_LOCALSTACK_AUTH_TOKEN>",
"AWS_ACCESS_KEY_ID": "<YOUR_AWS_ACCESS_KEY_ID>",
"AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID": "<YOUR_AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID>",
"AWS_REPLICATOR_SOURCE_AWS_SECRET_ACCESS_KEY": "<YOUR_AWS_REPLICATOR_SOURCE_AWS_SECRET_ACCESS_KEY>",
"AWS_REPLICATOR_SOURCE_AWS_SESSION_TOKEN": "<YOUR_AWS_REPLICATOR_SOURCE_AWS_SESSION_TOKEN>",
"AWS_SECRET_ACCESS_KEY": "<YOUR_AWS_SECRET_ACCESS_KEY>",
"AWS_SESSION_TOKEN": "<YOUR_AWS_SESSION_TOKEN>"
}
}
}
}VS Code에 LocalStack MCP 설치
.vscode/mcp.json
{
"servers": {
"localstack-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@localstack/localstack-mcp-server"
],
"env": {
"LOCALSTACK_AUTH_TOKEN": "<YOUR_LOCALSTACK_AUTH_TOKEN>",
"AWS_ACCESS_KEY_ID": "<YOUR_AWS_ACCESS_KEY_ID>",
"AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID": "<YOUR_AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID>",
"AWS_REPLICATOR_SOURCE_AWS_SECRET_ACCESS_KEY": "<YOUR_AWS_REPLICATOR_SOURCE_AWS_SECRET_ACCESS_KEY>",
"AWS_REPLICATOR_SOURCE_AWS_SESSION_TOKEN": "<YOUR_AWS_REPLICATOR_SOURCE_AWS_SESSION_TOKEN>",
"AWS_SECRET_ACCESS_KEY": "<YOUR_AWS_SECRET_ACCESS_KEY>",
"AWS_SESSION_TOKEN": "<YOUR_AWS_SESSION_TOKEN>"
}
}
}
}Claude Desktop에 LocalStack MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"localstack-mcp-server": {
"command": "npx",
"args": [
"-y",
"@localstack/localstack-mcp-server"
],
"env": {
"LOCALSTACK_AUTH_TOKEN": "<YOUR_LOCALSTACK_AUTH_TOKEN>",
"AWS_ACCESS_KEY_ID": "<YOUR_AWS_ACCESS_KEY_ID>",
"AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID": "<YOUR_AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID>",
"AWS_REPLICATOR_SOURCE_AWS_SECRET_ACCESS_KEY": "<YOUR_AWS_REPLICATOR_SOURCE_AWS_SECRET_ACCESS_KEY>",
"AWS_REPLICATOR_SOURCE_AWS_SESSION_TOKEN": "<YOUR_AWS_REPLICATOR_SOURCE_AWS_SESSION_TOKEN>",
"AWS_SECRET_ACCESS_KEY": "<YOUR_AWS_SECRET_ACCESS_KEY>",
"AWS_SESSION_TOKEN": "<YOUR_AWS_SESSION_TOKEN>"
}
}
}
}Codex에 LocalStack MCP 설치
~/.codex/config.toml
[mcp_servers.localstack-mcp-server] command = "npx" args = ["-y", "@localstack/localstack-mcp-server"] [mcp_servers.localstack-mcp-server.env] LOCALSTACK_AUTH_TOKEN = "<YOUR_LOCALSTACK_AUTH_TOKEN>" AWS_ACCESS_KEY_ID = "<YOUR_AWS_ACCESS_KEY_ID>" AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID = "<YOUR_AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID>" AWS_REPLICATOR_SOURCE_AWS_SECRET_ACCESS_KEY = "<YOUR_AWS_REPLICATOR_SOURCE_AWS_SECRET_ACCESS_KEY>" AWS_REPLICATOR_SOURCE_AWS_SESSION_TOKEN = "<YOUR_AWS_REPLICATOR_SOURCE_AWS_SESSION_TOKEN>" AWS_SECRET_ACCESS_KEY = "<YOUR_AWS_SECRET_ACCESS_KEY>" AWS_SESSION_TOKEN = "<YOUR_AWS_SESSION_TOKEN>"
Gemini CLI에 LocalStack MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"localstack-mcp-server": {
"command": "npx",
"args": [
"-y",
"@localstack/localstack-mcp-server"
],
"env": {
"LOCALSTACK_AUTH_TOKEN": "<YOUR_LOCALSTACK_AUTH_TOKEN>",
"AWS_ACCESS_KEY_ID": "<YOUR_AWS_ACCESS_KEY_ID>",
"AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID": "<YOUR_AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID>",
"AWS_REPLICATOR_SOURCE_AWS_SECRET_ACCESS_KEY": "<YOUR_AWS_REPLICATOR_SOURCE_AWS_SECRET_ACCESS_KEY>",
"AWS_REPLICATOR_SOURCE_AWS_SESSION_TOKEN": "<YOUR_AWS_REPLICATOR_SOURCE_AWS_SESSION_TOKEN>",
"AWS_SECRET_ACCESS_KEY": "<YOUR_AWS_SECRET_ACCESS_KEY>",
"AWS_SESSION_TOKEN": "<YOUR_AWS_SESSION_TOKEN>"
}
}
}
}구성
LOCALSTACK_AUTH_TOKEN필수비밀LocalStack Auth Token (required for all LocalStack MCP tools)
AWS_ACCESS_KEY_ID비밀Source AWS access key used by AWS Replicator to read external AWS resources
AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID비밀Optional Replicator-specific source AWS access key. Use this instead of AWS_ACCESS_KEY_ID when the Replicator source account should be isolated from generic AWS config.
AWS_REPLICATOR_SOURCE_AWS_SECRET_ACCESS_KEY비밀Optional Replicator-specific source AWS secret access key. Use with AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID.
AWS_REPLICATOR_SOURCE_AWS_SESSION_TOKEN비밀Optional Replicator-specific source AWS session token for temporary credentials.
AWS_SECRET_ACCESS_KEY비밀Source AWS secret access key used by AWS Replicator to read external AWS resources
AWS_SESSION_TOKEN비밀Optional source AWS session token used by AWS Replicator for temporary credentials
APP_INSPECTORSet to 1 in the LocalStack container environment to enable App Inspector by default across restarts. The MCP tool can also toggle App Inspector at runtime.
AWS_DEFAULT_REGIONSource AWS region used by AWS Replicator
AWS_REPLICATOR_SOURCE_ENDPOINT_URLOptional Replicator-specific source AWS endpoint URL for advanced source-account scenarios.
AWS_REPLICATOR_SOURCE_REGION_NAMEOptional Replicator-specific source AWS region. Use with the AWS_REPLICATOR_SOURCE_* credential group.
GOOGLE_GENERATIVE_AI_API_KEY
| 이름 | 설명 | 유형 |
|---|---|---|
| LOCALSTACK_AUTH_TOKEN | LocalStack Auth Token (required for all LocalStack MCP tools) | 필수비밀 |
| AWS_ACCESS_KEY_ID | Source AWS access key used by AWS Replicator to read external AWS resources | 비밀 |
| AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID | Optional Replicator-specific source AWS access key. Use this instead of AWS_ACCESS_KEY_ID when the Replicator source account should be isolated from generic AWS config. | 비밀 |
| AWS_REPLICATOR_SOURCE_AWS_SECRET_ACCESS_KEY | Optional Replicator-specific source AWS secret access key. Use with AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID. | 비밀 |
| AWS_REPLICATOR_SOURCE_AWS_SESSION_TOKEN | Optional Replicator-specific source AWS session token for temporary credentials. | 비밀 |
| AWS_SECRET_ACCESS_KEY | Source AWS secret access key used by AWS Replicator to read external AWS resources | 비밀 |
| AWS_SESSION_TOKEN | Optional source AWS session token used by AWS Replicator for temporary credentials | 비밀 |
| APP_INSPECTOR | Set to 1 in the LocalStack container environment to enable App Inspector by default across restarts. The MCP tool can also toggle App Inspector at runtime. | |
| AWS_DEFAULT_REGION | Source AWS region used by AWS Replicator | |
| AWS_REPLICATOR_SOURCE_ENDPOINT_URL | Optional Replicator-specific source AWS endpoint URL for advanced source-account scenarios. | |
| AWS_REPLICATOR_SOURCE_REGION_NAME | Optional Replicator-specific source AWS region. Use with the AWS_REPLICATOR_SOURCE_* credential group. | |
| GOOGLE_GENERATIVE_AI_API_KEY | — |
자동 검사
2026년 11월 12일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능통과
- 오픈 소스 라이선스 (OSI)통과
- 최근 1년 내 커밋 또는 릴리스통과
- 패키지 이름이 인기 패키지와 유사하지 않음통과
- 원격 엔드포인트가 HTTPS 사용검사되지 않음
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 모델에 대한 숨겨진 지침 없음통과
- 패키지와 의존성에 심각한 보안 권고 없음통과
README
GitHub에서 보기LocalStack MCP Server
Let an AI agent manage and interact with LocalStack on your machine.
[!IMPORTANT] The LocalStack MCP server is currently available as an experimental public preview. For questions, issues or feedback, please utilize the LocalStack Community slack or submit a GitHub Issue
LocalStack emulates the cloud on your local machine so software teams and AI agents can validate security, quality, and reliability faster and more safely than the cloud allows. This Model Context Protocol (MCP) server lets any MCP client (Cursor, Claude, VS Code, and more) start LocalStack, deploy infrastructure, and debug your local cloud in natural language.
Quick start
Set up the server in your MCP client with the interactive wizard:
npx -y @localstack/localstack-mcp-server init
The wizard detects your installed clients, asks how you want to run the server, and writes the configuration for you. You need a LocalStack Auth Token; the wizard reads LOCALSTACK_AUTH_TOKEN from your environment or asks for it. For the full options, prerequisites, and manual setup, see Installation.
What you can ask your agent
Once the server is configured, talk to LocalStack through your agent in natural language:
- "Start LocalStack and deploy the Terraform project in
./infra, then tell me which resources came up." - "My Lambda calls are failing. Read the LocalStack logs, find the permission errors, and generate an IAM policy that fixes them."
- "Inject 500ms of latency into DynamoDB and confirm my retry logic still works."
- "Search the LocalStack docs for how to enable S3 event notifications and summarize the steps."
- "Start the LocalStack Azure emulator, create a resource group and a storage account, and upload
./data/sample.csvto a new blob container."
How it works
The server connects MCP-compatible apps directly to your local LocalStack environment and its emulated AWS services, so your assistant can operate the stack securely without custom scripts or manual setup.
This server eliminates custom scripts and manual LocalStack management. Your agent can:
- Start, stop, restart, and monitor the LocalStack for AWS, Snowflake and Azure emulators with built-in auth.
- Deploy CDK, Terraform, and SAM projects with automatic configuration detection.
- Search LocalStack documentation for guides, API references, and configuration details.
- Parse logs, catch errors, and auto-generate IAM policies from violations.
- Inject chaos faults and network effects into LocalStack to test system resilience.
- Manage LocalStack state snapshots via Cloud Pods for development workflows.
- Export, import, inspect, and reset LocalStack state locally with Export & Import State file-based workflows.
- Install, remove, list, and discover LocalStack Extensions from the marketplace.
- Launch and manage Ephemeral Instances for remote LocalStack testing workflows.
- Replicate external AWS resources into LocalStack with AWS Replicator so IaC stacks can resolve shared dependencies locally.
- Inspect LocalStack application flows with App Inspector traces, spans, events, payload metadata, and IAM policy evaluations.
- Start repeatable LocalStack workflows from ready-made MCP prompts, including infrastructure validation and integration test generation.
Tools
This server provides your AI with dedicated tools for managing your LocalStack environment:
[!NOTE] All tools in this MCP server require
LOCALSTACK_AUTH_TOKEN.
| Tool Name | Description | Key Features |
|---|---|---|
localstack-management |
Manages LocalStack runtime operations for AWS, Snowflake and Azure stacks | - Execute start, stop, restart, and status checks- Integrate LocalStack authentication tokens- Inject custom environment variables- Verify real-time status and perform health monitoring |
localstack-deployer |
Handles infrastructure deployment to LocalStack for AWS environments | - Automatically run CDK, Terraform, and SAM tooling to deploy infrastructure locally- Enable parameterized deployments with variable support- Process and present deployment results- Requires you to have cdklocal, tflocal, or samlocal installed in your system path |
localstack-logs-analysis |
Analyzes LocalStack for AWS logs for troubleshooting and insights | - Offer multiple analysis options including summaries, errors, requests, and raw data- Filter by specific services and operations- Generate API call metrics and failure breakdowns- Group errors intelligently and identify patterns |
localstack-iam-policy-analyzer |
Handles IAM policy management and violation remediation | - Set IAM enforcement levels including enforced, soft, and disabled modes- Search logs for permission-related violations- Generate IAM policies automatically from detected access failures- Requires a valid LocalStack Auth Token |
localstack-chaos-injector |
Injects and manages chaos experiment faults for system resilience testing | - Inject, add, remove, and clear service fault rules- Configure network latency effects- Comprehensive fault targeting by service, region, and operation- Built-in workflow guidance for chaos experiments- Requires a valid LocalStack Auth Token |
localstack-cloud-pods |
Manages remote LocalStack Cloud Pods for development workflows | - Save current state as a Cloud Pod- Load previously saved Cloud Pods instantly- Delete Cloud Pods from remote cloud-backed storage- Use this for managed remote state snapshots, not local export/import files- Requires a valid LocalStack Auth Token |
localstack-state-management |
Manages local file-based LocalStack state export/import workflows | - Export LocalStack state to a local file on disk through the LocalStack State REST API- Import LocalStack state from a local file- Inspect current LocalStack state as JSON metamodel data- Reset all state or only selected services- Supports service-level granularity for export, reset, and inspect- Use this for local disk workflows; use Cloud Pods for remote cloud-backed snapshots- Requires a valid LocalStack Auth Token |
localstack-extensions |
Installs, uninstalls, lists, and discovers LocalStack Extensions | - Manage installed extensions (list, install, uninstall) inside the running container- Browse the LocalStack Extensions marketplace (available)- Requires a valid LocalStack Auth Token |
localstack-ephemeral-instances |
Manages cloud-hosted LocalStack Ephemeral Instances | - Create temporary cloud-hosted LocalStack instances and get an endpoint URL- List available ephemeral instances, fetch logs, and delete instances- Supports lifetime, extension preload, Cloud Pod preload, and custom env vars on create- Requires a valid LocalStack Auth Token |
localstack-aws-client |
Runs AWS CLI commands inside the LocalStack for AWS container | - Executes commands via awslocal inside the running container- Sanitizes commands to block shell chaining- Auto-detects LocalStack coverage errors and links to docs |
localstack-azure-client |
Runs Azure CLI (az) commands against the LocalStack for Azure emulator |
- Runs the Azure CLI installed on your machine with its own profile, never your Azure login- Blocks shell syntax and commands that would change the profile, install software or never end- Uses the extensions you installed with az extension add- Requires the Azure CLI and a valid LocalStack Auth Token |
localstack-aws-replicator |
Replicates external AWS resources into a running LocalStack instance | - Start single-resource replication jobs with a resource type and identifier or ARN- Start batch replication jobs, such as SSM parameters under a path prefix- Poll job status by job ID and list existing jobs- List resource types supported by the running Replicator extension- Reads source AWS credentials from the MCP server environment and supports optional target account or region overrides |
localstack-app-inspector |
Inspects LocalStack application traces, spans, events, and IAM evaluations | - Enable or disable App Inspector for the running LocalStack instance- List and inspect traces to understand AWS service-to-service flows- Drill into spans, events, payload metadata, and IAM policy evaluation events- Filter by service, region, operation, resource, ARN, status, and time range- Requires a valid LocalStack Auth Token and the App Inspector feature in the connected LocalStack license |
localstack-docs |
Searches LocalStack documentation through CrawlChat | - Queries LocalStack docs through a public CrawlChat collection- Returns focused snippets with source links only- Helps answer coverage, configuration, and setup questions without requiring LocalStack runtime |
localstack-snowflake-client |
Runs SQL against the LocalStack Snowflake emulator through the snow CLI |
- Execute SELECT, DDL (CREATE/DROP), DML (INSERT/UPDATE/DELETE), and SHOW/DESCRIBE statements from a query string or a .sql file- Check the Snowflake connection before running queries- Set optional database, schema, warehouse, and role context per query- Requires the Snowflake CLI (snow) and a valid LocalStack Auth Token |
Prompts
Prompts are user-selected workflow templates exposed by MCP clients as slash commands or quick actions. They frame multi-step LocalStack tasks so the assistant follows the same phases, evidence requirements, and reporting format every time.
| Prompt Name | Description | Arguments |
|---|---|---|
infrastructure-tester |
Deploys an IaC project to LocalStack, validates declared resources with live AWS probes and App Inspector evidence, then writes and runs deterministic integration tests. | iac_path (required), iac_type, test_language, test_framework, mode, services_focus, user_focus |
Installation
Set up with the wizard (recommended)
The fastest way to install the MCP server is the interactive setup wizard:
npx -y @localstack/localstack-mcp-server init
The wizard:
- lets you choose how to run the server (
npxon your machine, or the self-contained Docker image), - checks the prerequisites (Node.js, Docker) and tells you how to fix anything missing,
- picks up your
LOCALSTACK_AUTH_TOKENfrom the environment, or asks for it, - lets you pass extra LocalStack config (e.g.
DEBUG=1,PERSISTENCE=1), - detects your installed MCP clients (Cursor, Antigravity, Claude Code, Claude Desktop, VS Code, Codex, OpenCode, Amazon Q CLI) and writes the right configuration for each one you select.
It can also run fully non-interactively, e.g. in dotfiles or scripts:
npx -y @localstack/localstack-mcp-server init --method npx --client cursor,claude-code --yes
To remove the server from your clients again:
npx -y @localstack/localstack-mcp-server remove
Run npx -y @localstack/localstack-mcp-server init --help for all options.
Prerequisites
- Docker installed and running. The MCP server manages the LocalStack container directly through the Docker API.
cdklocal,tflocal, orsamlocalinstalled in your system path if you want to deploy CDK, Terraform, or SAM projects- Snowflake CLI (
snow) installed in your system path if you want to use the Snowflake tool - Azure CLI (
az) installed in your system path if you want to use the Azure tool (see docs/AZURE.md) - A valid LocalStack Auth Token configured as
LOCALSTACK_AUTH_TOKEN(required for all MCP tools) - Node.js v20 or higher installed in your system path
Run with npx
Add the following to your MCP client's configuration file (e.g., ~/.cursor/mcp.json). This configuration uses npx to run the server, which will automatically download and install the package if needed. The server manages LocalStack through your Docker daemon; any deployment CLIs used by tools run from your host PATH.
{
"mcpServers": {
"localstack": {
"command": "npx",
"args": ["-y", "@localstack/localstack-mcp-server"],
"env": {
"LOCALSTACK_AUTH_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
All LocalStack MCP tools require LOCALSTACK_AUTH_TOKEN to be set. You can get your LocalStack Auth Token by following the official documentation.
Run from source
If you installed from source, change command and args to point to your local build:
{
"mcpServers": {
"localstack": {
"command": "node",
"args": ["/path/to/your/localstack-mcp-server/dist/cli.js"],
"env": {
"LOCALSTACK_AUTH_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
Run with Docker
The localstack/localstack-mcp-server Docker image bundles Terraform/tflocal, CDK/cdklocal, SAM/samlocal, and the Snowflake CLI. The only required host dependency is Docker. The container uses the mounted Docker socket to run LocalStack as a sibling container on the host; state lives in a named Docker volume (localstack-mcp) unless LOCALSTACK_VOLUME_DIR points at a host directory.
If you use the deployer tool with local Terraform, CDK, or SAM projects, bind-mount those project paths into the MCP container and pass the in-container path to the tool. The simplest convention is to mount projects at the same absolute path they use on the host.
{
"mcpServers": {
"localstack": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-v",
"/var/run/docker.sock:/var/run/docker.sock",
"--add-host",
"host.docker.internal:host-gateway",
"--add-host",
"s3.host.docker.internal:host-gateway",
"--add-host",
"snowflake.localhost.localstack.cloud:host-gateway",
"-e",
"LOCALSTACK_AUTH_TOKEN",
"-e",
"LOCALSTACK_HOSTNAME=host.docker.internal",
"-v",
"/Users/you/projects:/Users/you/projects",
"localstack/localstack-mcp-server:latest"
],
"env": { "LOCALSTACK_AUTH_TOKEN": "<YOUR_TOKEN>" }
}
}
}
See docs/DOCKER.md for the run command, MCP client config, IaC project mounts, CDK notes, and troubleshooting.
LocalStack MCP 질문
LocalStack MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add --env LOCALSTACK_AUTH_TOKEN=<YOUR_LOCALSTACK_AUTH_TOKEN> --env AWS_ACCESS_KEY_ID=<YOUR_AWS_ACCESS_KEY_ID> --env AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID=<YOUR_AWS_REPLICATOR_SOURCE_AWS_ACCESS_KEY_ID> --env AWS_REPLICATOR_SOURCE_AWS_SECRET_ACCESS_KEY=<YOUR_AWS_REPLICATOR_SOURCE_AWS_SECRET_ACCESS_KEY> --env AWS_REPLICATOR_SOURCE_AWS_SESSION_TOKEN=<YOUR_AWS_REPLICATOR_SOURCE_AWS_SESSION_TOKEN> --env AWS_SECRET_ACCESS_KEY=<YOUR_AWS_SECRET_ACCESS_KEY> --env AWS_SESSION_TOKEN=<YOUR_AWS_SESSION_TOKEN> localstack-mcp-server -- npx -y @localstack/localstack-mcp-server를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
LocalStack MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
도구를 사용하려면 인증 토큰이 필요한가요?
네, 이 MCP server에서 제공하는 모든 도구는 LocalStack Auth Token이 필요합니다.
Terraform이나 CDK를 사용하여 인프라를 배포할 수 있나요?
네, 이 server는 CDK, Terraform, SAM을 사용하여 AWS 환경의 인프라 배포를 처리합니다.