Skip to main content
Glama
jsebgiraldo

OpenWRT SSH MCP Server

by jsebgiraldo

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENWRT_HOSTNoThe IP address or hostname of the OpenWRT router
OPENWRT_USERNoSSH username for the OpenWRT router (typically 'root')
OPENWRT_KEY_FILENoPath to the SSH private key file for authentication (e.g., C:\Users\YOUR_USER\.ssh\openwrt_router)
OPENWRT_PASSWORDNoSSH password for the OpenWRT router

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
openwrt_test_connection

Test SSH connection to the OpenWRT router

openwrt_execute_command

Execute a validated shell command on the OpenWRT router. Commands are validated against a security whitelist. Use this for commands not covered by other specialized tools.

openwrt_get_system_info

Get comprehensive system information including board details, uptime, memory usage, and CPU load

openwrt_restart_interface

Restart a network interface (e.g., wan, lan, wlan0)

openwrt_get_wifi_status

Get WiFi status including connected clients and signal strength

openwrt_list_dhcp_leases

List all DHCP leases (connected devices with IP/MAC addresses)

openwrt_get_firewall_rules

Get current firewall rules (iptables)

openwrt_read_config

Read a UCI configuration file. Allowed configs: network, wireless, dhcp, firewall, system

openwrt_thread_get_state

Get current OpenThread network state (disabled, detached, child, router, leader)

openwrt_thread_create_network

Create a new Thread network with specified parameters. This will initialize a new Thread network, configure it, and start it. Returns network credentials including network key and dataset.

openwrt_thread_get_dataset

Get active Thread dataset (network credentials). Returns dataset in both human-readable and hex format for sharing.

openwrt_thread_get_info

Get comprehensive Thread network information including state, channel, PAN ID, network name, IP addresses, neighbors, and children.

openwrt_thread_enable_commissioner

Enable Thread Commissioner to allow new devices to join the network. Devices can join using the provided passphrase.

openwrt_opkg_update

Update package lists from repositories (opkg update)

openwrt_opkg_install

Install a package using opkg

openwrt_opkg_remove

Remove a package using opkg

openwrt_opkg_list_installed

List all installed packages on the router

openwrt_opkg_info

Get detailed information about a specific package

openwrt_opkg_list_available

List available packages from repositories (limited to 500 packages)

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jsebgiraldo/openwrt_ssh_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server