LocalStack logo

LocalStack

Organization
localstack

MCP Server for LocalStack

Publisherlocalstack
Repositorylocalstack-mcp-server
LanguageTypeScript
Forks
11
Stars
23
Available tools
0
Transport typestdio
Categories
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    LocalStack exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    23 stars and 11 forks from the linked repository.

LocalStack MCP Server

[!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

A Model Context Protocol (MCP) server that provides tools to manage and interact with your LocalStack for AWS container for simplified local cloud development and testing. The LocalStack MCP Server provides simplified integration between MCP-compatible apps and your local LocalStack for AWS development environment, enabling secure and direct communication with LocalStack's emulated services and additional developer experience features.

This server eliminates custom scripts and manual LocalStack management with direct access to:

  • Start, stop, restart, and monitor LocalStack for AWS container status 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.
  • Connect AI assistants and dev tools for automated cloud testing workflows.

Tools Reference

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 NameDescriptionKey Features
localstack-managementManages LocalStack runtime operations for AWS and Snowflake 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-deployerHandles 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-analysisAnalyzes 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-analyzerHandles 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-injectorInjects 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-podsManages 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-managementManages 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-extensionsInstalls, uninstalls, lists, and discovers LocalStack Extensions- Manage installed extensions via CLI actions (list, install, uninstall)- Browse the LocalStack Extensions marketplace (available)- Requires a valid LocalStack Auth Token support
localstack-ephemeral-instancesManages 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 and LocalStack CLI
localstack-aws-clientRuns 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-aws-replicatorReplicates 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-inspectorInspects 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-docsSearches 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

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 NameDescriptionArguments
infrastructure-testerDeploys 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

Installation

EditorInstallation
CursorInstall MCP Server

For other MCP Clients, refer to the configuration guide.

Prerequisites

Configuration

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 & install the package if not already present:

json
{
  "mcpServers": {
    "localstack-mcp-server": {
      "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.

If you installed from source, change command and args to point to your local build:

json
{
  "mcpServers": {
    "localstack-mcp-server": {
      "command": "node",
      "args": ["/path/to/your/localstack-mcp-server/dist/stdio.js"],
      "env": {
        "LOCALSTACK_AUTH_TOKEN": "<YOUR_TOKEN>"
      }
    }
  }
}

LocalStack Configuration

Variable NameDescriptionDefault Value
LOCALSTACK_AUTH_TOKEN (required)The LocalStack Auth Token to use for the MCP serverNone
MAIN_CONTAINER_NAMEThe name of the LocalStack container to use for the MCP serverlocalstack-main
MCP_ANALYTICS_DISABLEDDisable MCP analytics when set to 10
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 with set-status.0
AWS_ACCESS_KEY_ID (required for AWS Replicator tool)Source AWS access key used by AWS Replicator to read external AWS resourcesNone
AWS_SECRET_ACCESS_KEY (required for AWS Replicator tool)Source AWS secret access key used by AWS Replicator to read external AWS resourcesNone
AWS_DEFAULT_REGION (required for AWS Replicator tool)Source AWS region used by AWS ReplicatorNone

For AWS Replicator-specific source credentials, you can use the AWS_REPLICATOR_SOURCE_ prefixed variants instead of the unprefixed variants. Do not mix the prefixed and unprefixed source credential groups; when any AWS_REPLICATOR_SOURCE_ variable is set, the Replicator tool reads the source configuration only from that group.

Contributing

Built on the XMCP framework, you can add new tools by adding a new file to the src/tools directory and documenting it in the manifest.json file.

Pull requests are welcomed on GitHub! To get started:

  • Install Git and Node.js
  • Clone the repository
  • Install dependencies with yarn
  • Build with yarn build

MCP Server Tester

This repository includes MCP Server Tester for tool validation in direct mode and LLM host mode.

  • Run direct MCP tests (deterministic):
    bash
    yarn test:mcp:direct
  • Run Gemini-based MCP host evals:
    bash
    export GOOGLE_GENERATIVE_AI_API_KEY="<your-gemini-key>"
    export LOCALSTACK_AUTH_TOKEN="<your-localstack-auth-token>"
    yarn test:mcp:evals
  • Open the latest MCP Server Tester HTML report:
    bash
    npx mcp-server-tester open
  • Run both:
    bash
    yarn test:mcp

Notes:

  • MCP tests target the local STDIO server command node dist/stdio.js by default.
  • LOCALSTACK_AUTH_TOKEN is required for all MCP tool usage and test suites.
  • You can override the target command with:
    • MCP_TEST_COMMAND
    • MCP_TEST_ARGS (space-separated arguments)

License

Apache License 2.0

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "localstack-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@localstack/localstack-mcp-server"
      ]
    }
  }
}

Use LocalStack MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once LocalStack is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add LocalStack as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the LocalStack MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "localstack": {
      "command": "npx",
      "args": [
        "-y",
        "@localstack/localstack-mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the LocalStack MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the LocalStack MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use LocalStack to help me with this task?
LocalStack
Sure. I read it.
Here is what I found using LocalStack.

Frequently asked questions

What is the LocalStack MCP server used for?

LocalStack is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use LocalStack MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use LocalStack with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use LocalStack MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With LocalStack connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect LocalStack MCP to TypingMind?

LocalStack runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does LocalStack MCP provide in TypingMind?

LocalStack exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use LocalStack MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If LocalStack requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