
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 助手接入 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 传输可选使用基于文件的令牌启用认证。
安装
在 SourceWeft 中
- 打开 控制台中的 Juniper Routing Director MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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
From MCP Registry
TBD
Configuration
Configuration File (config.json)
Create a config.json file with the following structure:
Basic Authentication:
Token Authentication:
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
basicortoken - username: Routing Director username (for basic auth)
- password: Routing Director password (for basic auth)
- token: API token (for token auth)
- type: Either
- 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
componentsfield 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
Command Line Options
Available options:
-H, --host: Server host (default: 127.0.0.1)-p, --port: Server port (default: 30030)-t, --transport: Transport type:streamable-httporstdio(default: streamable-http)-c, --config: Path to configuration file (required)-v, --verbose: Enable verbose logging
Example: Start with Custom Configuration
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:
Where,
client-id - is an ID that you use for generating the authentication token.
The following is a sample of the generated output:
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:
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:
- 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 - Add your MCP server configuration as shown below:
- Save the file.
- Restart Claude.
- 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:
- Open Virtual Studio (VS) code.
Alternatively, you can use any other Integrated Development Environment (IDE) that supports
Copilot and MCP server, - 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.jsonWhere, 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.jsonWhere, user is your username on the Windows machine. - Add the MCP server configuration to the settings file as shown below:
- Save the file.
- Close and reopen VS code for the MCP configuration changes to take effect.
- 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
--hostand--portmatching 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:
- 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版本历史
1- v2.8.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分