MCP Hub
Back to servers

Clixon MCP Server

Enables AI agents to fetch and query network device configurations from Clixon-based or other RESTCONF-capable devices. It provides tools to extract specific configuration sections, such as interfaces and routing, through the Model Context Protocol.

Updated
Feb 20, 2026

Clixon MCP Server

A Model Context Protocol server for fetching and querying network device configuration via RESTCONF. Connects to Clixon-based (or any RESTCONF-capable) devices and makes the configuration available to AI coding agents like OpenCode.

Setup

uv sync

Run

uv run server.py

Tools

ToolDescription
fetch_configFetch device configuration via RESTCONF (supports basic auth and TLS)
get_configReturn the currently cached configuration
get_config_pathExtract a specific section by dot-separated path (e.g. ietf-interfaces:interfaces.interface)

Resources

  • config://server-info — Server metadata (name, version, available tools)

Prompts

  • analyze_config — Fetch and analyze device configuration (interfaces, routing, etc.)

Run the server

uv run server.py

Connect to OpenCode

Add to your opencode.json (project root or ~/.config/opencode/opencode.json):

{
    "$schema": "https://opencode.ai/config.json",
    "mcp": {
      "clixon": {
        "type": "remote",
        "url": "http://localhost:8000/mcp",
        "enabled": true
      }
    }
}

Example Usage in OpenCode

Once connected, ask questions like:

  • Fetch the config from https://mydevice:8443/restconf/data with user admin and password admin
  • What interfaces are configured?
  • Show me the routing configuration
  • Are there any interfaces that are down?

The AI agent will call fetch_config to pull the RESTCONF data, cache it in memory, and then use get_config / get_config_path to answer follow-up questions about the device configuration.

Reviews

No reviews yet

Sign in to write a review