Skip to main content
Glama
Clixon MCP Server

Clixon MCP Server

by clicon

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

Related MCP server: network-mcp

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.

Available Tools

3 tools
fetch_configB
Fetch network device configuration via RESTCONF.

Args:
    url: RESTCONF URL, e.g. https://device:8443/restconf/data
    username: HTTP basic auth username (optional).
    password: HTTP basic auth password (optional).
    verify_ssl: Whether to verify SSL certificates (default: False).

Inputs: url (required), username, password, verify_ssl. Returns: result

get_configA
Return the currently cached RESTCONF configuration.

Call fetch_config first to load configuration from a device.

Inputs: no named parameters. Returns: result

get_config_pathA
Extract a specific section from the cached configuration by dot-separated path.

Args:
    path: Dot-separated path into the config, e.g.
          "ietf-interfaces:interfaces" or
          "ietf-interfaces:interfaces.interface"

Inputs: path (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: fetch_config retrieves configuration from a device, get_config accesses the cached configuration, and get_config_path extracts specific sections from the cache. There is no overlap or ambiguity in their functions.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with snake_case (fetch_config, get_config, get_config_path). The verbs 'fetch' and 'get' are semantically related but used distinctly to differentiate between external retrieval and internal access.

    Tool Count3/5

    With only 3 tools, the set feels thin for a network device configuration server, potentially lacking operations like update, delete, or validation. However, it covers basic fetch and query workflows, making it borderline but functional for limited use cases.

    Completeness2/5

    The toolset is severely incomplete for network device configuration management. It only supports fetching and reading configuration, with no tools for creating, updating, deleting, or validating configurations, leaving significant gaps that will hinder agent workflows.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables AI-powered network automation through natural language interactions with Cisco NSO, providing access to device management, configuration retrieval, sync operations, and service orchestration via the RESTCONF API.
      9
      29 PyPI
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides AI assistants with direct access to multi-vendor network devices for tasks like configuration management, health checks, and topology discovery through 35 specialized tools. It enables natural language control over platforms including Cisco, Juniper, and Nokia using SSH, NETCONF, and SNMP protocols.
      12
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to interact with Cisco IOS-XE network devices over SSH using structured tools. Provides read and write capabilities for network management with built-in validation and security.
      -
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to manage network devices via gNMI protocol, including querying capabilities, reading/modifying configurations, and subscribing to telemetry data through natural language.
      -