Skip to main content

AWS Core Network MCP Server

A Model Context Protocol (MCP) server providing comprehensive tools for troubleshooting and analyzing AWS core networking services including Cloud WAN, Transit Gateway, VPC, Network Firewall, and VPN connections.

Key Features

  • Systematic troubleshooting: Built-in methodology for network path tracing and connectivity analysis
  • Multi-service coverage: Unified interface for Cloud WAN, Transit Gateway, VPC, Network Firewall, and VPN
  • Flow log analysis: Query and filter VPC, Transit Gateway, and Network Firewall flow logs from CloudWatch
  • Inspection detection: Automatically identify firewalls in traffic paths for security analysis
  • Multi-region support: Search for resources across all AWS regions
  • Read-only operations: Safe troubleshooting without risk of configuration changes

AWS Core Network capabilities

  • Path tracing: Systematic methodology for analyzing network connectivity issues
  • IP discovery: Locate network interfaces by IP address across regions
  • Security analysis: Examine security groups, NACLs, and firewall rules
  • Routing analysis: Trace traffic paths through VPC, Transit Gateway, and Cloud WAN
  • Traffic verification: Query flow logs to confirm actual traffic patterns
  • Inspection detection: Identify AWS Network Firewall and third-party firewalls in traffic paths

Tools

General Tools

  1. get_path_trace_methodology: Get comprehensive network troubleshooting methodology (ALWAYS call this first)
  2. find_ip_address: Locate ENI by IP address with multi-region search support
  3. get_eni_details: Get comprehensive ENI details including security groups, NACLs, and routing

Cloud WAN Tools

  1. list_core_networks: List all Cloud WAN core networks in a region
  2. get_cloudwan_details: Get comprehensive core network configuration and state
  3. get_cloudwan_routes: Get routes for specific segment and region
  4. get_all_cloudwan_routes: Get all routing tables across all segments and regions
  5. get_cloudwan_attachment_details: Get detailed attachment information by type
  6. detect_cloudwan_inspection: Detect Network Function Groups performing inspection
  7. list_cloudwan_peerings: List all Transit Gateway peerings for a core network
  8. get_cloudwan_peering_details: Get peering details from both Cloud WAN and TGW perspectives
  9. get_cloudwan_logs: Retrieve event logs for topology changes and routing updates
  10. simulate_cloud_wan_route_change: Simulate network changes for a single region

Transit Gateway Tools

  1. list_transit_gateways: List all Transit Gateways in a region
  2. get_tgw_details: Get basic Transit Gateway configuration and operational details
  3. get_tgw_routes: Get routes from specific route table with filtering
  4. get_all_tgw_routes: Get all route tables and routes in one call
  5. get_tgw_flow_logs: Retrieve Transit Gateway flow logs from CloudWatch
  6. list_tgw_peerings: List all Transit Gateway peerings
  7. detect_tgw_inspection: Detect AWS Network Firewall and third-party firewalls attached to TGW

VPC Tools

  1. list_vpcs: List all VPCs in a region
  2. get_vpc_network_details: Get comprehensive VPC network configuration
  3. get_vpc_flow_logs: Get VPC flow logs from CloudWatch with filtering

Network Firewall Tools

  1. list_network_firewalls: List all AWS Network Firewalls in a region
  2. get_firewall_rules: Get stateless and stateful firewall rules
  3. get_network_firewall_flow_logs: Retrieve firewall flow logs from CloudWatch

VPN Tools

  1. list_vpn_connections: List all Site-to-Site VPN connections in a region

Prerequisites

  • Have an AWS account with credentials configured
  • Install uv from Astral or the GitHub README
  • Install Python 3.10 or newer using uv python install 3.10 (or a more recent version)
  • This MCP server can only be run locally on the same host as your LLM client.

Configuration

You can download the AWS Network MCP Server from GitHub. To get started using your favorite code assistant with MCP support, like Kiro, Cursor, or Cline.

{
  "mcpServers": {
    "awslabs.aws-network-mcp-server": {
      "command": "uvx",
      "args": [
        "awslabs.aws-network-mcp-server@latest"
      ],
      "env": {
        "AWS_PROFILE": "your-aws-profile",
        "AWS_REGION": "us-west-2"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Windows Installation

For Windows users, the MCP server configuration format is slightly different:

{
  "mcpServers": {
    "awslabs.aws-network-mcp-server": {
      "disabled": false,
      "timeout": 60,
      "type": "stdio",
      "command": "uv",
      "args": [
        "tool",
        "run",
        "--from",
        "awslabs.aws-network-mcp-server@latest",
        "awslabs.aws-network-mcp-server.exe"
      ],
      "env": {
        "FASTMCP_LOG_LEVEL": "ERROR",
        "AWS_PROFILE": "your-aws-profile",
        "AWS_REGION": "us-east-1"
      }
    }
  }
}

AWS Authentication

Preferred authentication method is AWS Named Profiles. This MCP is able to do fast account switching by using named profiles.

AWS Credentials in environment variables will also work but allows only single account usage.

Required IAM Permissions

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "ec2:DescribeNetworkInterfaces",
        "ec2:DescribeSecurityGroups",
        "ec2:DescribeNetworkAcls",
        "ec2:DescribeRouteTables",
        "ec2:DescribeSubnets",
        "ec2:DescribeVpcs",
        "ec2:DescribeInternetGateways",
        "ec2:DescribeNatGateways",
        "ec2:DescribeVpcEndpoints",
        "ec2:DescribeTransitGateways",
        "ec2:DescribeTransitGatewayAttachments",
        "ec2:DescribeTransitGatewayRouteTables",
        "ec2:DescribeTransitGatewayPeeringAttachments",
        "ec2:DescribeVpnConnections",
        "ec2:DescribeFlowLogs",
        "ec2:DescribeRegions",
        "networkmanager:GetCoreNetwork",
        "networkmanager:GetCoreNetworkPolicy",
        "networkmanager:GetNetworkRoutes",
        "networkmanager:GetVpcAttachment",
        "networkmanager:GetConnectAttachment",
        "networkmanager:GetDirectConnectGatewayAttachment",
        "networkmanager:GetSiteToSiteVpnAttachment",
        "networkmanager:GetTransitGatewayRouteTableAttachment",
        "networkmanager:GetTransitGatewayPeering",
        "networkmanager:GetTransitGatewayRegistrations",
        "networkmanager:GetTransitGatewayRouteTableAssociations",
        "networkmanager:ListCoreNetworks",
        "networkmanager:ListAttachments",
        "networkmanager:ListPeerings",
        "network-firewall:DescribeFirewall",
        "network-firewall:DescribeFirewallPolicy",
        "network-firewall:DescribeRuleGroup",
        "network-firewall:DescribeLoggingConfiguration",
        "network-firewall:ListFirewalls",
        "elasticloadbalancing:DescribeLoadBalancers",
        "logs:StartQuery",
        "logs:GetQueryResults",
        "sts:GetCallerIdentity"
      ],
      "Resource": "*"
    }
  ]
}

Multi-Account Access

Use the profile_name parameter in tools to specify different AWS CLI profiles for cross-account access. Some tools support separate profiles for different resources (e.g., tgw_account_profile_name and cloudwan_account_profile_name).

Data Usage

This MCP server operates entirely locally and makes direct API calls to AWS services. No data is sent to third-party services. All AWS API calls are subject to AWS service terms and your organization's AWS policies.

FAQs

1. Do I need an AWS account?

Yes. This server makes API calls to AWS services and requires valid AWS credentials with appropriate IAM permissions.

2. What AWS regions are supported?

All AWS commercial regions are supported. Tools that support multi-region search (like find_ip_address) can search across all enabled regions in your account.

3. Why do some tools require Network Manager registration?

Transit Gateway route tools (get_tgw_routes, get_all_tgw_routes) require the Transit Gateway to be registered with AWS Network Manager (Cloud WAN Global Network). This is an AWS requirement for accessing route table information via the Network Manager API.

4. Do flow log tools work without CloudWatch Logs?

No. Flow log tools (get_vpc_flow_logs, get_tgw_flow_logs, get_network_firewall_flow_logs) require that flow logging is enabled and configured to send logs to CloudWatch Logs (not S3 or Kinesis Data Firehose).

5. Can this server make changes to my AWS infrastructure?

No. All tools are read-only and only perform Describe, Get, and List operations. The server cannot create, modify, or delete any AWS resources.

6. How do I troubleshoot "No flow logs found" errors?

Verify that:

  • Flow logging is enabled on the resource (VPC, Transit Gateway, or Network Firewall)
  • Logs are configured to send to CloudWatch Logs
  • The time range includes periods when traffic was flowing
  • Your IAM permissions include logs:FilterLogEvents

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

awslabs_aws_network_mcp_server-0.0.14.tar.gz (202.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file awslabs_aws_network_mcp_server-0.0.14.tar.gz.

File metadata

File hashes

Hashes for awslabs_aws_network_mcp_server-0.0.14.tar.gz
Algorithm Hash digest
SHA256 02a83f6b54886a156d6880311b7be0b749d405de95e70c7f4f1099d6ab723915
MD5 fc2b4434dbbc4785b2a38ff4ccb445dc
BLAKE2b-256 c9dd979425690a94f0603c21f1d4b921c46ba67984554794e6db210b2a8638d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for awslabs_aws_network_mcp_server-0.0.14.tar.gz:

Publisher: release.yml on awslabs/mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file awslabs_aws_network_mcp_server-0.0.14-py3-none-any.whl.

File metadata

File hashes

Hashes for awslabs_aws_network_mcp_server-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 92a343b385621fbe2304e11e358ecdad8b9daf6bf3de2956ad30cce57db566b9
MD5 bb094186f55002944bc54974e528a674
BLAKE2b-256 1ccc7b0e58561924e3c2f8166dfaed4d502d57e76d6b64c2b628b0204c473b06

See more details on using hashes here.

Provenance

The following attestation bundles were made for awslabs_aws_network_mcp_server-0.0.14-py3-none-any.whl:

Publisher: release.yml on awslabs/mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page