Skip to main content
Glama
Code Gym AWS Emulator MCP

Code Gym AWS Emulator MCP

by B11-Health

See the proof in 90 seconds

Narrated beta.15 overview

Watch the narrated 87-second walkthrough · Try the interactive Demo Studio · Transcript and captions · Proof and limitations

Start with the smallest real check on Node.js 20+. Docker and AWS credentials are not required to do this first step:

git clone --depth 1 --branch v0.4.0-beta.15 https://github.com/B11-Health/aws-emulator-mcp.git
cd aws-emulator-mcp
node bin/aws-emulator-mcp.mjs try --json

That verifies seven generated architecture artifacts and explicitly reports the 14-step contract as not executed. For real emulator-backed tests, install local Docker with Linux containers and run preflight followed by doctor. The newer master source adds a read-only preflight host-space advisory and checks cached image source fingerprints before reuse. Linux Engine hosts can additionally expose a sanitized host-visible Docker data-root volume reading, but no host probe proves Docker Desktop VM capacity or AWS service fidelity. These additions are not in the pinned beta.15 tag. First-run details. The video is an edited, narrated explanation using actual offline CLI output and linked project-maintained CI evidence, not an uncut terminal capture or AWS fidelity certification.

Related MCP server: MCP LocalStack Server

Connect to an AI assistant

VS Code Copilot: run node bin/aws-emulator-mcp.mjs config copilot to print a native mcpServers definition. Claude Desktop: an optional unsigned MCPB developer preview reduces JSON setup, but you still need to install and run local Docker. Neither route is a hosted public MCP endpoint or a production AWS deployment.

Current desktop install guide and safety limits

Help build and test it

Outside contributors welcome. You do not need repository write access or an AWS account to help. A real first-run failure report, accessibility fix or reproducible API gap is more useful than an unverified claim.

Join the community · Start contributing · Get support · Browse good first issues · Report a first-run result

Open requests include Windows/macOS/Linux first runs, the optional unsigned Claude Desktop preview, and keyboard/screen-reader testing of the Demo Studio. Maintainers can assign scoped tasks without granting push or admin privileges. Independent user reports are distinguished from project-maintained CI.

Why another MCP if AWS already supports agents?

AWS Emulator already works with AWS SDKs, the CLI and coding agents. Use it directly if those tools meet your needs. This independent adapter is worth considering when an agent needs bounded MCP operations, a reproducible synthetic failure/repair experiment, or a read-only source-level PR review with sanitized evidence. It is not an AWS compatibility layer, IAM tester, general-purpose application runner or cloud deployment tool.

Compare native AWS Emulator vs this adapter: concrete tasks, commands and tradeoffs.

Explore the actual outputs first

No AWS account, website or Docker required to inspect the artifacts. The v0.4.0-beta.15 GitHub release includes directly downloadable, checksum-verifiable artifacts: the actual architecture diagram, editable draw.io source, CloudFormation YAML, an example archive, an npm package, and checksums.

Preview

What it proves

Architecture SVG

Proposed S3, DynamoDB and SQS nodes and conceptual connections

View

Editable draw.io diagram

Same graph in editable source form

Inspect

CloudFormation YAML

The three actual resources the template defines

Review

14-step AWS SDK contract

Separate synthetic test plan, validated with the local emulator

Inspect

Test the architecture tool without Docker or an AWS account. On the beta.15 checkout, one command builds a temporary architecture, validates the seven generated artifacts and their hashes, reports the three supported resource types and a separate 14-step unexecuted synthetic contract, then removes the temporary files:

git clone --depth 1 --branch v0.4.0-beta.15 https://github.com/B11-Health/aws-emulator-mcp.git
cd aws-emulator-mcp
node bin/aws-emulator-mcp.mjs try
# Sanitized, bounded proof for a developer feedback report:
node bin/aws-emulator-mcp.mjs try --json

This verifies only the offline architecture generator, not AWS API behavior, IAM policy enforcement or a deployment. To keep and inspect the artifacts, run node bin/aws-emulator-mcp.mjs architecture demo.

Check local readiness before the large emulator build (included in beta.15):

git clone --depth 1 --branch v0.4.0-beta.15 https://github.com/B11-Health/aws-emulator-mcp.git
cd aws-emulator-mcp
node bin/aws-emulator-mcp.mjs preflight
# Or get a bounded, sanitized report to include in a field report:
node bin/aws-emulator-mcp.mjs preflight --json
# Still useful without Docker or a global CLI installation:
node bin/aws-emulator-mcp.mjs architecture demo

preflight checks Node.js, local Docker context, Linux-container mode and daemon, and whether the versioned image is cached. It never builds or launches Docker containers. Without Docker, Architecture Studio still works. A successful preflight is not a disk-capacity check, image-source verification or proof of emulator API coverage. Docker-backed commands in the current source checkout verify a build-input fingerprint before image reuse and rebuild stale cached bundles. This prevents same-tag checkout collisions; it is not a security signature. Setup details.

Generate all seven synchronized artifacts yourself (Node.js 20+, Git and npm; Docker is not needed for generation):

npm install -g "github:B11-Health/aws-emulator-mcp#v0.4.0-beta.15"
aws-emulator-mcp architecture demo

The application actor and diagram arrows are conceptual, not a deployed application or IAM wiring. Running the generated SDK contract later requires local Docker. No command here deploys to a real AWS account.

See what your agent can do

Check a proposed AWS call before executing it. In the current source checkout, ask your assistant to preview a DynamoDB PutItem request. The Docker MCP server shows required fields, explains nested input errors, and lets you inspect the expected response. Request preview example.

Catch an application bug. Our sample Python order service writes to DynamoDB, stores an S3 receipt, and sends a fulfillment message through SQS. When a client retries, the buggy version sends the event twice. A conditional DynamoDB write fixes it.

After two identical requests

Before

After

Accepted orders

2

1

SQS fulfillment messages

2

1

Resource cleanup checks

7/7

7/7

The application walkthrough includes the Python source, exact patch, run-by-run assertions, and a saved test result. This demo runs the bundled reference fix; the MCP tool does not execute code supplied by an agent.

Find a test for an existing Python app

On the development branch, run node bin/aws-emulator-mcp.mjs project-plan /path/to/app from the MCP checkout. The command lists direct Boto3 calls with their source locations, matches them to local SDK tests, and flags calls and arguments that need their own tests. Directory mode reads tracked Python files. You can also select a single module. Planning requires Python 3.10+ and works offline. Generate and run a contract for your app.

To inspect without running your application, use node bin/aws-emulator-mcp.mjs project-check /path/to/app. Add --run to execute matched synthetic SDK tests in isolated Docker and see which call sites have passing probes, failing probes or no test. No application code is executed, and passing API probes are not evidence that the application's fix is verified. Use --run --challenge for an opt-in negative control that confirms one intentionally wrong test expectation gets caught by the isolated emulator. Developer-authored JSON contracts can also use aws-emulator-mcp contract ./my-contract.json --challenge; MCP clients can set contract_run's negativeControl: true option. Both are opt-in and retain the distinction between API tests and actual application verification. Project check details.

Verify your application's actual behavior (experimental, local-only)

Synthetic SDK checks tell you that AWS operations work in isolation. They can't establish whether your Python function does the right thing. In a development checkout containing this feature, you can now select a trusted Python handle(clients, inputs) function and a separate JSON test case with setup, independent AWS state assertions, SDK call counters and cleanup. No source is executed through remote MCP or untrusted GitHub PRs.

node bin/aws-emulator-mcp.mjs app-case-compare \
  examples/app-case/buggy.py examples/app-case/fixed.py \
  examples/app-case/sqs-idempotency.json --json

In the sample, two identical application requests initially cause two SQS messages. A conditional DynamoDB write changes the observed result to one message. Both sides run against separate isolated emulators. The same independent regression assertion fails before and passes after, with resource cleanup verified. This proves that one trusted function and its named invariant passed locally; not that the whole project or AWS production behavior was verified.

Less hand-authoring on day one: a read-only static inspector now finds literal clients["service"].sdk_method calls, reports recognizable input names, suggests reviewable example cases and flags obvious gaps between observed call syntax and the case's expected call counters—without importing or executing the application or building Docker. Host Python 3.10+ is required for this optional command:

node bin/aws-emulator-mcp.mjs app-case-inspect \
  examples/app-case/fixed.py examples/app-case/sqs-idempotency.json --json

It returns a deliberately incomplete, non-runnable starter case; a human must supply actual assertions, synthetic fixtures and cleanup. A second S3 object-length before/after example shows a separate application invariant, tested on signed AWS Emulator 1.0.506.

Full workflow, trust boundary and case schema · Recorded local evidence.

Test your own Python handler, not just our bundled files

A first, intentionally limited Bring Your Own App pilot lets you choose a trusted local Python submit_order function. It executes only after an explicit terminal command, in a one-shot network-disabled Docker container, against verified local DynamoDB, S3 and SQS APIs.

# To run the shipped examples, first open the versioned Git checkout:
git clone --depth 1 --branch v0.4.0-beta.15 https://github.com/B11-Health/aws-emulator-mcp.git
cd aws-emulator-mcp
aws-emulator-mcp app-verify examples/byo-order-handler/fixed.py --json
aws-emulator-mcp app-verify examples/byo-order-handler/buggy.py --json  # expected failure

# Or supply the actual path to a Python order handler you own:
aws-emulator-mcp app-verify /path/to/my-order-handler.py --json

Compare your own trusted before/after handlers (included in beta.15):

# From a checkout containing this feature (requires local Docker):
node bin/aws-emulator-mcp.mjs app-compare \
  examples/byo-order-handler/buggy.py \
  examples/byo-order-handler/fixed.py --markdown > byo-comparison.md
# Or export redacted machine-readable proof for a PR:
node bin/aws-emulator-mcp.mjs app-compare \
  examples/byo-order-handler/buggy.py \
  examples/byo-order-handler/fixed.py --json > byo-comparison.json

Each file runs against separate ephemeral Docker labs. A passing comparison requires the old handler to reproduce exactly two accepted submissions and two fulfillment messages, the new handler to pass all eight invariants, and both runs to pass all seven cleanup checks. Output includes source hashes, not code, payloads or SDK responses. This is only the order-handler pilot; never feed untrusted PR code into this opt-in local command.

Source ABI, security limits, and actual 1.0.385 test evidence. The developer-selected fixed handler passed 8/8 functional assertions and 7/7 cleanup checks; the deliberately broken handler reproduced two accepted orders and two SQS events. Typed tenant/customer/currency and amount fields are included. These are emulator application tests, not proof of AWS compatibility or an arbitrary repository test runner. Only use Python source you own and trust. This command cannot be invoked through the MCP server or the read-only PR Actions.

See architecture changes before anyone deploys

What if an AI-generated pull request changes your infrastructure design? Architecture Review shows the old and new AWS blueprint side by side, flags potentially destructive changes, and attaches CloudFormation drafts and editable diagrams to a read-only GitHub Actions check. No AWS account, Docker, cloud mutations or credentials required.

Actual generated AWS Architecture Review: S3/DynamoDB/SQS

The bundled example detects a new SQS queue and a changed DynamoDB partition key. A high-priority review flag is a warning, not a prediction that AWS will replace a resource. This is a source-level diagram comparison, not an AWS CloudFormation change set or deployment.

aws-emulator-mcp architecture review \
  examples/architecture/review/before.json \
  examples/architecture/review/after.json --json

Use it in a GitHub pull request (read-only repository permissions and a full-history checkout required):

- uses: B11-Health/aws-emulator-mcp@v0.4.0-beta.15
  with:
    manifest: .aws-emulator/architecture.json
    fail-on-risk: high

The action.yml at repository root supports this short entrypoint; for production workflows, pin the exact 40-character reviewed commit. See the separate project-maintained green add-only PR and red intentionally blocked key-change PR. These are actual cross-repository executions, not independent endorsements.

Add the read-only PR review action to your own repo. See the actual warning report and GitHub job summary.

Test what happens when a cloud response is lost

Can your application recover when an AWS operation times out—or when a message reaches SQS but its acknowledgement never reaches the caller?

aws-emulator-mcp failure-lab compare

The Failure Lab reproduces a missing fulfillment event from a fragile order workflow, verifies a recoverable pending-state approach, and shows why an idempotent consumer matters when SQS deliveries duplicate. The beta.15 failure-lab partial-compare scenario checks a DynamoDB write followed by a failed S3 receipt upload and tests whether retry recovers both the receipt and SQS event. See partial-write limitations. The fault is injected at the local SDK boundary; the state changes are verified through actual AWS Emulator APIs. Recorded run evidence. Your agent can use failure_lab_catalog to inspect both reviewed application sources and their diff, then failure_lab_run to verify the measured behavior without executing arbitrary code.

Test an AWS workflow of your own

Go beyond the bundled demonstration. Give your agent a declarative JSON contract that specifies AWS SDK calls, references results from previous calls, and asserts what must be true. The runner returns per-step evidence while executing against an isolated, fresh emulator — not your AWS account.

aws-emulator-mcp contract demo                # built-in S3 example
aws-emulator-mcp contract my-workflow.json --json
aws-emulator-mcp contract fault-demo --json  # simulate a lost SQS acknowledgement

The Docker MCP client exposes contract_guide and contract_run. The run supports modeled operations across AWS SDK services, subject to what the emulator actually implements, with a 16-step limit and no arbitrary script execution. Each MCP contract receives its own ephemeral emulator state. The contract runner also accepts one synthetic SDK-boundary timeout per plan: fail before a supported write, or suppress its acknowledgement after a successful emulated write. This lets your agent propose and replay failure/retry experiments for AWS API workflows expressed as JSON, without executing application source code. See the contract format, failure examples, and security boundaries.

Design infrastructure and export visual AWS diagrams

Architecture Studio compiles one typed architecture manifest into CloudFormation YAML/JSON, an SVG diagram, an editable draw.io file, and a separate synthetic emulator API test. The first release supports S3, DynamoDB and SQS without needing an AWS account or Docker to generate files.

aws-emulator-mcp architecture demo
# Files appear in reports/architecture-studio/
# Open diagram.svg or edit diagram.drawio

Generated AWS Emulator MCP Architecture Studio diagram

The application box and arrows illustrate conceptual flow. Only the S3, DynamoDB and SQS resources are represented in CloudFormation; no application handler, IAM permissions, service integration or live stack is created. The generated contract.json separately exercises synthetic AWS SDK equivalents inside the isolated emulator when you choose to run it.

Inspect the manifest, template, diagrams and limits.

Make failed AWS contracts block a pull request

Your agent writes a small JSON contract, and a GitHub Action runs it in a fresh local emulator whenever a PR opens. A failed assertion turns the check red; a passed check includes a job summary and downloadable, sanitized evidence. No AWS account or credentials are used.

# .github/workflows/aws-emulator-contracts.yml
name: AWS Emulator contracts
on: [pull_request]
permissions:
  contents: read
jobs:
  contracts:
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
      - uses: B11-Health/aws-emulator-mcp/.github/actions/contract-gate@v0.4.0-beta.15
        with:
          directory: .aws-emulator/contracts

Add 1-6 JSON files to .aws-emulator/contracts. You can also run aws-emulator-mcp gate .aws-emulator/contracts locally before pushing. Copy the workflow, choose example contracts, and inspect the security limits.

AWS builders: what would you change?

