mcp-server-sros
Allows managing Nokia SR OS devices, including retrieving operational state and modifying configuration through MCP tools.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-server-srosGet facts from sros1 device"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: Nokia SR OS NETCONF MCP Server
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.txtRename 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.ymlBuild 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
<<: *defaultUsing 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.pyTo 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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables MCP clients to interact with Palo Alto Networks firewalls and Panorama, providing tools to retrieve address objects, security zones, policies, and system information.12
- Flicense-qualityDmaintenanceEnables managing Nokia SR OS devices via NETCONF from Claude Desktop, supporting MD-CLI commands, configuration retrieval and editing, candidate workflow with commit/rollback, and multi-device sessions.1
- Flicense-qualityDmaintenanceMCP server for managing Nokia SR OS devices via gNMI (gRPC) from Claude Desktop.
- -license-quality-maintenanceEnables querying and interacting with Arista CloudVision via MCP, supporting both HTTP and gRPC connections.6
Related MCP Connectors
Tailscale device, route, DNS, key, user, and ACL management over MCP and CLI.
PeeringDB MCP — the peering ecosystem database.
MCP tools for TON Sites, TON DNS and TON Storage.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/mohamedhafez87/mcp-server-sros'
If you have feedback or need assistance with the MCP directory API, please join our Discord server