loading…
Search for a command to run...
loading…
Enables natural language management of Juniper Apstra datacenter networks, including blueprints, virtual networks, connectivity templates, and deployment.
Enables natural language management of Juniper Apstra datacenter networks, including blueprints, virtual networks, connectivity templates, and deployment.
A Model Context Protocol (MCP) server that provides tools for interacting with Juniper Apstra Fabric Manager APIs. Enables Claude and other MCP clients to manage datacenter network infrastructure through natural language commands.
# Create config file
cp apstra_config_sample.json apstra_config.json
# Edit with your Apstra server details
# Run with stdio transport
python3 apstra_mcp.py -t stdio -f apstra_config.json
# Clone and configure
git clone <this-repo>
cd apstra-mcp-server
cp apstra_config_sample.json apstra_config.json
# Edit config with your Apstra details
# Start HTTP streaming server
docker-compose up -d
# Install dependencies
pip install -r requirements.txt
# Start streamable HTTP server
python3 apstra_mcp.py -t streamable-http -H 0.0.0.0 -p 8080 -f apstra_config.json
pip install -r requirements.txt
health() - Server health check and Apstra connectivity statusformatting_guidelines() - Get formatting guidelines for network data presentationget_bp() - Get blueprint informationget_racks(blueprint_id) - Get rack information get_rz(blueprint_id) - Get routing zonesget_vn(blueprint_id) - Get virtual networksget_ct(blueprint_id) - Get connectivity templatesget_app_ep(blueprint_id) - Get application endpoints for connectivity templatesget_system_info(blueprint_id) - Get system/device informationget_protocol_sessions(blueprint_id) - Get protocol sessionsget_anomalies(blueprint_id) - Get blueprint anomaliesget_remote_gw(blueprint_id) - Get remote gatewaysget_diff_status(blueprint_id) - Get deployment diff statusget_templates() - Get available templatesdeploy(blueprint_id, description, staging_version) - Deploy configurationsdelete_blueprint(blueprint_id) - Delete blueprintsapply_ct_policies(blueprint_id, application_points) - Apply/remove connectivity template policies to application endpointscreate_vn(blueprint_id, security_zone_id, vn_name, virtual_gateway_ipv4, ipv4_subnet, ...) - Create virtual networks with advanced configuration optionscreate_remote_gw(blueprint_id, gw_ip, gw_asn, gw_name, local_gw_nodes, ...) - Create remote gateways create_datacenter_blueprint(blueprint_name, template_id) - Create datacenter blueprintscreate_freeform_blueprint(blueprint_name) - Create freeform blueprintsAdd to claude_desktop_config.json:
{
"mcpServers": {
"apstra": {
"command": "uv",
"args": [
"run",
"--with",
"fastmcp,httpx",
"python3",
"/path/to/apstra_mcp.py",
"-f",
"/path/to/apstra_config.json"
]
}
}
}
Update the paths to match your installation directory.
The server exposes native FastMCP endpoints on /mcp/* with automatic SSE upgrades for streaming responses.
docker-compose logsThis project is provided as-is for educational and demonstration purposes.
Blog Post: MCP for Datacenter Networks
Выполни в терминале:
claude mcp add apstra-mcp-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.