Back to Home
dogkeeper886 icon

wpa-mcp

by dogkeeper886

Overview

An MCP server that enables AI agents to control WiFi connections on Linux systems via wpa_supplicant.

Installation

Run Command
WIFI_INTERFACE=wlan0 npm start

Environment Variables

  • PORT
  • HOST
  • WIFI_INTERFACE
  • WPA_CONFIG_PATH
  • WPA_DEBUG_LEVEL
  • WPA_MCP_SCRIPTS_DIR

Security Notes

The `browser_run_script` tool, which executes Playwright automation scripts, uses `import(scriptUrl)` where `scriptUrl` is constructed from user-provided `script_name` without robust path traversal validation. This poses a critical arbitrary code execution vulnerability if an attacker can craft the `script_name` parameter to point to a malicious JavaScript file on the server. Additionally, Playwright is launched with `--no-sandbox` which disables important security isolation mechanisms, increasing the risk when interacting with untrusted web content. Many core functionalities (e.g., `wpa_cli`, `dhclient`, `ip`, `pkill`) are executed with `sudo` privileges, making the application a high-privilege target. Any successful command injection would lead to system-level compromise. While some input quoting is present, the extensive use of `execAsync` and `spawn` with `sudo` presents a large attack surface. The server listens on `0.0.0.0` by default, exposing its API to the network, which requires careful firewall configuration.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens200
Stars0
Forks0
Last Update2026-01-16

Tags

WiFi controlNetwork managementLinuxAI agentMCP