
为您的网络建立 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或更新
# # 设置您的环境
- 安装
uv
麦克OS/Linux:
酿造安装 v
QQ 重新启动您的终端,以确保命令可用
uv。
- 设置您的项目
开始
阴道 源.venv/bin/激活 #或.venv\脚本在Windows上激活
uv 加上"mcp[cli]"
# # # 运行您的服务器
蟒蛇网络助手. py.
这个启动您的 MCP 服务器通过 [ [T3]], 准备连接到 Claude 。
# # # 与 Claude 一起测试桌面
Claude for Desktop目前只在macOS和Windows上提供.
- 从这里下载 Claude 到桌面。
- 打开克洛德桌面应用程序。
- 配置 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
uvcommand 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.
- Download Claude for Desktop from here.
- Open your Claude Desktop app.
- 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) orwhere uv(Windows) to get the path touvif 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?
- Claude parses your prompt and finds relevant tools.
- It calls
get_network_standards()orget_device_status()over MCP. - Your server executes the tool logic and returns structured data.
- Claude responds using your actual context
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →