
Oxidized MCP
io.github.mhajder由 GitHub 帳號 mhajder 發布v0.2.2更新於 Nov 7, 2026
MCP server for Oxidized network device configuration backups
概覽
此 MCP 伺服器讓助理透過 oxidized-web API 瀏覽、搜尋、比對並觸發 Oxidized 中的網路設備設定備份。
- 可以做什麼
- 列出、尋找裝置並檢視備份狀態與健康統計
- 分頁讀取裝置最新備份的設定內容
- 以正規表示式或字面文字搜尋所有已存設定並附上上下文
- 檢視版本歷史、讀取歷史版本並以統一差異格式比對
- 觸發裝置立即備份或重新載入節點清單(唯讀模式下隱藏)
- 適用情境
- 適合已用 Oxidized 保存網路設備設定、希望助理直接回答裝置清單、備份健康狀況、設定內容或近期變更,並在不開啟網頁介面的情況下觸發備份的情境。
- 執行需求
- 需要 Python 3.11-3.15(以 uvx 或 pip 執行)或 Docker 映像;需要可連線且啟用 oxidized-web 的 Oxidized 實例,透過 OXIDIZED_URL 指定。選用的 HTTP Basic 認證使用 OXIDIZED_USERNAME 與 OXIDIZED_PASSWORD。版本歷史與差異需要 git 或 gitcrypt 輸出。HTTP 傳輸可設定 MCP_HTTP_BEARER_TOKEN。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Oxidized MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Oxidized MCP Server
Let AI agents search, compare and back up network device configs stored in Oxidized
Oxidized MCP Server is a Python-based Model Context Protocol (MCP) server that gives AI assistants access to Oxidized, the network device configuration backup tool. It talks to the oxidized-web REST API to list devices, check backup health, read and search device configurations, browse and diff configuration history, and queue backups. It supports read-only mode, tag-based tool filtering, and bearer token authentication for HTTP transports.
✨ Features
Core Features
- List and filter managed devices by group, model and last backup status
- Find devices by partial name, full name (
group/name) or IP address - Summarise backup health: failures, devices never backed up and stale backups
- Read the latest backed-up configuration of any device, paged for large configs
- Search all configurations for a regular expression or literal text, with matching lines and context
Configuration History
- List the stored configuration versions of a device (git output)
- Read a device's configuration as it was at any version (full oid or short prefix)
- Diff two versions, or just see the most recent change, as a unified diff
Operations
- Queue an immediate backup of a device, optionally with a commit message and author
- Reload the node list from its source (router.db, SQL, HTTP, ...)
- Read-only mode hides every operation for safe monitoring
Advanced Capabilities
- Node vars (often device credentials) are redacted in tool output by default
- HTTP Basic auth for oxidized-web behind a reverse proxy
- Rate limiting, SSL/TLS verification and configurable timeouts
- Tag-based tool filtering and an optional tool-search transform
- Bearer token authentication for HTTP transports
🚀 Installation
Prerequisites
- Python 3.11 to 3.15
- A running Oxidized instance with oxidized-web enabled
- For version history and diffs: the Oxidized
git(orgitcrypt) output
Quick Install from PyPI
The easiest way to get started is to install from PyPI:
Remember to configure the environment variables for your Oxidized instance before running the server:
For more details, visit: https://pypi.org/project/oxidized-mcp/
Install from Source
- Clone the repository:
- Install dependencies:
- Configure environment variables:
- Run the server:
Development Setup
For development with additional tools:
🔧 Configuration
Environment Variables
Sentry Error Tracking & Monitoring (Optional)
The server optionally supports Sentry for error tracking, performance monitoring, and debugging. Sentry integration is completely optional and only initialized if configured.
Installation
To enable Sentry monitoring, install the optional dependency:
Configuration
Enable Sentry by setting the SENTRY_DSN environment variable in your .env file:
Features
When enabled, Sentry automatically captures:
- Exceptions & Errors: All unhandled exceptions with full context
- Performance Metrics: Request/response times and traces
- MCP Integration: Detailed MCP server activity and interactions
- Logs & Breadcrumbs: Application logs and event trails for debugging
- Context Data: Environment, client info, and request parameters
Getting a Sentry DSN
- Create a free account at sentry.io
- Create a new Python project
- Copy your DSN from the project settings
- Set it in your
.envfile
Disabling Sentry
Sentry is completely optional. If you don't set SENTRY_DSN, the server will run normally without any Sentry integration, and no monitoring data will be collected.
🧰 Available Tools
Node Tools
list_nodes: List devices with optional filters (group, model, last run status, name/IP substring) and paging; group/model are filtered by Oxidized itself (/nodes/<group|model>/<value>.json), so large inventories are not transferred in fullget_node: Get a single device's details and last backup run (accepts name or IP)find_nodes: Find devices by partial name, full name or IP, exact matches firstget_backup_stats: Backup health summary - counts per status, group and model, success rate, failed / never backed up / stale devices; optionally for a single group or model
Configuration Tools
get_node_config: Get the latest backed-up configuration of a device (by name or IP), paged by lines (offset/max_lines)search_configs: Search all configurations for a regex or literal text; returns matching lines with line numbers and optional context
Version History Tools
Require the Oxidized git or gitcrypt output.
list_node_versions: List stored configuration versions (oid, date, author, message), newest firstget_node_version: Get the configuration at a given version (full oid or unique prefix), paged by linesdiff_node_versions: Unified diff between two versions; defaults to the most recent change
Operation Tools
Hidden when READ_ONLY_MODE=true.
trigger_node_backup: Queue an immediate backup of a device, optionally recording a commit message and authorreload_nodes: Reload the whole node list from its source (a per-node reload is deliberately not offered: oxidized-web's/reload?node=Xreplaces the entire in-memory node list with the matching nodes)
🔒 Security & Safety Features
Read-Only Mode
The server supports a read-only mode that disables all write operations for safe monitoring:
When enabled, only tools tagged read-only are exposed: trigger_node_backup and reload_nodes are hidden, while every node, configuration and history tool stays available.
Tag-Based Tool Filtering
You can disable specific categories of tools by setting disabled tags:
Available tags include:
node- Node listing and lookup tools (and the backup/reload operations)stats- Backup health statisticsconfig- Configuration read toolssearch- Configuration search and node search toolsversion- Version history toolsdiff- Version diff toolbackup- Backup trigger operationreload- Node list reload operationread-only- Every tool that does not change Oxidized state
Rate Limiting
The server supports rate limiting to control API usage and prevent abuse. If enabled, requests are limited per client using a sliding window algorithm.
Enable rate limiting by setting the following environment variables in your .env file:
If RATE_LIMIT_ENABLED is set to true, the server will apply rate limiting middleware. Adjust RATE_LIMIT_MAX_REQUESTS and RATE_LIMIT_WINDOW_MINUTES as needed for your environment. Both must be at least 1 when rate limiting is on; while it is off they are not read.
Tool Search for Large Toolsets
FastMCP tool search can reduce prompt size for servers with many tools.
When enabled, list_tools returns two synthetic tools:
search_tools: Finds matching tools and returns their full schemascall_tool: Executes any discovered tool by name
Enable it with:
bm25 supports natural language queries, while regex uses a regex
pattern input for deterministic matching.
With tool search enabled, any other TOOL_SEARCH_STRATEGY value stops the
server at startup, and TOOL_SEARCH_MAX_RESULTS must be at least 1.
Tool search respects existing visibility controls (read-only mode and disabled tags).
SSL/TLS Configuration
The server supports SSL certificate verification and custom timeout settings:
Upstream Authentication
oxidized-web has no authentication of its own and is usually published behind a reverse proxy with HTTP Basic auth. Set both variables to send Basic auth with every request:
Node Vars Redaction
Node vars from the Oxidized source (router.db, SQL, HTTP) often contain per-device credentials, and oxidized-web returns them unredacted from /nodes.json. The server replaces every var value with <redacted> (keeping the keys) unless you opt out:
Transport Configuration
The server supports multiple transport protocols for different deployment scenarios:
STDIO Transport (Default)
The default transport uses standard input/output for communication. This is ideal for local usage and integration with tools that communicate via stdin/stdout:
HTTP SSE Transport (Server-Sent Events)
For network-based deployments, you can use HTTP with Server-Sent Events. This allows the MCP server to be accessed over HTTP with real-time streaming:
When using SSE transport with a bearer token, clients must include the token in their requests:
HTTP Streamable Transport
The HTTP Streamable transport provides HTTP-based communication with request/response streaming. This is ideal for web integrations and tools that need HTTP endpoints:
When using streamable transport with a bearer token:
Note: The HTTP transport requires proper JSON-RPC formatting with jsonrpc and id fields. The server may also require session initialization for some operations.
Health Endpoint
Both HTTP transports (sse and http) serve GET /health, which answers 200 ok
when the server is handling requests. It needs no bearer token and does not
contact Oxidized, so an Oxidized outage does not mark the MCP server unhealthy.
The Docker image's HEALTHCHECK uses it:
📝 Oxidized Notes
- Version history (
list_node_versions,get_node_version,diff_node_versions) needs thegitorgitcryptoutput. With thefileoutput Oxidized reports no versions. - Groups: node names should be unique. Tools accept an optional
groupto disambiguate;get_node_configand the history tools look the group up automatically when it is omitted (with the git output'ssingle_repothe group is part of the stored path, so it is required by oxidized-web). Nodes without a group are shown as groupdefault, and passingdefaultback is treated as "no group".search_configsfilters groups the same way aslist_nodes(exact match).trigger_node_backuptakes no group because Oxidized queues backups by node name or IP only. - Filtering large inventories:
groupandmodelinlist_nodes/get_backup_statsare filtered by Oxidized itself. The group must match exactly (case-sensitive, as shown bylist_nodes), so a misspelt group returns nothing instead of downloading the whole inventory. Built-in model names are case-insensitive (iosand theIOSXEalias are sent asIOS, from a catalog of Oxidized's models); custom models must be spelled exactly. Neither filter ever falls back to downloading the whole inventory. - Search runs in two steps: oxidized-web's
conf_searchfinds matching devices (it reads every configuration server-side, so it can be slow on large installations), then only those configurations are fetched to extract matching lines.max_nodescaps the fetches; nodes that were never backed up (whose placeholder text can match) are skipped without counting. The server-side step usesOXIDIZED_SEARCH_TIMEOUT(default 300 s) instead ofOXIDIZED_TIMEOUT. Patterns run as Ruby regexps on the server and Python regexps locally, line by line, so stick to common syntax. - Backups are asynchronous:
trigger_node_backupmoves the device to the head of the queue. Checkget_nodefor the result. - Errors: oxidized-web answers unknown node names with HTTP 500. When it runs with
RACK_ENV=productionthe reason is hidden, so a 500 on a node route is reported with a hint that it may be an unknown node name.
🐳 Using Docker
A Docker image is available on GitHub Packages for easy deployment.
The image defaults to the HTTP Streamable transport on port 8000 (http://localhost:8000/mcp).
🤝 Contributing
Contributions are welcome. See CONTRIBUTING.md for the dev setup, checks and commit message format, and use the issue templates for bugs and feature requests.
Found a security problem? Please report it privately as described in SECURITY.md.
📜 License
MIT License - see LICENSE for details.
來源:README.md,提交 b36bd7b
工具
0版本歷史
4- v0.2.2最新Nov 7, 2026
- v0.2.1Oct 23, 2026
- v0.2.0Oct 19, 2026
- v0.1.0Sep 27, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分