AWS already provides a local emulator and its own agent workflows. This is an independent MCP adapter, not an AWS product or endorsement. We'd value a hard technical review of the added layer: the isolated tool surface, bounded failure contracts, PR-gate evidence, and first-run developer experience.

Give critical feedback — even if you wouldn't use it. The field-report form asks for a concrete scenario, observations, and redacted evidence. The aim is to learn what is useful, redundant, or misleading.

Get started

Requirements depend on what you want to do: Node.js 20+ and Git are sufficient to generate Architecture Studio artifacts. Docker Desktop or Docker Engine is only needed when running the local AWS Emulator and SDK tests. The first Docker image build requires an internet connection and sufficient free disk space.

npm install -g "github:B11-Health/aws-emulator-mcp#v0.4.0-beta.15"

# Run the before-and-after application test
aws-emulator-mcp app-debug compare

# Explore the available experiments
aws-emulator-mcp experiments

The launcher is currently installed from GitHub (it is not yet published on npm). The first runtime command builds a Docker image using the signed AWS Emulator package; later runs reuse that image. For reproducible work, keep the tag or pin an exact tested commit.

Connect your AI assistant

aws-emulator-mcp config vscode
aws-emulator-mcp config copilot

Copy the generated MCP configuration into a compatible local client. It runs over standard input/output, without exposing a public server.

Try this prompt:

Inspect the order-intake sample, explain why a retry publishes two fulfillment messages, and run the before-and-after test. Show me the code change and confirm whether cleanup passed.

The local MCP tools app_debug_catalog and app_debug_run expose the packaged source and its test results. Follow the onboarding guide for Windows, macOS, and Linux setup.

Explore the lab

Workflow

Try it

Duplicate-order debugging

aws-emulator-mcp app-debug compare

Retry and lost-acknowledgement failures

aws-emulator-mcp failure-lab compare

SNS → SQS message delivery

aws-emulator-mcp experiment sns-sqs-delivery

EC2 network lifecycle

aws-emulator-mcp experiment ec2-vpc-lifecycle

Recover a missing S3 object

aws-emulator-mcp experiment s3-recovery

Discover the full catalog

aws-emulator-mcp experiments

Check selected AWS API responses

aws-emulator-mcp coverage

Eight built-in experiments exercise S3, DynamoDB, SQS, SNS, EC2, EventBridge, SSM Parameter Store, and Secrets Manager workflows. The application debugging example uses three AWS services together. All scenarios operate on synthetic local resources and verify scoped cleanup. Browse the demos or read the experiment guide.

What's under the hood?

  • 29 curated MCP tools, plus 10 Docker-only tools for SDK discovery, request preview, API invocation, coverage, application debugging, replayable contracts and failure/recovery testing.

  • Verified stateful workflows: reproducible order-processing bug and reference fix, a developer-selected Python order handler, isolated SDK contracts and GitHub PR review.

  • Coverage is measured per operation and application workflow—not by SDK catalog size. An SDK model is not an implemented emulator service; passing zero-argument List*/Describe* probes does not prove write behavior, real events, IAM or AWS compatibility.

  • The exact historical read-only probe results and methodology are available for reproducibility, not as a general supported-service coverage score.

The Docker integration uses local-only, network-isolated runtime containers and emulator-issued credentials. AWS Emulator is intended for development and testing, not production AWS; API fidelity and IAM behavior vary. See the coverage report and security notes.

Documentation and contributing

Guided onboarding · Demo gallery · Application debugging · Your Python handler · Failure Lab · Service coverage · Architecture and setup · Contributing · Issues


AWS Emulator MCP is an independent open-source integration maintained under the B11-Health GitHub account. AWS Emulator itself is an AWS project. This integration is not affiliated with or endorsed by AWS.

Available Tools

27 tools
dynamodb_create_tableC

Create DynamoDB table with string id key

Inputs: table (required).

dynamodb_delete_tableC
Destructive

Delete emulated DynamoDB table

Inputs: table (required).

dynamodb_describe_tableC
Read-onlyIdempotent

Describe emulated DynamoDB table

Inputs: table (required).

dynamodb_get_itemC
Read-onlyIdempotent

Read DynamoDB item

Inputs: table (required), item_id (required).

dynamodb_list_tablesB
Read-onlyIdempotent

List emulated DynamoDB tables

Inputs: no named parameters.

dynamodb_put_itemC

Store id and message strings

Inputs: table (required), item_id (required), message (required).

emulator_doctorB
Read-onlyIdempotent

Diagnose local install, CA, credentials, TLS, and STS with safe fixes

Inputs: no named parameters.

emulator_healthC
Read-onlyIdempotent

Check local HTTPS emulator health

Inputs: no named parameters.

emulator_identityB
Read-onlyIdempotent

Verify isolated STS account 000000000000

Inputs: no named parameters.

emulator_order_demoB

Run synthetic S3 + DynamoDB + SQS order workflow with a controlled failure, repair, and cleanup

Inputs: no named parameters.

emulator_self_testA

Run isolated local S3, DynamoDB, and SQS round trips, with cleanup

Inputs: no named parameters.

emulator_startB

Start official AWS Emulator with telemetry disabled

Inputs: no named parameters.

emulator_statusB
Read-onlyIdempotent

Inspect official local AWS Emulator status

Inputs: no named parameters.

emulator_stopA
Destructive

Stop only an MCP-managed emulator process

Inputs: no named parameters.

s3_create_bucketC

Create emulated S3 bucket

Inputs: bucket (required).

s3_delete_bucketB
Destructive

Delete empty emulated S3 bucket

Inputs: bucket (required).

s3_delete_objectC
Destructive

Delete emulated S3 object

Inputs: key (required), bucket (required).

s3_get_objectC
Read-onlyIdempotent

Read UTF-8 text from emulated S3

Inputs: key (required), bucket (required).

s3_list_bucketsA
Read-onlyIdempotent

List emulated S3 buckets

Inputs: no named parameters.

s3_list_objectsC
Read-onlyIdempotent

List keys in emulated S3 bucket

Inputs: bucket (required).

s3_put_objectC

Put UTF-8 text in emulated S3

Inputs: key (required), text (required), bucket (required).

sqs_create_queueC

Create emulated SQS standard queue

Inputs: queue (required).

sqs_delete_messageC
Destructive

Delete emulated SQS message by receipt handle

Inputs: queue (required), receipt_handle (required).

sqs_delete_queueC
Destructive

Delete an emulated SQS queue

Inputs: queue (required).

sqs_list_queuesA
Read-onlyIdempotent

List emulated SQS queue names

Inputs: no named parameters.

sqs_receive_messagesC

Receive up to one emulated SQS message

Inputs: queue (required).

sqs_send_messageC

Send text message to emulated SQS

Inputs: queue (required), message (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 27 tools

    Disambiguation4/5

    The S3, SQS, and DynamoDB tools are cleanly separated by service prefix and action, so agents can choose confidently. The only mild overlap is among emulator status/health/identity/doctor and between self_test and order_demo, which all inspect or exercise the emulator in related ways.

    Naming Consistency4/5

    Most tools follow predictable lower_snake_case with a service prefix plus verb/noun, such as s3_create_bucket and sqs_send_message. The emulator_* group uses noun-like suffixes (status, doctor, health, identity) rather than verbs, which is a minor but noticeable deviation.

    Tool Count3/5

    The 27 tools are split across four coherent areas: emulator lifecycle, S3, SQS, and DynamoDB. It is reasonable for an AWS emulator server but sits above the ideal 3–15 range and feels somewhat heavy.

    Completeness4/5

    Core CRUD coverage exists for S3 buckets/objects, SQS queues/messages, and DynamoDB tables/items, plus lifecycle and diagnostic support. Minor gaps remain, such as DynamoDB update/query/scan and richer SQS queue/message operations, but main emulator workflows are covered.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers