Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ROUTER_KEYNoPath to SSH private key for key-based authentication.
ROUTER_HOSTNoRouter hostname or IP address (e.g., 192.168.1.1).
ROUTER_PORTNoSSH port (default 22).
ROUTER_USERNoSSH username (e.g., root).
ROUTER_ADAPTERNoAdapter type: openwrt or mock. Defaults to openwrt if ROUTER_HOST is set, else mock.
ROUTER_PASSWORDNoSSH password. Prefer using ROUTER_PASSWORD environment variable over --password for security.
ROUTER_WAN_IFACENoWAN interface name (e.g., eth0.2, pppoe-wan).
ROUTER_ALLOW_EXECNoSet to '1' or 'true' to enable the run_command tool.
ROUTER_ALLOW_WRITENoSet to '1' or 'true' to enable write operations (set_wifi, reboot).

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
router_statusA

Get router identity and health: model, firmware, hostname, uptime, load average and memory.

list_devicesA

List clients known to the router (DHCP leases plus wireless associations): MAC, IP, hostname, signal (dBm) and interface.

list_wifi_networksA

List configured wireless networks (SSIDs) with their id, enabled state, channel, band and encryption. Use the id with set_wifi.

wan_infoA

Get the upstream/WAN connection: up state, protocol, public IP, gateway and uptime.

set_wifiA

Modify an existing wireless network identified by its id (from list_wifi_networks). Any subset of fields may be supplied. Changes are committed and the radios reloaded.

reboot_routerA

Reboot the router. The connection will drop and the router will be unreachable for ~1-2 minutes.

run_commandA

Run an arbitrary shell command on the router and return its output. Powerful and dangerous — only enabled when the operator started the server with exec permission.

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/sudip490/ROUTER-MCP-NPM-PACKAGE'

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