Cover image
Try Now
2025-03-30

镜像://github.com/davidlin2k/onos-mcp-server

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

ONOS MCP Server

Overview

A Model Context Protocol (MCP) server implementation that provides network control and management capabilities through the ONOS SDN controller. This server enables programmatic access to ONOS network management, OpenFlow device control, and comprehensive analytics through ONOS's REST API. Perfect for educational environments, network prototyping, and SDN research with ONOS.

Components

Resources

The server exposes over 30 dynamic resources, including:

  • onos://devices: Information about all network devices
  • onos://device/{deviceId}: Detailed information about a specific device
  • onos://links: Information about all network links
  • onos://hosts: Information about all hosts connected to the network
  • onos://topology: Overview of current network topology
  • onos://applications: Information about all installed applications
  • onos://flows/{deviceId}: All flow entries for a specific device
  • onos://system: High-level system information, version, and memory usage
  • onos://metrics: Statistics information for all metrics
  • onos://meters/{deviceId}: All meter entries for a specific device
  • onos://intents: All intents in the system
  • onos://statistics/*: Various statistics resources for ports, flows, and tables
  • onos://network/configuration: The entire network configuration
  • onos://configuration: Component configurations
  • And many more for comprehensive ONOS system access

Prompts

The server provides nine specialized prompts:

  • diagnose-network-issue: Interactive prompt for diagnosing network issues

    • Helps identify connectivity problems and service degradation
    • Analyzes network symptoms and changes
    • Suggests targeted solutions
  • design-network-flow: Assistance for designing and implementing network flows

    • Helps create traffic isolation, load balancing, and security policies
    • Guides source/destination flow creation
    • Supports specific routing requirements
  • configure-intent-based-networking: Support for intent-based networking

    • Guides connectivity objectives implementation
    • Helps with traffic prioritization
    • Assists with resilience and failover configuration
  • network-health-report: Comprehensive network status analysis

    • Provides device availability reporting
    • Delivers flow and intent statistics
    • Identifies bottlenecks and performance issues
  • sdn-migration-planning: Planning for SDN migration with ONOS

    • Helps assess current architecture
    • Guides through migration goals and priorities
    • Develops phased implementation strategies
  • system-health-check: System-level diagnostics for ONOS

    • Analyzes resource utilization
    • Reports cluster status
    • Evaluates component health
  • metrics-analysis: Deep analysis of ONOS metrics

    • Identifies performance bottlenecks
    • Highlights anomalies
    • Recommends optimizations
  • qos-configuration: Quality of Service implementation guidance

    • Helps prioritize traffic types
    • Assists with bandwidth and latency guarantees
    • Creates class-based service levels
  • performance-tuning: Optimization for ONOS deployments

    • Resolves performance issues
    • Enhances resource allocation
    • Improves architecture for scale

Tools

The server offers over 20 powerful tools, including:

Network Management Tools

  • get_network_summary

    • Get a high-level summary of the network including devices, links, and hosts
    • No input required
    • Returns comprehensive network overview with device details
  • get_network_analytics

    • Get analytics about network performance, utilization and health
    • No input required
    • Returns detailed performance metrics and utilization statistics
  • get_system_health

    • Get comprehensive system health information including memory usage and cluster status
    • No input required
    • Returns detailed health report with memory utilization and node status

Application Management Tools

  • install_application

    • Install a new ONOS application from an OAR file URL
    • Input: app_file_url (string)
    • Returns installation status
  • activate_application

    • Activate an ONOS application
    • Input: app_name (string)
    • Returns activation status
  • deactivate_application

    • Deactivate an ONOS application
    • Input: app_name (string)
    • Returns deactivation status
  • remove_application

    • Uninstall an ONOS application
    • Input: app_name (string)
    • Returns removal status

Network Configuration Tools

  • add_flow

    • Add a flow rule to a device
    • Input: device ID, priority, timeout, etc.
    • Returns flow addition status
  • remove_flow

    • Remove a flow rule from a device
    • Input: device ID and flow ID
    • Returns removal status
  • add_intent

    • Add a host-to-host intent
    • Input: app ID, priority, source and destination hosts
    • Returns intent creation status
  • get_shortest_path

    • Find the shortest path between two devices or hosts
    • Input: source and destination IDs
    • Returns detailed path information

Other tools

Additional tools for device configuration, QoS management, diagnostics, and more.

Usage with Claude Desktop

# Add the server to your claude_desktop_config.json
{
  "mcpServers": {
    "onos": {
      "command": "uv",
      "args": [
        "--directory",
        "parent_of_servers_repo/servers/src/onos-mcp-server",
        "run",
        "server.py"
      ],
      "env": {
        "ONOS_API_BASE": "http://localhost:8181/onos/v1",
        "ONOS_USERNAME": "onos",
        "ONOS_PASSWORD": "rocks"
      }
    }
  }
}

Requirements

  • Python 3.7+
  • uv
  • ONOS controller (running and accessible)
  • httpx library
  • mcp library

Configuration

The server uses the following environment variables:

  • ONOS_API_BASE: Base URL for ONOS API (default: http://localhost:8181/onos/v1)
  • ONOS_USERNAME: Username for ONOS API authentication (default: onos)
  • ONOS_PASSWORD: Password for ONOS API authentication (default: rocks)

License

This 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.

Contributing

Contributions are welcome! Please feel free to submit pull requests, report bugs, or suggest new features.

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Lists Tailwind CSS classes in monospaced font

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • HiveNexus
  • 一个适用于中小型团队的AI聊天机器人,支持DeepSeek,Open AI,Claude和Gemini等车型。 专为中小团队设计的ai聊天应用,支持deepSeek,打开ai,claude,双子座等模型。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

    Reviews

    1 (1)
    Avatar
    user_pYhDaz6z
    2025-04-17

    The davidlin2k_onos-mcp-server by MCP-Mirror has been a game-changer for my network management needs. Its robust features and seamless integration make it an essential tool for any professional in the telecommunications industry. The open-source nature and active community support provide excellent resources for development and troubleshooting. Highly recommend checking it out at https://github.com/MCP-Mirror/davidlin2k_onos-mcp-server!