Skip to main content

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:

  1. --config_path argument
  2. EOS_MCP_CONFIG environment variable
  3. ./config.ini (current directory)
  4. ~/.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
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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eos_mcp-0.2.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eos_mcp-0.2.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file eos_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: eos_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for eos_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a047a2d3f1d5c34b69619172c18a6b657c964bb692fde4bffa72a35304a138ed
MD5 ef389e5531d055bc9d94281124df15d5
BLAKE2b-256 6b51443ef6187c9c85ada2b4b7b02dec07f21ac84d4c50cdd521e6c3b42e5c96

See more details on using hashes here.

Provenance

The following attestation bundles were made for eos_mcp-0.2.0.tar.gz:

Publisher: release.yml on shigechika/eos-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file eos_mcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: eos_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for eos_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c8b742ff275a5cb7a2112969e684dc868c6a86609efa14398b050634e1e3c77
MD5 04d749b55edb9776939a4ee198e2453f
BLAKE2b-256 9a71c4648a2b8c0c296df46790905c6a648348eadfb0a6328971fd4759b703bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for eos_mcp-0.2.0-py3-none-any.whl:

Publisher: release.yml on shigechika/eos-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page