AWS Network MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
AWS Network MCP
An MCP (Model Context Protocol) server that lets AI assistants troubleshoot AWS and hybrid network connectivity. Point Claude, Cursor, or any MCP-compatible agent at this server and ask: "Why can't A talk to B?"
I built this after years of debugging Transit Gateway routing issues, security group reference chains, and those infuriating NACL stateless return-traffic problems. The goal is to give AI assistants the same mental model I use when tracing packets through AWS infrastructure.
The Problem
AWS networking is powerful but complex. When connectivity fails, you need to check:
Security groups (stateful, but SG-to-SG references can be tricky)
NACLs (stateless! return traffic needs explicit rules)
VPC route tables (longest-prefix match, blackholes)
Transit Gateway route tables (associations, propagations, segmentation)
VPN tunnel and BGP status
Route 53 Resolver forwarding rules
This server walks through each hop programmatically and identifies the exact blocking rule.
Related MCP server: emfirge
Architecture
graph TB
subgraph "AI Assistants"
Claude[Claude Desktop]
Cursor[Cursor]
Strands[Strands/Bedrock Agent]
end
subgraph "MCP Server"
Server[aws-network-mcp]
Analysis[Path Analyzer]
Fixtures[Demo Fixtures]
end
subgraph "AWS APIs Read-Only"
EC2[EC2/VPC APIs]
TGW[Transit Gateway]
R53[Route 53 Resolver]
CWL[CloudWatch Logs]
RA[Reachability Analyzer]
end
Claude -->|stdio| Server
Cursor -->|stdio| Server
Strands -->|stdio| Server
Server --> Analysis
Server --> Fixtures
Analysis -->|boto3| EC2
Analysis -->|boto3| TGW
Analysis -->|boto3| R53
Analysis -->|boto3| CWL
Analysis -->|boto3| RAQuick Start
Installation
pip install aws-network-mcpOr from source:
git clone https://github.com/harindersingh/aws-network-mcp
cd aws-network-mcp
pip install -e .Demo Mode (No AWS Required)
make demo
# or
python -m aws_network_mcp.demoClaude Desktop Configuration
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"aws-network": {
"command": "python",
"args": ["-m", "aws_network_mcp.server"],
"env": {
"AWS_PROFILE": "your-profile",
"AWS_REGION": "us-east-1"
}
}
}
}Cursor Configuration
{
"mcpServers": {
"aws-network": {
"command": "python",
"args": ["-m", "aws_network_mcp.server"]
}
}
}Sample Troubleshooting Session
Using the missing_tgw_propagation demo scenario:
User: Why can't 10.2.0.100 reach 10.1.0.50 on port 443?
Assistant: I'll analyze the path from 10.2.0.100 to 10.1.0.50 on port 443/tcp.
[Calling explain_connectivity tool...]
**Verdict: DENY**
Path analysis:
1. [✓] security_group: sg-dev-app-001 - Allowed by egress rule
2. [✓] nacl: acl-dev-001 - Allowed by rule #100
3. [✓] route_table: rtb-dev-001 - Matched route 10.0.0.0/8 -> tgw-demo-001
4. [✗] transit_gateway: tgw-rtb-dev-002 - No TGW route found for 10.1.0.50
**Root Cause**: The dev VPC's Transit Gateway route table (tgw-rtb-dev-002)
doesn't have a route to the prod VPC (10.1.0.0/16). The prod VPC attachment
is not propagating routes to this route table.
**Fix**: Enable route propagation from tgw-attach-prod-001 to tgw-rtb-dev-002,
or add a static route for 10.1.0.0/16 pointing to the prod attachment.Available Tools
Tool | Description |
| Full hop-by-hop path analysis with blocking rule identification |
| Human-readable connectivity explanation (simplified interface) |
| AWS Reachability Analyzer (~$0.10 per analysis) |
| Longest-prefix match in a TGW route table |
| List TGW attachments with state |
| VPN tunnel status, BGP state, DX VIF status |
| Route 53 Resolver forwarding rules for a domain |
| Search VPC Flow Logs for a 5-tuple |
Demo Scenarios
The demo includes 5 broken scenarios for troubleshooting practice:
Scenario | Issue |
| TGW route table missing VPC propagation |
| TGW route pointing to deleted attachment |
| Security group reference to wrong SG |
| Security group allows 80 but app needs 443 |
| NACL missing return traffic rule (stateless!) |
Load a scenario:
# In an MCP session
load_demo_scenario(scenario_name="nacl_blocking_ephemeral")IAM Permissions
The server requires read-only access. See iam/policy.json for the minimal policy.
Key permissions:
ec2:Describe*for VPCs, subnets, route tables, security groups, NACLsec2:*TransitGateway*for TGW resourcesroute53resolver:List*,route53resolver:Get*for DNSlogs:StartQuery,logs:GetQueryResultsfor Flow Logs
Optional (adds ~$0.10/analysis cost):
ec2:*NetworkInsights*for Reachability Analyzer
Cost Considerations
Path analysis: Free (uses cached/fixture data or read-only API calls)
VPC Reachability Analyzer: ~$0.10 per path analyzed
CloudWatch Logs Insights: Standard query pricing applies
The server is read-only by design. It cannot modify any AWS resources.
Security
Read-only access only - no modifications possible
No credentials stored - uses standard AWS credential chain
Demo mode available for testing without AWS access
All analysis is deterministic and auditable
Lab Environment
For hands-on testing, deploy the example Terraform:
cd examples/terraform
terraform init
terraform apply
# Test with the MCP server
# ...
terraform destroy # Don't forget to clean up!See examples/terraform/README.md for details on the intentional misconfigurations.
Development
# Install dev dependencies
pip install -e ".[dev]"
# Run linting
make lint
# Run type checking
make typecheck
# Run tests
make test
# Run all CI checks
make ciRoadmap
Network Firewall rule analysis
PrivateLink endpoint analysis
Cross-account TGW support
VPC Lattice integration
Terraform state correlation
Interactive path visualization
License
MIT License - see LICENSE file.
Author
Harinder Singh - Cloud Infrastructure and SRE Leader
This project demonstrates practical AWS networking expertise combined with AI-assisted operations tooling.
This server cannot be deployed
Maintenance
Related MCP Connectors
IP intelligence, network diagnostics, and AI service availability tools for AI agents.
AI helper for choosing and speccing network & security products from Cisco, Arista, Juniper and more
Network, domain and website diagnostics for AI clients via MCP.
Integrate Connext AI into agentic workflows, enabling Connext product-aware assistance.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables automated review and analysis of network security controls (AWS Security Groups, Network ACLs) using natural language queries. Supports NSC configuration reviews, network segmentation testing, and identifying security gaps through conversational LLM interaction.MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI to scan AWS accounts, analyze attack paths, and verify security fixes on a read-only graph of cloud resources.4-
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to safely troubleshoot networks through read-only tools for device inventory, interface status, VLAN paths, BGP neighbors, route lookups, and interface error detection. Integrates with Microsoft Copilot Studio and Teams for natural-language-driven network diagnostics.-
- AlicenseBqualityCmaintenanceEnables network engineers and AI agents to answer troubleshooting questions like "why can't A reach B?" by choosing typed tools and filling parameters, with the server rendering deterministic, pre-shaped queries across firewall, VNet flow, Cisco IOS and Cisco ISE logs in Azure Log Analytics. The agent never writes raw query language, keeping the blast radius bounded to a fixed, closed tool catalog that runs locally on synthetic data or against a real workspace.8Apache 2.0