MCP server for Arista EOS device operations via eAPI
Project description
eos-mcp
MCP server for Arista EOS device operations via eAPI.
Exposes EOS show commands, running-config retrieval, configuration push (via configure session with commit timer), and tech-support collection to MCP-compatible AI assistants.
Installation
pip install eos-mcp
Configuration
Copy config.ini.example to ~/.config/eos-mcp/config.ini and fill in credentials:
[DEFAULT]
username = admin
password = yourpassword
transport = https
verify = false
[switch1.example.com]
tags = main,dc1
[switch2.example.com]
tags = main,dc1
Config file discovery order:
--config_pathargumentEOS_MCP_CONFIGenvironment variable./config.ini(current directory)~/.config/eos-mcp/config.ini
Usage
# Verify config and list devices
eos-mcp --check
# Test connectivity to a specific host
eos-mcp --check --check-host switch1.example.com
# Start MCP server (stdio transport, default)
eos-mcp
Tools
| Tool | Description |
|---|---|
get_router_list |
List registered devices (optional tag filter) |
get_device_facts |
Return structured facts for one device (model, serial, EOS version, uptime, memory) |
get_device_facts_batch |
Return device facts for multiple devices in parallel |
get_version |
Return EOS version string (quick connectivity check) |
run_command |
Run a single enable-mode command on one device |
run_commands |
Run multiple enable-mode commands on one device |
run_command_batch |
Run an enable-mode command on multiple devices in parallel |
run_commands_batch |
Run multiple enable-mode commands on multiple devices in parallel |
get_config |
Retrieve running-config |
get_config_diff |
Show config diff vs rollback checkpoint |
list_config_sessions |
List configure sessions and their state |
push_config |
Push config via configure session (dry_run=True by default) |
confirm_config_session |
Confirm a pending commit timer session |
abort_config_session |
Abort a pending session |
collect_tech_support |
Collect show tech-support output |
daily_brief |
Health check (environment, errdisabled, uptime) across multiple devices |
Requirements
- Python >= 3.10
- Arista EOS with eAPI enabled (
management api http-commands) - Network access to port 443 (HTTPS) on target devices
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eos_mcp-0.2.1.tar.gz.
File metadata
- Download URL: eos_mcp-0.2.1.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a23c398e53ae834ce55e9edce28796748d0e8cffae8fa9416971dc8f435c165
|
|
| MD5 |
102fc0db40ff281d59463c4c188ccebe
|
|
| BLAKE2b-256 |
be1a23cb7d919c703be3aa96a84a7feb49c783408f77838ca1f5a1c17faae644
|
Provenance
The following attestation bundles were made for eos_mcp-0.2.1.tar.gz:
Publisher:
release.yml on shigechika/eos-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eos_mcp-0.2.1.tar.gz -
Subject digest:
2a23c398e53ae834ce55e9edce28796748d0e8cffae8fa9416971dc8f435c165 - Sigstore transparency entry: 1632078069
- Sigstore integration time:
-
Permalink:
shigechika/eos-mcp@2c845a88ca6f41844efa376406783472b533ddfb -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/shigechika
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2c845a88ca6f41844efa376406783472b533ddfb -
Trigger Event:
push
-
Statement type:
File details
Details for the file eos_mcp-0.2.1-py3-none-any.whl.
File metadata
- Download URL: eos_mcp-0.2.1-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b786e7e5e9e5d8d4cb499ab96ba75e6fc417d7e04e19dfdce138c5dedbad4cd
|
|
| MD5 |
748ceb202b0c59aad0b4dbb98c517075
|
|
| BLAKE2b-256 |
0354bc7bbf712b38f0489c345f0cac0e2f221eb069d1daf54b9fc3ef837a8a45
|
Provenance
The following attestation bundles were made for eos_mcp-0.2.1-py3-none-any.whl:
Publisher:
release.yml on shigechika/eos-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eos_mcp-0.2.1-py3-none-any.whl -
Subject digest:
2b786e7e5e9e5d8d4cb499ab96ba75e6fc417d7e04e19dfdce138c5dedbad4cd - Sigstore transparency entry: 1632078074
- Sigstore integration time:
-
Permalink:
shigechika/eos-mcp@2c845a88ca6f41844efa376406783472b533ddfb -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/shigechika
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2c845a88ca6f41844efa376406783472b533ddfb -
Trigger Event:
push
-
Statement type: