Nokia SR OS GNMI Server
БесплатноНе проверенMCP server for managing Nokia SR OS devices via gNMI (gRPC) from Claude Desktop.
Описание
MCP server for managing Nokia SR OS devices via gNMI (gRPC) from Claude Desktop.
README
MCP server for managing Nokia SR OS devices via gNMI (gRPC) from Claude Desktop.
Features
- gNMI Get — retrieve configuration and operational state with YANG paths
- gNMI Set — update, replace, or delete configuration
- MD-CLI commands — via Nokia gNMI CLI extension
- gNMI Capabilities — discover supported models and encodings
- Runtime credentials — no passwords in config files
- Multi-device — manage multiple SR OS devices simultaneously
- JSON output — clean json_ietf encoding (easier to read than XML)
Installation
cd nokia-gnmi-mcp
# Option A: uv (recommended)
uv sync
# Option B: pip
pip install -e .
Claude Desktop Configuration
Edit %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"nokia-gnmi": {
"command": "uv",
"args": [
"--directory",
"C:\\Users\\YourUser\\nokia-gnmi-mcp",
"run",
"nokia-gnmi-mcp"
]
}
}
}
Usage
1. Connect to a device
"Connect to my SR OS router at 192.168.1.1 via gNMI, username admin, password Nokia123, call it pe1"
2. Get configuration
"Show me the router interfaces config on pe1"
Claude uses path: /configure/router[router-name=Base]/interface
3. Get operational state
"What's the BGP neighbor state on pe1?"
Claude uses path: /state/router[router-name=Base]/bgp/neighbor
4. Update configuration
"Create a loopback lo5 with IP 10.10.10.5/32 on pe1"
Claude uses gNMI Set update.
5. Delete configuration
"Remove interface test from pe1"
Claude uses gNMI Set delete.
Tools Reference
| Tool | gNMI Op | Description |
|---|---|---|
sros_connect |
— | Connect to device (host, port, credentials, TLS options) |
sros_disconnect |
— | Close gNMI session |
sros_get_config |
Get (CONFIG) | Retrieve configuration by YANG path |
sros_get_state |
Get (STATE) | Retrieve operational state by YANG path |
sros_set_update |
Set (update) | Merge configuration changes |
sros_set_replace |
Set (replace) | Replace configuration subtree |
sros_set_delete |
Set (delete) | Delete configuration elements |
sros_cli_command |
CLI ext | MD-CLI show commands via gNMI |
sros_capabilities |
Capabilities | List supported models and encodings |
sros_list_sessions |
— | List active sessions |
Nokia YANG Path Reference
Configuration paths (/configure/...)
/configure/router[router-name=Base]/interface
/configure/router[router-name=Base]/bgp
/configure/router[router-name=Base]/isis[isis-instance=0]
/configure/port[port-id=1/1/c2/1]
/configure/card[slot-number=1]
/configure/service/vprn[service-name=CUST-1]
/configure/service/vpls[service-name=L2-1]
/configure/system
State paths (/state/...)
/state/router[router-name=Base]/interface[interface-name=to-pe2]
/state/router[router-name=Base]/bgp/neighbor
/state/port[port-id=1/1/c2/1]
/state/card[slot-number=1]
/state/system/information
Differences from NETCONF MCP
| Feature | NETCONF MCP | gNMI MCP |
|---|---|---|
| Protocol | NETCONF/SSH | gRPC/HTTP2 |
| Port | 830 | 57400 |
| Encoding | XML | JSON (json_ietf) |
| Candidate datastore | Yes (commit/rollback) | No (direct apply) |
| Output readability | XML verbose | JSON clean |
| Streaming telemetry | No | Possible (future) |
Troubleshooting
Connection refused: Ensure gRPC is enabled on SR OS:
configure system grpc admin-state enable
configure system grpc allow-unsecure-connection
configure system grpc gnmi admin-state enable
configure system grpc gnmi auto-config-save true
TLS errors: Use skip_verify=true for lab or insecure=true for non-TLS connections.
Timeout: Increase timeout in sros_connect. Large state queries may need more time.
Установить Nokia SR OS GNMI Server в Claude Desktop, Claude Code, Cursor
unyly install nokia-sr-os-gnmi-mcp-serverСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add nokia-sr-os-gnmi-mcp-server -- uvx --from git+https://github.com/coolexer/gNMI-MCP-server nokia-gnmi-mcpFAQ
Nokia SR OS GNMI Server MCP бесплатный?
Да, Nokia SR OS GNMI Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Nokia SR OS GNMI Server?
Нет, Nokia SR OS GNMI Server работает без API-ключей и переменных окружения.
Nokia SR OS GNMI Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Nokia SR OS GNMI Server в Claude Desktop, Claude Code или Cursor?
Открой Nokia SR OS GNMI Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Nokia SR OS GNMI Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
