Code Gym AWS Emulator MCP
Use this server to control a local isolated AWS Emulator and exercise emulated S3, SQS, and DynamoDB workflows without a real AWS account.
Inspect emulator status, health, identity, and run doctor diagnostics with safe fixes.
Start and stop MCP-managed local emulator processes.
Create, list, and delete emulated S3 buckets; put, get, list, and delete UTF-8 objects.
Create, list, and delete emulated SQS standard queues; send and receive messages; delete messages by receipt handle.
Create, list, describe, and delete emulated DynamoDB tables; put and get string items.
Run isolated S3/DynamoDB/SQS self-tests and a synthetic order workflow demo with controlled failure, repair, and cleanup.
Click on "Deploy 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., "@Code Gym AWS Emulator MCP Create an S3 bucket, store a note in it, and read it back."
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.
See the proof in 90 seconds

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 --jsonThat 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 | |
Proposed S3, DynamoDB and SQS nodes and conceptual connections | View | |
Same graph in editable source form | Inspect | |
The three actual resources the template defines | Review | |
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 --jsonThis 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 demopreflight 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 demoThe 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 --jsonIn 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 --jsonIt 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 --jsonCompare 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.jsonEach 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.
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 --jsonUse 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: highThe 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 compareThe 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 acknowledgementThe 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.drawioThe 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/contractsAdd 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 experimentsThe 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 copilotCopy 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 |
|
Retry and lost-acknowledgement failures |
|
SNS → SQS message delivery |
|
EC2 network lifecycle |
|
Recover a missing S3 object |
|
Discover the full catalog |
|
Check selected AWS API responses |
|
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 toolsdynamodb_create_tableC
Create DynamoDB table with string id key
Inputs: table (required).
dynamodb_delete_tableCDestructive
Delete emulated DynamoDB table
Inputs: table (required).
dynamodb_describe_tableCRead-onlyIdempotent
Describe emulated DynamoDB table
Inputs: table (required).
dynamodb_get_itemCRead-onlyIdempotent
Read DynamoDB item
Inputs: table (required), item_id (required).
dynamodb_list_tablesBRead-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_doctorBRead-onlyIdempotent
Diagnose local install, CA, credentials, TLS, and STS with safe fixes
Inputs: no named parameters.
emulator_healthCRead-onlyIdempotent
Check local HTTPS emulator health
Inputs: no named parameters.
emulator_identityBRead-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_statusBRead-onlyIdempotent
Inspect official local AWS Emulator status
Inputs: no named parameters.
emulator_stopADestructive
Stop only an MCP-managed emulator process
Inputs: no named parameters.
s3_create_bucketC
Create emulated S3 bucket
Inputs: bucket (required).
s3_delete_bucketBDestructive
Delete empty emulated S3 bucket
Inputs: bucket (required).
s3_delete_objectCDestructive
Delete emulated S3 object
Inputs: key (required), bucket (required).
s3_get_objectCRead-onlyIdempotent
Read UTF-8 text from emulated S3
Inputs: key (required), bucket (required).
s3_list_bucketsARead-onlyIdempotent
List emulated S3 buckets
Inputs: no named parameters.
s3_list_objectsCRead-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_messageCDestructive
Delete emulated SQS message by receipt handle
Inputs: queue (required), receipt_handle (required).
sqs_delete_queueCDestructive
Delete an emulated SQS queue
Inputs: queue (required).
sqs_list_queuesARead-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
Scored across 27 tools
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.
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.
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.
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
Related MCP Connectors
Email inboxes, webhooks, mock APIs, 2FA codes, approvals and 170 tools for AI agents.
AI-callable tools for API mocking, testing, monitoring, security, and automation.
Email inboxes, webhook URLs, mock APIs and 170+ tools for coding agents over one MCP connection.
Run commands, code and file operations for AI agents in Cloud Hypervisor microVM sandboxes.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides a comprehensive suite of tools for interacting with AWS services like S3, EC2, and Lambda using natural language commands. It enables AI assistants to inspect, manage, and operate AWS resources directly through the Model Context Protocol using your local credentials.1Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides conversational access to LocalStack AWS services (S3, DynamoDB, Lambda, SQS) through natural language, enabling local cloud infrastructure management without real AWS costs.MIT
- AlicenseBqualityDmaintenanceExposes LocalStack-managed AWS services as AI-agent tools, enabling LLMs and AI agents to interact with local AWS infrastructure during development and testing.7353 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to discover and invoke filesystem, notes, SQLite, and utility operations over MCP, with a local-first sandbox and dashboard for testing and management.MIT