io.github.localstack/localstack-mcp-server

平台与服务

by localstack

基于 LocalStack 的 MCP server,提供本地云开发与测试所需的核心工具,便于模拟云服务环境。

什么是 io.github.localstack/localstack-mcp-server

基于 LocalStack 的 MCP server,提供本地云开发与测试所需的核心工具,便于模拟云服务环境。

README

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. (requires active license)
  • Inject chaos faults and network effects into LocalStack to test system resilience. (requires active license)
  • Manage LocalStack state snapshots via Cloud Pods for development workflows. (requires active license)
  • Install, remove, list, and discover LocalStack Extensions from the marketplace. (requires active license)
  • Launch and manage Ephemeral Instances for remote LocalStack testing workflows.
  • 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<br/>- Integrate LocalStack authentication tokens<br/>- Inject custom environment variables<br/>- 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<br/>- Enable parameterized deployments with variable support<br/>- Process and present deployment results<br/>- 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<br/>- Filter by specific services and operations<br/>- Generate API call metrics and failure breakdowns<br/>- 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<br/>- Search logs for permission-related violations<br/>- Generate IAM policies automatically from detected access failures<br/>- 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<br/>- Configure network latency effects<br/>- Comprehensive fault targeting by service, region, and operation<br/>- Built-in workflow guidance for chaos experiments<br/>- Requires a valid LocalStack Auth Token
localstack-cloud-podsManages LocalStack state snapshots for development workflows- Save current state as Cloud Pods<br/>- Load previously saved Cloud Pods instantly<br/>- Delete Cloud Pods or reset to a clean state<br/>- Requires a valid LocalStack Auth Token
localstack-extensionsInstalls, uninstalls, lists, and discovers LocalStack Extensions- Manage installed extensions via CLI actions (list, install, uninstall)<br/>- Browse the LocalStack Extensions marketplace (available)<br/>- 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<br/>- List available ephemeral instances, fetch logs, and delete instances<br/>- Supports lifetime, extension preload, Cloud Pod preload, and custom env vars on create<br/>- 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<br/>- Sanitizes commands to block shell chaining<br/>- Auto-detects LocalStack coverage errors and links to docs
localstack-docsSearches LocalStack documentation through CrawlChat- Queries LocalStack docs through a public CrawlChat collection<br/>- Returns focused snippets with source links only<br/>- Helps answer coverage, configuration, and setup questions without requiring LocalStack runtime

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

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
    
code
- 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

<a href="https://glama.ai/mcp/servers/@localstack/localstack-mcp-server"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@localstack/localstack-mcp-server/badge" alt="LocalStack Server MCP server" /> </a>

常见问题

io.github.localstack/localstack-mcp-server 是什么?

基于 LocalStack 的 MCP server,提供本地云开发与测试所需的核心工具,便于模拟云服务环境。

相关 Skills

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描111.1k

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描111.1k

MCP服务构建器

by alirezarezvani

Universal
热门

从 OpenAPI 一键生成 Python/TypeScript MCP server 脚手架,并校验 tool schema、命名规范与版本兼容性,适合把现有 REST API 快速发布成可生产演进的 MCP 服务。

帮你快速搭建 MCP 服务与后端 API,脚手架完善、扩展顺手,尤其适合想高效验证服务能力的开发者。

平台与服务
未扫描9.6k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
83.0k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
78.3k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
34.8k

评论