emfirge
Accepts Terraform plans as an input to model proposed infrastructure changes on an Emfirge branch, enabling agents to evaluate those changes before applying them.
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., "@emfirgeShow me the worst attack path from the internet."
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.
๐ก๏ธ Emfirge
Give your agent a branch of your cloud.
AI agents are starting to change real infrastructure. Emfirge is the harness that lets them try first, on a branch of your live AWS, judged by lenses that show what the change would actually do.
Get started ยท Docs ยท npm
Built by Ansh Sonkar
Your agent wants to "clean up unused databases"
Without Emfirge, it calls DeleteDBInstance and you learn from your on-call channel what that database was for.
With Emfirge, the agent does it on a branch first:
you โธ Clean up the unused databases in us-east-1.
agent โธ I tried it on a branch first. Verdict: BLOCK
โ recently_used
CloudWatch metrics show a deleted resource was used in the last 90 days
โ orders-db
โ data_store_deleted_no_recovery_point
Deleted data store has no recovery point
โ orders-db
Branch #2, deleting only legacy-reports-db, passes.
Want the exact API call for that one?Nothing touched production. The agent changed its plan, and the hand-back it gives you is bound by hash to the verdict it passed.
Simplified output. The reason codes and messages are the engine's real ones.
Related MCP server: AWS Infrastructure MCP Server
Three layers
๐งฐ The harness: the product
Where the agent works, what it may see, what it gets back, and what it can't skip.
Read-only, always. Emfirge never writes to your cloud. You or your pipeline apply the approved change.
Private by default. AWS identifiers are tokenized on your machine before the LLM sees them.
No silent passes. A change Emfirge can't model can't
pass. A missing check is reported, not hidden.
๐ฟ The branch: the engine
A Git-style copy of a model of your live AWS: a base snapshot plus an ordered list of changes.
Git-style operations. Fork, roll back, compare and discard, like you would with code.
Many ways in. Feed it typed changes, a Terraform plan, a CloudFormation change set, AWS API calls or AWS CLI commands. The same change gives the same answer whichever way it comes in.
A two-sided diff. See what was added and removed, what became reachable from the internet, and the cost before and after.
๐ Lenses: what gets measured
Each lens judges the branch from one angle, and together they produce a single pass / warn / block.
Lens | Asks | |
โ | Security | Does this expose something, or open a privilege-escalation path? |
โ | Dependencies | What breaks if this is removed? Is it still in use? Can it be recovered? |
โ | Compliance | Which CIS and SOC 2 controls flip? |
๐ก | Cost | What does it cost before and after? (early: a fixed price table) |
๐ก | Limits | Will it hit an AWS quota? (early: AWS default quotas) |
๐ | Yours | Bring your own evaluator, run against the same branch contract. |
Try it
npx @emfirge/mcp installThen tell your assistant:
Help me set up Emfirge, then scan arn:aws:iam::123456789012:role/EmfirgeReadOnly in us-east-1The account ID is a placeholder. Setup gives you a one-click CloudFormation link for a read-only role, and you can delete the stack any time to revoke access.
The installer sets up Claude Desktop, Claude Code, Cursor, Kiro, Cline, Continue and Codex, and you can configure any other MCP client by hand. You can also use the API or the branch CLI. See all the tools in the MCP README.
Built to be trusted
Every behaviour of the engine is pinned by a numbered law, a property test that must always hold. There are 48 so far, for example:
L1: an empty branch scores exactly like the live scan. L7: the same snapshot and changes always give the same verdict. L9: your identifiers never appear in free-text output. L12: evidence can make a verdict stricter, never looser. L21: a Terraform security-group rule and the equivalent AWS API call get the same verdict.
The checks come from public sources rather than hand-written lists: pathfinding.cloud escalation paths, policy_sentry IAM data, and AWS schemas. Every CI run publishes a scorecard.
What Emfirge does not claim: a branch is a model of your cloud, so a pass is evidence, not a guarantee. If any part of the check was skipped, the verdict says so. Today Emfirge is a safe workspace, not a gate that blocks a live apply.
Resource type | Add | Modify | Delete |
EC2 instance, security group, RDS instance, S3 bucket, Lambda function, network ACL | โ | โ | โ |
IAM role (including trust policy) | โ | โ | โ |
IAM user, NAT gateway | โ | ||
RDS snapshot | โ | โ | |
EBS volume | โ | โ | |
EBS snapshot | โ | ||
Route table | โ | โ | |
IAM role policy | โ |
The live GET /branches/capabilities endpoint is the authoritative list, and GET /branches/field-catalog lists every settable field with the AWS API member it stands for. Most resource types also carry tags; a tag change replaces the complete user tag set. Anything not modeled degrades the verdict rather than passing.
Path | What it is | License |
The engine: collector, graph, branches, input adapters, lenses, verdict, hand-back | AGPL-3.0 | |
| Apache-2.0 | |
Docs at emfirge.cloud/docs | AGPL-3.0 | |
The read-only customer role | AGPL-3.0 |
Built by
Emfirge is designed and built by Ansh Sonkar (@theanshsonkar): the engine, the branch model, the lenses and the MCP.
Building with AI agents on AWS, or want to talk about Emfirge? Email ansh@emfirge.cloud.
Contributing ยท Security ยท Privacy
This server cannot be deployed
Maintenance
Related MCP Connectors
AWS cloud security scanners for AI agents โ S3, IAM, EC2, EKS, RDS, CloudTrail, CloudWatch Logs
Threat modeling, code/cloud/pipeline scanning, shadow-AI discovery, compliance checks and fixes.
IaC attack-path auditor: finds internet-to-crown-jewel chains in Terraform/CFN/K8s.
Attack paths, scan findings and shadow AI for AI-native apps and their clouds; vet MCP servers.
Related MCP Servers
- AlicenseAqualityCmaintenanceA local-first AWS security tool that uses graph theory to discover attack paths (e.g., Internet โ Role โ DB) and prioritize remediations. It allows agents to perform read-only security audits and generate Terraform fixes without data exfiltration.1528 PyPI4Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables Claude AI to automatically audit AWS cloud resource configurations, diagnose security vulnerabilities, and generate high-availability optimization reports.-

shieldly-mcpofficial
AlicenseAqualityDmaintenanceEnables AI assistants to analyze AWS IAM policies and CloudFormation templates for security risks.216 npmMIT- AlicenseAqualityBmaintenanceEnables AI agents to scan AWS accounts, build resource relationship graphs, detect unused resources, and export data via MCP tools.74 npmAGPL 3.0