Arista CloudVision MCP server

Enables Claude to interact with Arista CloudVision for network management tasks including device inventory, system events, connectivity monitoring, and tag creation through conversational prompts.
Back to servers
Setup instructions
Provider
noredistribution
Release date
May 03, 2025
Stats
1 star

MCP Server Demo with Arista CloudVision is a tool that integrates Claude AI with CloudVision's API. This integration allows you to use natural language to retrieve data from CloudVision and perform operations like getting connectivity monitor data and creating tags for Studios and dashboards.

Installation and Setup

Prerequisites

  • CloudVision service account token
  • Claude Desktop application
  • Python environment

Installation Steps

  1. Create a .env file in your project directory with your CloudVision credentials:
CVPTOKEN="Insert CloudVision Service account token here"
CVP="www.arista.io"
  1. Download Claude Desktop and install it on your system

  2. Configure Claude Desktop to run the MCP server by updating the claude_desktop_config.json file in the developer settings:

{
  "mcpServers": {
    "CVP MCP Server": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "fastmcp",
        "fastmcp",
        "run",
        "/home/ansible/mcp-cvp-fun/mcp_server_rest.py"
      ]
    }
  }
}
  1. Make sure to adjust the path in the configuration to match where you've placed the mcp_server_rest.py file on your system

  2. Reload Claude to apply the changes

Usage

After completing the setup, you can start using natural language queries with Claude to interact with your CloudVision environment. Here are some examples of what you can do:

Generating CloudVision Service Account Tokens

If you haven't already created a service account token, you'll need to:

  1. Navigate to the Settings page in CloudVision
  2. Create a service account
  3. Generate a service token
  4. Copy this token to your .env file

Working with Claude

Once your MCP server is running:

  1. Open Claude Desktop
  2. Start asking questions about your CloudVision environment
  3. Request specific data like connectivity monitor information
  4. Create tags for Studios and dashboards using natural language commands

Example Commands

You can ask Claude questions like:

  • "Show me the connectivity data for device X"
  • "Create a new tag called 'Production' for my dashboard"
  • "List all available devices in CloudVision"

Troubleshooting

If you encounter issues:

  • Make sure your service account token is valid
  • Check that the path to your MCP server script is correct in the configuration
  • Verify that Claude Desktop is properly configured to use the MCP server
  • Ensure the required Python packages are installed in your environment

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "CVP-MCP-Server" '{"command":"uv","args":["run","--with","fastmcp","fastmcp","run","/home/ansible/mcp-cvp-fun/mcp_server_rest.py"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "CVP MCP Server": {
            "command": "uv",
            "args": [
                "run",
                "--with",
                "fastmcp",
                "fastmcp",
                "run",
                "/home/ansible/mcp-cvp-fun/mcp_server_rest.py"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "CVP MCP Server": {
            "command": "uv",
            "args": [
                "run",
                "--with",
                "fastmcp",
                "fastmcp",
                "run",
                "/home/ansible/mcp-cvp-fun/mcp_server_rest.py"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later