MCP Server Scrapli logo

MCP Server Scrapli

by mmaeso

A basic MCP (Model Context Protocol) Server to interact with network devices using Scrapli. It allows compatible MCP clients to SSH into network devices.

View on GitHub

Last updated: N/A

What is MCP Server Scrapli?

This is a proof-of-concept MCP server that uses Scrapli to establish SSH connections to network devices. It allows MCP clients like Claude Desktop to interact with these devices.

How to use MCP Server Scrapli?

  1. Install UV package manager. 2. Clone the repository. 3. Install dependencies using uv sync. 4. Activate the virtual environment. 5. Rename .env.example to .env and configure device credentials. 6. Start the server using uv run main.py. For Claude Desktop, use an MCP SSE Gateway like mcp-server-and-gw and configure the claude_desktop_config.json file.

Key features of MCP Server Scrapli

  • Uses Scrapli for asynchronous SSH connections

  • Compatible with MCP clients

  • Configurable host and port

  • Supports device authentication via .env file

  • Example configuration for Claude Desktop with MCP SSE Gateway

Use cases of MCP Server Scrapli

  • Automated network device configuration

  • Network device monitoring

  • Remote access to network devices

  • Integration with MCP-compatible applications

  • Using Claude Desktop to interact with network devices

FAQ from MCP Server Scrapli

Is this server compatible with Windows?

Scrapli is not compatible with Windows, so this MCP server can only be installed on Linux/MacOS.

What package manager does this project use?

This project uses UV for package management.

How do I install the dependencies?

After cloning the repo, use the command uv sync to install the dependencies.

How do I configure the server's host and port?

Use the --host and --port flags when running main.py. For example: uv run main.py --host 127.0.0.1 --port 8081

How do I use this server with Claude Desktop on Windows?

Use an MCP SSE Gateway like mcp-server-and-gw and configure the claude_desktop_config.json file as described in the README.