A Model Context Protocol (MCP) server implementation that provides network control and management capabilities through the POX SDN controller. This server enables Python-based network programming, OpenFlow device management, and automated network analysis through POX's modular architecture. Perfect for educational environments, network prototyping, and SDN research. The server exposes two dynamic
Add this skill
npx mdskills install davidlin2k/pox-mcp-serverComprehensive SDN controller integration with well-documented tools, resources, and prompts for network management
1# POX MCP Server23## Overview4A Model Context Protocol (MCP) server implementation that provides network control and management capabilities through the POX SDN controller. This server enables Python-based network programming, OpenFlow device management, and automated network analysis through POX's modular architecture. Perfect for educational environments, network prototyping, and SDN research.56## Components78### Resources9The server exposes two dynamic resources:10- `pox://network-config`: A comprehensive POX controller configuration memo11 - Tracks active POX components and their configurations12 - Records network topology and flow rules13 - Maintains discovered network insights14- `pox://topology`: Real-time network topology view15 - Shows active OpenFlow datapaths (switches)16 - Maps host locations and connections17 - Displays link status and port mappings1819### Prompts20The server provides three specialized prompts:21- `pox-network-manager`: Interactive prompt for POX controller management22 - Required argument: `topic` - The network control aspect to focus on23 - Helps configure POX components and modules24 - Guides through network policy implementation25 - Integrates with network configuration memo2627- `simple-hub`: Basic L2 hub implementation using POX28 - Required argument: `dpid` - The datapath identifier29 - Demonstrates POX's event-driven programming30 - Shows basic packet handling and flooding31 - Explains POX's core mechanisms3233- `learning-switch`: L2 learning switch implementation34 - Required argument: `dpid` - The datapath identifier35 - Showcases POX's table management36 - Implements MAC learning and forwarding37 - Demonstrates POX's packet handling capabilities3839### Tools40The server offers five core tools:4142#### Datapath Management Tools43- `get_switches`44 - List all connected OpenFlow datapaths45 - No input required46 - Returns: Array of active POX-controlled switches47 - Includes connection status and capabilities4849- `get_switch_desc`50 - Get detailed datapath information51 - Input:52 - `dpid` (string): Datapath identifier53 - Returns: POX-managed switch details and features5455#### Flow Management Tools56- `get_flow_stats`57 - Retrieve POX flow statistics58 - Input:59 - `dpid` (string): Datapath identifier60 - `match` (object, optional): POX match structure61 - `table_id` (string, optional): OpenFlow table ID62 - `out_port` (string, optional): Output port filter63 - Returns: POX flow statistics including packet counts6465- `set_table`66 - Configure POX flow tables67 - Input:68 - `dpid` (string): Datapath identifier69 - `flows` (array): POX flow specifications70 - Returns: Flow table update confirmation7172#### Analysis Tools73- `append_insight`74 - Add network insights to POX configuration memo75 - Input:76 - `insight` (string): Network observation or analysis77 - Returns: Insight addition confirmation78 - Updates pox://network-config resource7980## Usage with Claude Desktop8182### uv8384```json85{86 "mcpServers": {87 "pox": {88 "command": "uv",89 "args": [90 "--directory",91 "parent_of_servers_repo/servers/src/mcp_server_pox",92 "run",93 "server.py"94 ],95 "env": {96 "POX_SERVER_URL": "http://localhost:8000"97 }98 }99 }100}101```102103## License104105This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.106107## Contributing108109Contributions are welcome! Please feel free to submit pull requests, report bugs, or suggest new features.110
Full transparency — inspect the skill content before installing.