Juniper Routing Director MCP Server

io.github.Juniper由 GitHub 帳號 Juniper 發布v2.8.0更新於 Oct 24, 2026

MCP server to integrate with Juniper Routing Director

概覽

AI 產生的概覽

將 AI 助理接入 Juniper Routing Director,用於網路設備管理、設定範本、VPN 服務、拓撲、告警與 KPI 監控。

可以做什麼
  • 管理與監控網路設備,包含設定範本部署與 VPN 服務管理
  • 檢視網路拓撲以及 KPI 監控與可觀測性資料
  • 搜尋、確認與取消確認 Routing Director 上的告警
  • 取得設備 syslog 訊息及轉送、路由與作業系統相關的異常事件
  • 管理客戶與組織資訊
  • 依 ems、juniper-resiliency-interface、device-kpi 等元件篩選對外提供的工具
適用情境
適用於已部署 Juniper Routing Director 的環境,希望助理查詢網路保障、最佳化與智慧分析資料,或透過對話而非平台介面執行設備與服務設定的情境。
執行需求
以本機 Python 程序執行(Python 3.10 至 3.14),需從原始碼啟動,未發布安裝套件。需要 config.json,內含 http_url、org_id 與 auth 設定(basic 使用者名稱/密碼或 token),並能透過網路存取 Routing Director API。HTTP 傳輸可選擇以檔案式權杖啟用驗證。
安裝前請注意
設定檔以明文保存 Routing Director 憑證或 API 權杖,伺服器會代表用戶端向 Routing Director 驗證。指令黑名單僅涵蓋操作模式指令,delete、rollback factory、load factory-default 等破壞性設定指令不會被攔截,可能因提示詞觸發而遺失設備設定;建議啟用核准流程並避免此類提示。HTTP 傳輸在沒有權杖檔案時不啟用驗證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Juniper Routing Director MCP Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Routing Director MCP Server

An MCP (Model Context Protocol) server that integrates with Juniper's Routing Director platform, providing intelligent access to network routing, assurance, optimization, and intelligence capabilities.

Features

  • Flexible Authentication: Supports both basic and token-based authentication
  • Multiple Transport Options: HTTP and stdio transport protocols
  • Device management and monitoring
  • Configuration template deployment
  • VPN service management
  • Network topology visualization
  • KPI monitoring and observability
  • Customer and organization management

Prerequisites

  • Python >= 3.10, <= 3.14
  • Juniper Routing Director instance
  • Network connectivity to Routing Director API
  • Valid Routing Director credentials (username/password or API token)

Installation

From Source

bash
git clone https://github.com/Juniper/routing-director-mcp-server.gitcd routing-director-mcp-serverpython -m venv .venvsource .venv/bin/activate  # On Windows: .venv\Scripts\activatepip install -r requirements.txt

From MCP Registry

TBD

Configuration

Configuration File (config.json)

Create a config.json file with the following structure:

Basic Authentication:

json
{  "http_url": "https://your-routing-director-host/",  "org_id": "your-organization-id",  "auth": {    "type": "basic",    "username": "[email protected]",    "password": "your-password"  }}

Token Authentication:

json
{  "http_url": "https://your-routing-director-host/",  "org_id": "your-organization-id",  "auth": {    "type": "token",    "token": "your-api-token"  }}

Note: This authentication is between the MCP server and the Routing Director instance. The MCP server will handle authentication with Routing Director on behalf of clients connecting to it.

Configuration Parameters

  • http_url (required): URL of your Routing Director instance
  • org_id (required): Your organization ID in Routing Director
  • auth (required): Authentication configuration
    • type: Either basic or token
    • username: Routing Director username (for basic auth)
    • password: Routing Director password (for basic auth)
    • token: API token (for token auth)
  • components (optional): Additional component configuration to filter tools and capabilities exposed by the MCP server. If the user wishes to filter the openapi spec only for certain components, then the components field can be used to provide a list of components to filter the spec.

Components can be one of the following:

  • ems - For alarms related info (searching, ack and unack of alarms reported on Routing Director)
  • juniper-resiliency-interface - For device syslog info (retrieving syslog messages collected on Routing Director)
  • device-kpi - For fetching exception events related to Juniper Resiliency Interface (JRI) collected on Routing Director(forwarding, routing and os)

Usage

Starting the Server

bash
python RoutingDirectorMCP.py --config config.json

Command Line Options

bash
python RoutingDirectorMCP.py --help

Available options:

  • -H, --host: Server host (default: 127.0.0.1)
  • -p, --port: Server port (default: 30030)
  • -t, --transport: Transport type: streamable-http or stdio (default: streamable-http)
  • -c, --config: Path to configuration file (required)
  • -v, --verbose: Enable verbose logging

Example: Start with Custom Configuration

bash
python RoutingDirectorMCP.py \  --config config.json \  --host localhost \  --port 8000 \  --transport streamable-http \  --verbose

Authentication between the MCP Server and the MCP Host(Claude/Copilot etc)

Token Management

The server supports token-based authentication through a token manager. If a tokens file exists, authentication is automatically enabled for HTTP transports.

For stdio transport, authentication is bypassed as it's typically used in secure local environments.

Enable authentication between MCP server and MCP client.

You can use file-based token authentication for communication between an MCP client and MCP
server. To generate a token, execute the following command in your local system:

