Skip to main content
Glama
jsebgiraldo

OpenWRT SSH MCP Server

by jsebgiraldo

openwrt_get_wifi_status

Retrieve WiFi status details including connected clients and signal strength from OpenWRT routers via SSH for network monitoring and management.

Instructions

Get WiFi status including connected clients and signal strength

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual implementation of the get_wifi_status method that executes 'ubus call network.wireless status' command on the OpenWRT router and returns the parsed WiFi status information including connected clients and signal strength.
    async def get_wifi_status() -> dict[str, Any]: """ Get WiFi status and connected clients. Returns: dict: WiFi status information """ command = "ubus call network.wireless status" result = await OpenWRTTools.execute_command(command) if result["success"]: try: wifi_data = json.loads(result["output"]) return { "success": True, "wifi_status": wifi_data, } except json.JSONDecodeError: return { "success": True, "wifi_status": result["output"], } else: return { "success": False, "error": result["error"], }
  • Tool schema definition that registers openwrt_get_wifi_status with its name, description, and input schema (no parameters required).
    Tool( name="openwrt_get_wifi_status", description="Get WiFi status including connected clients and signal strength", inputSchema={ "type": "object", "properties": {}, "required": [], }, ),
  • Router registration that maps the tool name 'openwrt_get_wifi_status' to its handler method OpenWRTTools.get_wifi_status().
    elif name == "openwrt_get_wifi_status": result = await OpenWRTTools.get_wifi_status()

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