Skip to main content
Glama

ONOS MCP Server

by davidlin2k

ONOS MCP服务器

概述

模型上下文协议 (MCP) 服务器实现,通过 ONOS SDN 控制器提供网络控制和管理功能。该服务器使 AI 助手能够通过结构化的 API 接口访问 ONOS 网络管理、OpenFlow 设备控制和综合分析。该服务器非常适合教育环境、网络运营、SDN 研究和 AI 辅助网络管理。

特征

网络资源

该服务器提供对 ONOS REST API 端点的访问,包括:

  • 网络设备、链路和主机
  • 拓扑信息
  • 流程规则和意图
  • 应用程序和服务
  • 统计数据和指标
  • 系统和集群健康

分析工具

  • 网络摘要:获取设备、链接、主机和集群的全面概述,包括详细的设备信息
  • 网络分析:分析性能指标、流量模式和利用率统计数据
  • 系统健康:监控内存使用情况、集群状态和组件健康状况
  • 应用程序管理:安装、激活、停用和卸载 ONOS 应用程序
  • 流程配置:创建和管理流程规则和意图
  • 路径计算:查找网络端点之间的最佳路径

专门提示

  • 网络诊断:解决连接问题和服务降级
  • 基于意图的配置:实现连接目标和策略
  • 网络健康分析:生成全面的状态报告
  • QoS 配置:设置流量优先级和服务级别
  • 性能优化:改善资源分配和可扩展性

要求

  • Python 3.7+
  • uv用于依赖管理
  • 运行 ONOS 控制器
  • httpx 库
  • mcp 库

配置

使用环境变量配置服务器:

  • ONOS_API_BASE :ONOS API 的基本 URL(默认值: http://localhost:8181/onos/v1
  • ONOS_USERNAME :ONOS API 身份验证的用户名(默认值:onos)
  • ONOS_PASSWORD :ONOS API 身份验证的密码(默认值:rocks)

与 Claude Desktop 一起使用

{ "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" } } } }

贡献

欢迎贡献代码!欢迎提交 Pull 请求、报告 Bug 或建议新功能。

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

模型上下文协议服务器提供对 ONOS SDN 控制器的网络管理功能的编程访问,通过 ONOS 的 REST API 实现设备控制、拓扑管理和分析。

  1. 概述
    1. 特征
      1. 网络资源
      2. 分析工具
      3. 专门提示
    2. 要求
      1. 配置
        1. 与 Claude Desktop 一起使用
          1. 贡献

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that provides file system operations, analysis, and manipulation capabilities through a standardized tool interface.
              Last updated -
              1
              TypeScript
              MIT License
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server that provides a comprehensive interface for interacting with the ConnectWise Manage API, simplifying API discovery, execution, and management for both developers and AI assistants.
              Last updated -
              46
              2
              Python
              • Linux
              • Apple
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server for accessing Confluence API using Personal Access Tokens, enabling users to retrieve space lists, view pages, create new pages, and update existing content.
              Last updated -
              TypeScript
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that provides network control and management capabilities through the POX SDN controller, enabling Python-based network programming, OpenFlow device management, and automated network analysis.
              Last updated -
              1
              Python
              MIT License

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/davidlin2k/onos-mcp-server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server