keenetic-mcp
VPN routing, separate networks and per-device rules on a Keenetic or Netcraze router,
set up in one sentence to Claude, Codex or Cursor. Checked on the router, and undone by a reboot
until you say it is right.
Install ·
What to ask ·
Safety ·
Tools ·
Supported routers ·
FAQ
Sending two devices through a VPN on a Keenetic means a connection policy, the right interfaces
permitted in it, and every device assigned to it by hand. A separate network for smart home devices
means a VLAN on every switch port, a bridge, addressing, DHCP, NAT, Wi-Fi and isolation, and missing
any one of them gives you a network that half works. keenetic-mcp gives your AI agent the router's
own API and the knowledge of where it bites, so you describe the result and the agent builds it.
A composed session, not a recording: the tool calls, their arguments and the shape of every answer are the server's own, the home network is made up. Source.
|
One sentence, not twelve pages
VPN for some devices and not others, a guest or smart home network the web interface actually lists,
a device on a schedule. The agent finds the policies, devices and free addresses itself.
|
Nothing breaks for good
The built-in tools take a backup first and read every change back from the router before reporting it,
and nothing is saved until you say so. If something is off, a reboot puts everything back.
|
Nothing on the router
It runs on your computer and talks to the router's own API over your LAN. No Entware, no USB drive, no
firmware modification, no cloud. The password stays in your system keychain.
|
Install
Claude Code
/plugin marketplace add salatmaster/keenetic-mcp
/plugin install keenetic@keenetic
npx -y keenetic-mcp init
Codex
codex plugin marketplace add salatmaster/keenetic-mcp
codex plugin add keenetic@keenetic
npx -y keenetic-mcp init
Cursor, Claude Desktop and any other MCP client
{
"mcpServers": {
"keenetic": { "command": "npx", "args": ["-y", "keenetic-mcp"] }
}
}
then run npx -y keenetic-mcp init once.
The wizard finds the router from your default gateway, checks that it really is a Keenetic or Netcraze,
tries the password against it and puts the password in the operating system keychain. The plugins also
bring four skills that teach the agent how the router really behaves. In a container, set
KEENETIC_HOST, KEENETIC_USER and KEENETIC_PASSWORD instead.
Several routers. Home, your parents' and the office can all sit at 192.168.1.1 with the login
admin. Give each one a name with npx -y keenetic-mcp init --profile parents, and choose which one a
session talks to with KEENETIC_PROFILE. For one Claude Code project, that is a line in its
.claude/settings.local.json:
{ "env": { "KEENETIC_PROFILE": "parents" } }
Without a profile the server uses the router init set up without one. Other clients can pass
--profile parents in the server's args, or set KEENETIC_PROFILE in its env.
What to ask
Routing
- Put the TV and my work laptop on the WireGuard VPN, everything else stays direct.
- Which devices go through the VPN right now?
- Move the phone to the VPN as well.
Separate networks