Clixon MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add clixon-mcp -- uv run server.py --restconf-url https://localhost:8443/restconf/
README.md

Fetch and query network device configuration via RESTCONF

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.

This project uses UV (https://github.com/astral-sh/uv) for package control.

Setup

uv sync

Run

uv run server.py --restconf-url https://localhost:8443/restconf/

CLI Arguments

Argument Default Description
--restconf-url https://localhost:8443/restconf/ RESTCONF URL to fetch config from
--restconf-username (empty) HTTP basic auth username for RESTCONF (optional)
--restconf-password (empty) HTTP basic auth password for RESTCONF (optional)
--restconf-verify-ssl False Verify SSL certificates when fetching RESTCONF config

Tools

Tool Description
fetch_config Fetch device configuration via RESTCONF (supports basic auth and TLS)
write_config Write cached configuration back to the device via RESTCONF
get_config Return the currently cached configuration
get_config_path Extract a specific section by dot-separated path (e.g. ietf-interfaces:interfaces.interface)
get_config_url Return the RESTCONF URL used to fetch the configuration
set_config_url Set the RESTCONF URL for fetching configuration
clear_config_cache Clear the cached configuration
list_tools List available tools
help Return a help message describing the server and available tools

Resources

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

Prompts

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

Connect to OpenCode

Add to your opencode.json (~/.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 and summarize it.
  • 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.

Tools (9)

fetch_configFetch device configuration via RESTCONF (supports basic auth and TLS)
write_configWrite cached configuration back to the device via RESTCONF
get_configReturn the currently cached configuration
get_config_pathExtract a specific section by dot-separated path
get_config_urlReturn the RESTCONF URL used to fetch the configuration
set_config_urlSet the RESTCONF URL for fetching configuration
clear_config_cacheClear the cached configuration
list_toolsList available tools
helpReturn a help message describing the server and available tools

Environment Variables

RESTCONF_URLRESTCONF URL to fetch config from
RESTCONF_USERNAMEHTTP basic auth username for RESTCONF
RESTCONF_PASSWORDHTTP basic auth password for RESTCONF
RESTCONF_VERIFY_SSLVerify SSL certificates when fetching RESTCONF config

Configuration

claude_desktop_config.json
{
  "mcpServers": {
    "clixon": {
      "command": "uv",
      "args": ["run", "server.py", "--restconf-url", "https://localhost:8443/restconf/"]
    }
  }
}

Try it

Fetch the config and summarize it.
What interfaces are configured?
Show me the routing configuration
Are there any interfaces that are down?

Frequently Asked Questions

What are the key features of Clixon MCP Server?

Fetches network device configuration via RESTCONF. Supports basic authentication and TLS verification. Caches configuration in memory for efficient querying. Allows extraction of specific configuration sections via dot-separated paths. Enables writing cached configuration back to the device.

What can I use Clixon MCP Server for?

Automated network configuration auditing and summarization. Troubleshooting interface status on network devices. Quickly retrieving specific routing table sections for analysis. Managing device configurations through AI-assisted workflows.

How do I install Clixon MCP Server?

Install Clixon MCP Server by running: uv sync && uv run server.py --restconf-url https://localhost:8443/restconf/

What MCP clients work with Clixon MCP Server?

Clixon MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Clixon MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare