mcp-router
Provides tools for interacting with a Linksys router via its JNAP API, enabling retrieval of router details, listing connected devices, performing read-only JNAP queries, and optionally triggering a router reboot when write access is enabled.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-routerwhat devices are connected to my router?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-router
TypeScript MCP server for Linksys router control with a read-only-first tool surface.
Full operational reference (network path, credentials location, deployment status, open issues):
docs/linksys-router.mdin theBlahBlahBlahrepo.
Features
router_get_details:core/GetDeviceInforouter_list_devices:devicelist/GetDevicesrouter_jnap_read: generic read-only JNAP actions (Get*/Check*only)router_reboot: optional write action gated byROUTER_ENABLE_WRITES=trueandconfirm=true
Related MCP server: openwrt-mcp
Setup (Local)
Copy env file:
cp .env.example .envFill
.env:ROUTER_URL(for examplehttp://192.168.76.1)ROUTER_USERNAME(usuallyadmin)ROUTER_PASSWORDROUTER_TIMEOUT_MS(optional, default10000)ROUTER_ENABLE_WRITES(falseby default)
Confirm the runtime is on the same trusted LAN as the router before calling JNAP. The Linksys device is reachable only from a host connected to the
192.168.76.0/24segment (for example Dragon's USB Ethernet path), not from a generic off-LAN Windows host.Install and build:
pnpm install pnpm buildRun:
pnpm dev
Deployment to Dragon
Option 1: Systemd Service
./deploy-dragon.shThis will:
Clone the repo to
/opt/mcp-routerInstall dependencies with pnpm
Build the TypeScript
Install and start the systemd service
Check logs:
journalctl -u mcp-router -fOption 2: Docker Compose
docker-compose up -dThe service will restart automatically on failure.
Set the ROUTER_PASSWORD environment variable before running:
export ROUTER_PASSWORD="<your-password>"
docker-compose up -dConfiguration
Environment Variables
ROUTER_URL: HTTP URL to the router (e.g.,http://192.168.76.1)ROUTER_USERNAME: JNAP username (default:admin)ROUTER_PASSWORD: JNAP password (required)ROUTER_TIMEOUT_MS: Request timeout in milliseconds (default:10000, min:1000)ROUTER_ENABLE_WRITES: Enable write operations (default:false)
Security Notes
Keep write operations disabled by default
Use
router_jnap_readfor discovery and status checks before adding new mutating toolsStore credentials in
.env(local) or environment variables (deployment)Credentials are sent via Basic Auth over HTTP — ensure the router is on a trusted LAN only
Testing
Run the included test script:
pnpm tsx test-router.tsThis validates connectivity and runs sample read-only operations against the router.
This server cannot be deployed
Maintenance
Related MCP Connectors
Manufacturer-cited router default logins and compliance check, plus MAC/OUI vendor lookup. Free.
Read-only MCP access to a documented IT fleet: state, changes, posture. 15 tools.
Read status-page status, services, incidents and metrics; create, update and publish incidents.
Read monitors, incidents, heartbeats, on-call and status pages; acknowledge or resolve incidents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables automation and management of TP-Link BE3600 routers through browser automation, supporting port forwarding configuration, network status monitoring, and device management without reverse-engineering the router's encryption.1MIT
- AlicenseNot gradedqualityCmaintenanceProvides full administrative control of OpenWRT routers via SSH, with a preview-confirm safety model for mutating operations.13 npmMIT
- AlicenseNot gradedqualityAmaintenanceProvides read-only (with limited address-list management) access to MikroTik RouterOS routers, enabling monitoring of system info, interfaces, DHCP leases, firewall rules, and more via natural language.1MIT
- FlicenseBqualityAmaintenanceEnables AI agents to manage Keenetic routers through the same RCI API used by the router's web interface, working directly over the local network without cloud involvement. It supports reading device statuses and executing configuration changes, with confirm, dry-run, and destructive-action safeguards.23-