awslabs / awslabs/mcp

RFC: AWS Cloud WAN MCP Server

Open
#992 1 comment 0 reactions 0 assignees View on GitHub
backlog hold-merging needs-triage new mcp server RFC-proposal
Dominant language
Python
Stars
9.7k
Forks
1.8k
Avg merge
3d 12h
Merged PRs (30d)
46

Description

### Is this related to an existing feature request or issue?

No

# Summary

The AWS Cloud WAN MCP Server provides enterprise-grade operational capabilities for AWS Cloud WAN network environments. This server enables AI assistants and automation tools to perform advanced network analysis, troubleshooting, and operational intelligence across complex multi-region AWS networking architectures. The implementation features thread-safe AWS client caching, comprehensive error handling, and production-ready containerisation.

## Technical Architecture

- FastMCP framework integration with async/await patterns
- Thread-safe AWS client management with LRU caching
- Custom AWS endpoint support for LocalStack and testing environments
- Environment-based configuration with zero hardcoded values
- Token bucket rate limiting for API request management
- Multi-region AWS service isolation and connection pooling
- Comprehensive credential sanitisation and security compliance

### Available Tools
**cloudwan_mcp(MCP):**
awslabs.cloudwan-mcp-server(MCP):

- analyze_network_function_group # NFG configuration and routing analysis
- analyze_segment_routes # Cloud WAN segment routing table analysis
- analyze_tgw_peers # Transit Gateway peering relationship analysis
- analyze_tgw_routes # Transit Gateway route table comprehensive analysis
- aws_config_manager # AWS configuration and credential management
- discover_ip_details # IP address allocation and subnet discovery
- discover_vpcs # VPC discovery with detailed network configuration
- get_core_network_change_events # Core Network policy change event tracking
- get_core_network_change_set # Core Network policy change set analysis
- get_core_network_policy # Core Network policy document retrieval and validation
- get_global_networks # Global Network infrastructure discovery
- list_core_networks # Core Network enumeration with detailed metadata
- list_network_function_groups # Network Function Group discovery and analysis
- manage_tgw_routes # Transit Gateway route management operations
- trace_network_path # End-to-end network path tracing and validation
- validate_cloudwan_policy # Cloud WAN policy document validation and analysis
- validate_ip_cidr # IP CIDR block validation and conflict detection

## Primary Use Cases

**Network Path Analysis**: End-to-end path tracing from source to destination across Cloud WAN infrastructure and Transit Gateways. Validates ASN configurations and identifies routing inconsistencies across complex network topologies.

**Infrastructure Discovery**: Comprehensive discovery of Global Networks, Core Networks, VPCs, and Transit Gateways across multiple AWS regions with detailed configuration analysis.

**Routing Intelligence**: Advanced routing table analysis incorporating Cloud WAN segment routing, Transit Gateway route tables, Core Network Policy configurations, and Network Function Group routing decisions. Provides unified view of complex multi-layer routing architectures.

**Policy Analysis**: Core Network policy document analysis including Network Function Group configuration validation, policy change impact assessment, and compliance verification against AWS networking best practices.

**Operational Troubleshooting**: Real-time network troubleshooting capabilities with comprehensive error analysis, performance bottleneck identification, and automated remediation recommendations.

## Implementation Status

The implementation is production-ready with comprehensive validation:

- 103 unit tests with 43% code coverage
- 47 integration tests covering AWS service mocking and live API scenarios
- Docker containerisation with health checks and multi-stage builds
- AWS Labs compliance validation including security and performance standards
- Comprehensive documentation and API reference materials
- Production deployment validation by AWS Network Specialists

## Quality Assurance

- TokenBucketRateLimiter implementation for advanced rate limiting scenarios
- Comprehensive AWS service mocking for testing isolation
- Security compliance with credential sanitisation and secure configuration management
- Performance optimisation with connection pooling and request caching
- Multi-platform compatibility validation (Linux, macOS, Windows)

## Scope Limitations

his MCP Server focuses exclusively on AWS Cloud WAN network infrastructure analysis and management. Application workloads, compute resources, and storage systems hosted within the network infrastructure are outside the scope of this implementation.

## Risk Assessment

No significant technical risks identified. The implementation has undergone comprehensive testing by AWS Network Specialists across multiple complex enterprise environments. All identified edge cases have been addressed through the extensive integration test suite.

## Integration Dependencies

This MCP Server integrates with existing AWS Labs MCP ecosystem including the diagram MCP server for network visualisation and other AWS service-specific MCP implementations. Supports standard MCP protocol compliance for seamless integration with AI assistants and automation platforms.

### Alternative solutions
```markdown
None
```

Contributor guide

Open the contributing guide

Research direction

The issue names no repository files; begin at the cloudwan_mcp entry point and inspect the listed 103 unit and 47 integration tests. Done requires a concrete, accepted scope for the AWS Cloud WAN MCP server and validation of the stated tools and AWS integration, since the issue currently presents an implementation summary rather than a change request.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
backend-api-design, cloud, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.