KM

kiskander/mcp-network-assistant

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

29 stars 14 forks 质量 35 趋势 11

为您的网络建立 AI 代理

概览

这个项目建立了一个模式背景协议(MCP)服务器,专门为. 它允许Claude for Desktop(或其他LLM客户端)通过原始工具获取关于您网络的结构化知识——如路由政策和设备健康. 这个快速启动假设你熟悉: - Python - LLMs像克洛德 QQ 重新启动您的终端, 以确保 uv 命令可用 。 uv venv source.venv/bin/activate #或.venv\脚本在Windows上激活 这个启动你的MCP服务器 通过stdio,准备连接克洛德。 Claude for Desktop目前只在macOS和Windows上可用. 1. 从这里下载 Claude 到桌面。 2. 打开您的 Claude 桌面应用程序 。 3. 配置 MCP 服务器于 : - ~/ 图书馆/ 应用程序支持/ Claude desktop config.json (macOS) - C:\Users\\\ AppData\Roaming\Claude desktop config .

概述(AI 翻译)

这个项目建立了一个模式背景协议(MCP)服务器,专门为网络工程师设计. 它允许Claude for Desktop(或其他LLM客户端)通过"[T0]"原始获取关于你网络的结构化知识——如路由政策和设备健康.

□ □ · 先决条件知识

这个快速启动假设你熟悉:

  • 蟒蛇
  • 克劳德这样的法学硕士

# # # # 系统要求

  • Python 3.10以上
  • MCP Python SDK v1.2.0或更新

# # 设置您的环境

  1. 安装uv

麦克OS/Linux:

酿造安装 v

QQ 重新启动您的终端,以确保命令可用 uv 。

  1. 设置您的项目

开始

阴道 源.venv/bin/激活 #或.venv\脚本在Windows上激活

uv 加上"mcp[cli]"

# # # 运行您的服务器

蟒蛇网络助手. py.

这个启动您的 MCP 服务器通过 [ [T3]], 准备连接到 Claude 。

# # # 与 Claude 一起测试桌面

Claude for Desktop目前只在macOS和Windows上提供.

  1. 从这里下载 Claude 到桌面。
  2. 打开克洛德桌面应用程序。
  3. 配置 MCP 服务器 :
  • [[T4] (macOS)

本页由 AI 翻译,技术细节请以原文为准。

README

Network Assistant — MCP Server for Network Engineers

This project sets up a Model Context Protocol (MCP) server designed specifically for network engineers.
It allows Claude for Desktop (or other LLM clients) to access structured knowledge about your network — such as routing policies and device health — via the tools primitive.

🧠 Prerequisite Knowledge

This quickstart assumes you’re familiar with:

  • Python
  • LLMs like Claude

💻 System Requirements

  • Python 3.10 or higher
  • MCP Python SDK v1.2.0 or newer

⚙️ Set Up Your Environment

1. Install uv

MacOS/Linux:

brew install uv

🔁 Restart your terminal to ensure the uv command is available.

2. Set Up Your Project

uv init

uv venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows

uv add "mcp[cli]"

▶️ Run Your Server

python network-assistant.py

This launches your MCP server over stdio, ready to connect to Claude.

🧪 Test with Claude for Desktop

Claude for Desktop is currently only available on macOS and Windows.

  1. Download Claude for Desktop from here.
  2. Open your Claude Desktop app.
  3. Configure the MCP server in:
    • ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
    • C:\Users\\AppData\Roaming\Claude\claude_desktop_config.json (Windows)

Example config:

{
  "mcpServers": {
    "network": {
      "command": "uv",
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/network-assistant",
        "run",
        "network_assistant.py"
      ]
    }
  }
}

Use which uv (macOS/Linux) or where uv (Windows) to get the path to uv if needed.

Restart Claude Desktop after saving the config file.

🔨 Tools Available in Claude

Click the 🛠 hammer icon in Claude. You should see:

  • get_network_standards()
  • get_device_status(device_name)

Now ask Claude:

- What routing protocols do we use in our network?
- What is the current status of my network devices?
- What is the status of all devices in the network?

🔍 What’s Happening Behind the Scenes?

  1. Claude parses your prompt and finds relevant tools.
  2. It calls get_network_standards() or get_device_status() over MCP.
  3. Your server executes the tool logic and returns structured data.
  4. Claude responds using your actual context
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →