MCP server for Juniper devices running Junos. Tools for executing operational commands and changing device configuration
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"mcp-server-junos": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
The mcp-server-junos project provides MCP tools for viewing operational state and changing configuraton of Juniper Networks devices with Junos operating system. it uses Juniper's junos-eznc Python SDK and FastMCP.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in devops
MCP server for using the GitLab API
Enhanced MCP server for GitLab: group projects listing and activity tracking
Yunxiao MCP Server provides AI assistants with the ability to interact with the Yunxiao platform. It provides a set of tools that interact with Yunxiao's API, allowing AI assistants to manage Codeup repository, Project, Pipeline, Packages etc.
MCP server for Komodo - manage Docker containers, servers, stacks, and deployments via AI
MCP Security Weekly
Get CVE alerts and security updates for Mcp Server Junos and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
The mcp-server-junos project provides MCP tools for viewing operational state and changing configuraton of Juniper Networks devices with Junos operating system.
it uses Juniper's junos-eznc Python SDK and FastMCP.
set and junos (curly brackets) formats.git clone <repository-url>
cd mcp-server-junos
Install the required dependencies:
pip install -r requirements.txt
Rename example config file config.example.yml to config.yml
mv config.example.yml config.yml
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.yml to config.yml and configure it accordingly, before
mv config.example.yml config.yml
Build docker container image
docker build -t mcp-server-junos .
The expected configuration file is named config.yml and it should be located in the root directory.
The supplied example config file config.example.yml can be used as a starting point
mv config.example.yml config.yml
If Environment variables are used, they will take precedence over configuration file parameters.
Using config file:
global:
# To listen on all available interfaces use "0.0.0.0"
server_host: 127.0.0.1
server_port: 10008
# Possible values: "sse" or "streamable-http"
server_transport: "streamable-http"
Using Environment variables:
MCP_SERVER_JUNOS_HOST="127.0.0.1"
MCP_SERVER_JUNOS_PORT=10008
MCP_SERVER_JUNOS_TRANSPORT="streamable-http"
LOG_LEVEL="INFO"
Using config file:
Configuration file key devices contains the dictionary of the device names with their respective access configuration.
device_name: Name of the device
host: IP address for accessuser: Username for accesspasswd: Password for accessport: TCP port for NETCONF/SSH accessExample:
access:
default:
user: "admin"
passwd: "admin@123"
port: 830
test: &test
user: "admin"
passwd: "admin@123"
port: 830
devices:
r1:
host: 172.20.20.2
user: "admin"
passwd: "admin@123"
port: 830
r2:
host: 172.20.20.3
<<: *test
Default access parameters can be specified for devices which are not explicitly configured in the configuration file.
Those can be used through exposed MCP tools by supplying IP address in the host argument.
First preference are environment variables:
MCP_SERVER_JUNOS_ACCESS_DEFAULT_USER="admin"
MCP_SERVER_JUNOS_ACCESS_DEFAULT_PASSWD="admin"
MCP_SERVER_JUNOS_ACCESS_DEFAULT_PORT=830
Second preference is config file:
access:
default:
user: "admin"
passwd: "admin"
port: 830
To use the MCP server, run the file:
python mcp_server_junos.py