
kiskander/mcp-network-assistant
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
ネットワーク用のAIエージェントの構築
概要
このプロジェクトは、具体的に設計されたモデルコンテキストプロトコル(MCP)サーバーを設定します。 Claude for Desktop(または他のLLMクライアント)がネットワークに関する構造化された知識にアクセスできるため、ルーティングポリシーやデバイスヘルスなど、ツールのプリミティブを介して。 このクイックスタートは、あなたがよく知っていると仮定します: - Python - クロードのようなLM uv コマンドが利用できるようにターミナルを再起動します。 uv venv ソース .venv/bin/activate # または Windows 上で .venv\Scripts\activate MCP サーバーを stdio 経由で起動し、Claude に接続します。 デスクトップ用のClaudeは現在、macOSとWindowsでのみ利用可能です。 1。 ここからデスクトップ用のClaudeをダウンロードしてください。 2。 Claudeデスクトップアプリを開きます。 3。 MCPサーバーの設定: - ~/ Library / Application Support/Claude/claude desktop config.json(macOS) - C:\Users\AppData\Roaming\Claude\claude desktop config.json(macOS).
概要(AI 翻訳)
このプロジェクトでは、**network エンジニアのために特別に設計されたモデルコンテキストプロトコル(MCP)サーバーを設定します。
Claude for Desktop(または他のLMクライアント)は、ネットワークに関する構造化された知識にアクセスできるようにします。たとえば、ルーティングポリシーやデバイスヘルス - [tools]を介して。
🧠 前提条件知識
このクイックスタートは、あなたがよく知っていると仮定します。
- Pythonの
- クロードのようなLM
----- システム要件
- Python3.10以上
- MCP Python SDKv1.2.0以降
◀️ あなたの環境を設定する
##1. インストール uv
MacOS/Linux:
brew インストール uv
[
uv]コマンドが使用可能であることを確認するためにターミナルを再起動します。
##2. プロジェクトを設定する
uvインシット
uv ベンフ source .venv/bin/activate # または .venv\Scripts\Windows上でアクティブ化
uv は "mcp[cli] を追加します。
▶️ サーバーの実行
python ネットワーク-assistant.py
これは、Claudeに接続するための準備が整った[stdio]の上にMCPサーバーを起動します。
🧪 デスクトップ向けClaudeテスト
デスクトップ用のClaudeは現在、macOSとWindowsでのみ利用可能です。 1。 ここからデスクトップ用のClaudeをダウンロードしてください。 2。 Claudeデスクトップアプリを開きます。
- MCP サーバーの設定:
- [
~/Library/Application Support/Claude/claude_desktop_config.json(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 MCP 初心者?mcpskill.org のガイドから始めましょう →