mcp-server-sros
Provides tools to view operational state and change configuration of Nokia SR OS devices using pySROS SDK and FastMCP.
README
SROS MCP Server (mcp-server-sros)
Overview
The mcp-server-sros project provides MCP tools for viewing the operational state and changing the configuration of Nokia SR OS devices.
It uses Nokia's pySROS Python SDK and FastMCP.
This project was inspired by https://github.com/dpajin/mcp-server-junos.
Tools
- get_fact: Retrieve basic information about the SR OS device, such as system name, software version, and platform.
- show_command: Execute any MD-CLI command on the device and return the output.
- apply_config: Modify configuration by setting a value at a specified YANG path.
- list_devices: Retrieve the list of locally configured devices on the MCP server. The list include device name and IP address for remote access.
Installation
- Clone the repository:
git clone <repository-url> cd mcp-server-sros
Running as a standalone application
-
Install the required dependencies:
pip install -r requirements.txt -
Rename example config file
config.example.ymltoconfig.ymlcp config.example.yml config.yml
Running as a docker container
NOTE: If you want to include the configuration file in the docker image, please configure it in advance before building the container image. Otherwise, you can provide global access parameters into the container using Environment Variables (example in Usage section)
-
Rename example config file
config.example.ymltoconfig.ymland configure it accordingly, beforemv config.example.yml config.yml -
Build docker container image
docker build -t mcp-server-sros .
Configuration
The expected configuration file is named config.yml and it should be located in the root directory.
If environment variables are set, they will override the configuration file values.
Global server configuration
Using config file:
global:
server_host: 127.0.0.1
server_port: 10008
server_transport: "sse" # or "streamable-http"
Using Environment variables:
MCP_SERVER_SROS_HOST="127.0.0.1"
MCP_SERVER_SROS_PORT=10008
MCP_SERVER_SROS_TRANSPORT="sse"
LOG_LEVEL="INFO"
Devices inventory
Using config file:
Configuration file key devices contains the dictionary of the device names with their respective access configuration.
device_name: Name of the devicehost: IP address for accessuser: Username for accesspasswd: Password for accessport: TCP port for NETCONF/SSH access
Example:
access:
default:
user: "admin"
passwd: "admin"
port: 830
devices:
sros1:
host: 10.10.10.1
user: "admin"
passwd: "mysecurepassword"
port: 830
sros2:
host: 10.10.10.2
<<: *default
Using environment variables:
MCP_SERVER_SROS_ACCESS_DEFAULT_USER="admin"
MCP_SERVER_SROS_ACCESS_DEFAULT_PASSWD="admin"
MCP_SERVER_SROS_ACCESS_DEFAULT_PORT=830
Usage
To use the MCP server, run the command:
python mcp_server_sros.py
To use the docker, run the command:
docker run -it -p 10008:10008 \
--name mcp-server-sros \
-e MCP_SERVER_SROS_ACCESS_DEFAULT_USER="admin" \
-e MCP_SERVER_SROS_ACCESS_DEFAULT_PASSWD="admin" \
-e MCP_SERVER_SROS_ACCESS_DEFAULT_PORT=830 \
-e MCP_SERVER_SROS_HOST="0.0.0.0" \
-e MCP_SERVER_SROS_PORT=10008 \
-e MCP_SERVER_SROS_TRANSPORT="sse" \
mcp-server-sros:latest
- The MCP server exposes HTTP SSE interface on configurable port (default 10008) and IPs
- The URL for connecting to MCP SSE server locally would be:
http://127.0.0.1:10008/sse
You can test tools using curl:
curl -X POST http://localhost:10008/set_config \
-H "Content-Type: application/json" \
-d '{"device_name": "sros1", "path": "/nokia-conf:system/name", "value": "SROS-MCP"}'
Tests
Tested with Github Copilot and VS Code as MCP client using HTTP SSE.
License
The project is licensed under the MIT License.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。