bash
   python utils/mcp/token_cli.py generate --client-id [email protected] --description "Token for SV"  

Where, client-id - is an ID that you use for generating the authentication token.
The following is a sample of the generated output:

Generated new token:   ID: my-client   Token: apa_CA98sH_VwEBd79aHA6O9NxbhXQN_RqaK   Description: Production API  

Save the generated token in a .tokens file. By default, the token is saved in the root directory of the GitHub MCP repository.

Logging

Enable detailed logging for debugging:

bash
LOG_LEVEL=DEBUG python RoutingDirectorMCP.py --config config.json --verbose

Connecting to the MCP Server

Users can use any MCP Host (like Claude, Copilot, Chatgpt, etc.) to connect to the MCP server. When configuring the MCP Host, use the same transport type, host, and port as specified when starting the MCP server.

Configure Claude
To configure Claude:

  1. Open the Claude configuration file in a text editor.
    • On a macOS machine, run the following command in the Terminal: ~/Library/Application Support/Claude/claude_desktop_config.json • On a Windows machine, open command prompt and enter: %APPDATA%\Claude\claude_desktop_config.json
  2. Add your MCP server configuration as shown below:
json
      {         "mcpServers": {            "RoutingDirector": {               "command": "/Users/username/path-to-virtual-environment/.mcp_venv/bin/python",               "args": [                 "/Users/username/path-to-mcp-python-script/RoutingDirectorMCP.py",                 "-c",                 "/Users/username/path-to-config-json/config.json",                 "-t",                 "stdio"                  ]               }            }        }  
  1. Save the file.
  2. Restart Claude.
  3. Verify the connection of Claude with MCP server.

Claude is connected to the MCP server if the MCP server tools are listed under + > Connectors.

Configure Copilot : To configure Copilot:

  1. Open Virtual Studio (VS) code.
    Alternatively, you can use any other Integrated Development Environment (IDE) that supports
    Copilot and MCP server,
  2. Open the MCP settings file using one of the following methods:
    • On a macOS, run the following command in the Terminal: Open ~/Library/Application\ Support/Code/User/mcp.json Where, user is your username on the macOS machine.
    • On a Windows machine, open command prompt and enter: C:/Users/YourUserName/AppData/Roaming/Code/User/mcp.json Where, user is your username on the Windows machine.
  3. Add the MCP server configuration to the settings file as shown below:
json
{       "mcpServers": {           "RoutingDirector": {           "command": "/Users/username/path-to-virtual-environment/.mcp_venv/bin/python",         "args": [                "/Users/username/path-to-mcp-python-script/RoutingDirectorMCP.py",                "-c", "/Users/username/path-to-config-json/config.json",                "-t", "stdio"              ]           }       }  }  
  1. Save the file.
  2. Close and reopen VS code for the MCP configuration changes to take effect.
  3. Verify that Copilot is connected with the MCP server.
    Copilot is connected to the MCP server if you find messages indicating successful connection to the
    MCP server in the Output panel of VS code.
    Alternatively, you can view MCP server tools (API calls) listed in VS code Extensions.

To ensure that the MCP server has started correctly, view the MCP server logs. The logs are
generated based on the type of communication with the AI agent:
• Starting MCP server 'Juniper Routing Directory' with transport 'stdio' if stdio is used.
• INFO Starting MCP server 'Juniper Routing Directory' with transport 'http' on http://127.0.0.1:30030/mcp if
streamable-http is used.

For more details on configuring the MCP Servers in the MCP Host Apps , please refer VScode Copilot: https://code.visualstudio.com/docs/copilot/customization/mcp-servers Claude: https://code.claude.com/docs/en/mcp


Troubleshooting

Issue: "Config file path is required"

Solution: Ensure you provide the --config flag with a valid path to your configuration file.

Issue: "Mandatory key missing in MCP config file"

Solution: Verify that your config.json includes all required keys: http_url, org_id, and auth.

Issue: "Failed to authenticate"

Solution:

  • Verify your Routing Director credentials
  • Ensure the Routing Director instance is accessible at the configured http_url
  • Check that your username/password or API token is correct
  • Verify network connectivity to the Routing Director host

Issue: Connection Refused

Solution:

  • Verify the server is running with --host and --port matching your client configuration
  • Check firewall rules allow traffic on the configured port

Issue: "No tokens file found. Authentication DISABLED"

Solution: For HTTP transports requiring authentication, ensure token files are properly initialized. For development/testing, this is typically acceptable.


Release 2.10.0

Current version: v2.10.0

Juniper's Routing Director 2.10.0 User Guide: https://www.juniper.net/documentation/us/en/software/juniper-routing-director2.10.0/user-guide/index.html

Whats new?
  • Support for python 3.14
  • Bug fixes
Known Issues:
  1. The MCP server's command blacklist only covers operational mode commands. Destructive configuration commands — such as delete, rollback factory, load factory-default, and their NETCONF equivalents — are not blocked and can be executed if triggered by a user prompt or LLM-generated action, potentially causing loss of critical device configuration. Workaround: We recommend that you avoid prompts that may trigger destructive configuration changes. Additionally, enable the MCP approval workflow to require manual confirmation before any configuration-changing commands are executed on devices.

Acknowledgments

This MCP server integrates with Juniper Networks' Routing Director platform, providing enterprise-grade network intelligence and optimization capabilities.


來源:README.md,提交 59d9310

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v2.8.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分