iptime-mcp
An MCP server for safely inspecting and managing ipTIME routers without repeated web-admin use.
Detect/authenticate/logout router sessions and read product/system status.
Discover model/firmware-supported operations and list the fixed read/write catalog.
Run read-only operations across networking, Wi-Fi, DHCP, NAT, firewall, VPN, DDNS, USB/NAS, logs, and Wake-on-LAN.
Back up router configuration to a new local
.configfile without overwriting.Create expiring, immutable plans for router changes, firmware upgrades, and config restores.
Apply/cancel pending plans and list plan state; schema requires
plan_idplus confirmation text for apply.Use single- or multi-router profiles with credential redaction, safety gating, and capability checks.
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., "@iptime-mcp List the devices currently 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.
English | 한국어
iptime-mcp
A safety-gated Model Context Protocol (MCP) server for operating ipTIME routers without repeatedly opening the web admin panel.
It can inspect router state, discover which catalogued operations a specific model and firmware support, and perform confirmed changes across networking, Wi-Fi, NAT, firewall, VPN, DDNS, USB/NAS, system, and automation features.
This is an unofficial community project and is not affiliated with EFM Networks or ipTIME. Router APIs are firmware-dependent and are not published as a stable public contract.
Highlights
13 focused MCP tools instead of hundreds of top-level tools
334 catalogued router operations: 171 reads and 163 writes
Runtime capability checks on iUX3 through the router's
api/hasmethodDetection for iUX3, Mobile iUX, and classic CGI interfaces
Read-only operations can run directly
Every router change uses a short-lived, reviewable plan without confirmation tokens
Configuration backup, restore planning, and firmware upgrade planning
Single-router and multi-router profiles
Credential and session-value redaction
Public plain HTTP blocked by default
The catalog covers administration, firmware, backup and restore, WAN/LAN/DHCP/DNS, routing and switching, wireless and EasyMesh, NAT and port forwarding, firewall, QoS, VPN, DDNS, USB/NAS services, routines, history, logs, host scanning, and Wake-on-LAN.
Related MCP server: SmartThings Rules Copilot MCP Server
Compatibility
Interface | Support |
iUX3 | Uses |
Mobile iUX | Exposes only explicitly mapped read operations |
Classic CGI | Exposes only explicitly mapped read operations |
The fixed operation catalog is based on methods observed in an iUX3 application shipped with firmware 15.36.6. A method appearing in the catalog does not mean every router supports it. Always use iptime_capabilities for the target router before choosing an operation.
Firmware 16.00.0 introduced ipTIME ID, EasyMesh client connection pinning, and paginated system logs (official release notes). These additions have not been validated against this catalog. This server connects directly to the configured router; it does not authenticate through ipTIME ID or provide its cloud relay. Do not infer support for new features from a firmware version or from a successful status query. For logs, inspect the actual response and firmware-specific pagination before treating a result as complete. Only verified methods are exposed, and unknown write capabilities remain blocked.
For firmware 16.00.4, the official A2004SE UI bundle was inspected: the ACS CA certificate uses the existing cwmp/set method with acs.cacert containing PEM text (up to 8192 bytes; "" removes the certificate). The UI sends the complete active/acs/cpe configuration. Certificate changes therefore require all these fields, including the actual ACS/CPE credentials; partial configurations and [redacted] placeholders are rejected. cwmp.get hides passwords and cannot be copied back as-is. If you cannot safely supply the complete intended configuration, stop without applying the change. The plan remains critical-risk and reads back through cwmp/get. HTTPS ACS servers with a private CA require the corresponding certificate; do not disable verification. This is interface-contract verification, not a live-router compatibility certification for every model. ipTIME ID/passkey login and new EasyMesh controls remain unsupported until separately verified.
Shared configuration methods accept no configuration parameters through iptime_read; those parameters can perform writes. Use the corresponding write operation through a change plan instead. The observed ddns.config selector "iptime" remains allowed for reads.
Legacy support is intentionally limited to known-safe mappings for system information, DHCP leases and configuration, port forwarding, and Wake-on-LAN. Legacy responses may be returned as raw text. Unknown legacy writes are rejected.
Safety model
Router changes can interrupt internet access or make the admin interface unreachable. iptime-mcp therefore separates reading from writing:
iptime_plan_changeor a file-specific planning tool creates an immutable plan without changing the router.The plan reports the operation, parameters, current state when available, risk, and expiry.
iptime_apply_changeapplies that exact plan using only itsplan_id; users never need to copy anAPPLY <UUID>token.
A specific request for the same change is sufficient authorization. Clients should ask once more in ordinary language only when a critical-risk plan, such as firmware, restore, reset, credential, or storage-format work, was not already explicitly authorized. MCP clients may still show their normal destructive-tool approval prompt.
Plans expire after 10 minutes, are single-use, include an integrity digest, and are serialized per router. When a write response is lost, the server attempts a readback and does not retry the write automatically. Plans are held in memory and disappear when the MCP process restarts.
Requirements
Node.js 22 or later
Network access to the router admin endpoint
An ipTIME administrator username and password
An MCP client with stdio server support
Use a LAN address, a VPN address, or a trusted HTTPS endpoint whenever possible.
Install from npm
Use npx -y iptime-mcp as the stdio command in an MCP client and set IPTIME_ROUTER_URL, IPTIME_ROUTER_USERNAME, and IPTIME_ROUTER_PASSWORD in its private environment configuration. Keep the router URL on a trusted LAN or VPN. The examples below show the equivalent source-install setup for clients that need a local script path.
Install from source
git clone https://github.com/mikusnuz/iptime-mcp.git
cd iptime-mcp
npm ci
npm run buildThe executable entry point is dist/server.js.
For clients that support an environment file or configurable working directory, create a local .env first:
cp .env.example .envFill in the router URL, username, and password. .env is ignored by Git and must remain local.
MCP client setup
Use a user-level configuration whenever possible because router credentials should not be committed to a project. Replace /absolute/path/to/iptime-mcp in every example. On Windows, forward-slash paths such as C:/Users/name/iptime-mcp/dist/server.js work in JSON. If a desktop client cannot find node, use the absolute path reported by which node on macOS/Linux or where node on Windows.
Client | User-level configuration |
Codex / ChatGPT desktop | Settings → MCP servers or |
Claude Desktop | Settings → Developer → Edit Config |
Claude Code |
|
Cursor |
|
VS Code agent chat | MCP: Open User Configuration |
GitHub Copilot CLI |
|
Gemini CLI |
|
Codex / ChatGPT desktop
Add a stdio server in Settings → MCP servers, or add the following to ~/.codex/config.toml. Replace the path and credentials, save, and restart the MCP server.
[mcp_servers.iptime]
command = "node"
args = ["/absolute/path/to/iptime-mcp/dist/server.js"]
cwd = "/absolute/path/to/iptime-mcp"
default_tools_approval_mode = "writes"
[mcp_servers.iptime.env]
IPTIME_ROUTER_ID = "home"
IPTIME_ROUTER_URL = "http://192.168.0.1"
IPTIME_ROUTER_USERNAME = "admin"
IPTIME_ROUTER_PASSWORD = "your-router-password"Codex, its IDE extension, and the ChatGPT desktop app share the MCP configuration on the same Codex host. See the official MCP configuration guide for current client options.
If you prefer the local .env file, keep cwd and omit the [mcp_servers.iptime.env] table.
Claude Desktop
Open Settings → Developer → Edit Config, merge the following iptime entry into claude_desktop_config.json, save, and fully restart Claude Desktop. Keep any other existing servers in the file.
{
"mcpServers": {
"iptime": {
"command": "node",
"args": ["/absolute/path/to/iptime-mcp/dist/server.js"],
"env": {
"IPTIME_ROUTER_ID": "home",
"IPTIME_ROUTER_URL": "http://192.168.0.1",
"IPTIME_ROUTER_USERNAME": "admin",
"IPTIME_ROUTER_PASSWORD": "your-router-password"
}
}
}
}Check Connectors in the chat composer after restart. See the official Claude Desktop local MCP guide.
Claude Code
Register the server for all projects with the Claude Code CLI:
claude mcp add \
--scope user \
--env IPTIME_ROUTER_ID=home \
--env IPTIME_ROUTER_URL=http://192.168.0.1 \
--env IPTIME_ROUTER_USERNAME=admin \
--env IPTIME_ROUTER_PASSWORD=your-router-password \
--transport stdio iptime \
-- node /absolute/path/to/iptime-mcp/dist/server.js
claude mcp get iptimeThe final --transport option intentionally comes after the environment values so the variadic --env parser does not consume the server name. The user-scoped configuration is stored in ~/.claude.json. See the official Claude Code MCP guide.
Cursor
Create or merge ~/.cursor/mcp.json. This example reads the ignored local .env created above:
{
"mcpServers": {
"iptime": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/iptime-mcp/dist/server.js"],
"cwd": "/absolute/path/to/iptime-mcp",
"envFile": "/absolute/path/to/iptime-mcp/.env"
}
}
}Restart Cursor, then check Settings → Tools & MCP. Project-scoped .cursor/mcp.json is also supported, but do not put router credentials in a file that may be committed. See the official Cursor MCP guide.
VS Code agent chat / GitHub Copilot Chat
Run MCP: Open User Configuration from the Command Palette and merge this configuration. VS Code uses the top-level key servers, not mcpServers.
{
"servers": {
"iptime": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/iptime-mcp/dist/server.js"],
"cwd": "/absolute/path/to/iptime-mcp",
"envFile": "/absolute/path/to/iptime-mcp/.env"
}
}
}Start or inspect it with MCP: List Servers and accept the server trust prompt on first use. .vscode/mcp.json is available for workspace-scoped setup, but the user configuration is safer for router credentials. See the official VS Code MCP setup and configuration reference.
GitHub Copilot CLI
GitHub Copilot CLI does not read VS Code's .vscode/mcp.json. Create or merge ~/.copilot/mcp-config.json instead:
{
"mcpServers": {
"iptime": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/iptime-mcp/dist/server.js"],
"cwd": "/absolute/path/to/iptime-mcp",
"tools": ["*"]
}
}
}The configured cwd lets iptime-mcp load the local .env. Verify the connection with copilot mcp list. Project-level .mcp.json and .github/mcp.json are also supported, but never commit router credentials. See the official Copilot CLI MCP guide.
Gemini CLI
Create or merge ~/.gemini/settings.json:
{
"mcpServers": {
"iptime": {
"command": "node",
"args": ["/absolute/path/to/iptime-mcp/dist/server.js"],
"cwd": "/absolute/path/to/iptime-mcp",
"trust": false
}
}
}The configured cwd lets the server load .env. Keep trust false so Gemini continues to ask before tool calls, then run gemini mcp list. If the current folder is not trusted, run gemini trust. The CLI command defaults to project scope; use --scope user when registering manually. See the official Gemini CLI MCP guide.
Other stdio MCP clients
Use node as the command, /absolute/path/to/iptime-mcp/dist/server.js as its only argument, and pass the IPTIME_* variables from .env. Do not assume every client uses the same JSON wrapper: for example, VS Code uses servers, while Claude Desktop, Cursor, Copilot CLI, and Gemini CLI use mcpServers.
Environment variables
Single router
Variable | Required | Default | Description |
| Yes | — | Router base URL using |
| No |
| Profile name exposed as |
| For login | — | Router administrator username |
| For login | — | Router administrator password |
| No |
| Allows plain HTTP when the hostname resolves to a public address |
| No | — | SHA-256 certificate fingerprint, with or without colons, checked in addition to normal TLS validation |
| No |
| Request timeout, clamped to 1,000–60,000 ms |
Credentials must not be embedded in IPTIME_ROUTER_URL.
The server also loads a .env file from its working directory. Copy .env.example to .env only for local use; .env and related secret files are ignored by Git.
Multiple routers
Set IPTIME_ROUTERS to a JSON array. Use username_env and password_env so the JSON contains environment-variable names rather than credentials:
IPTIME_ROUTERS='[{"id":"home","url":"http://192.168.0.1","username_env":"HOME_ROUTER_USERNAME","password_env":"HOME_ROUTER_PASSWORD"},{"id":"office","url":"https://router.office.example","username_env":"OFFICE_ROUTER_USERNAME","password_env":"OFFICE_ROUTER_PASSWORD","timeout_ms":20000}]'
HOME_ROUTER_USERNAME=admin
HOME_ROUTER_PASSWORD=your-home-password
OFFICE_ROUTER_USERNAME=admin
OFFICE_ROUTER_PASSWORD=your-office-passwordWhen one router is configured, router_id may be omitted. With multiple routers, pass the target router_id to router tools.
MCP tools
Tool | Purpose |
| Detect the interface, authenticate when credentials exist, and read product/system status |
| Log in with credentials from the MCP environment; optionally submit a CAPTCHA answer |
| End the current router admin session |
| Check catalogued operations against the target model and firmware |
| List the local, auditable operation catalog by domain or mode |
| Run one read-only catalog operation |
| Save a new |
| Create a generic router-change plan without applying it |
| Hash a local |
| Hash a local |
| Apply one pending plan by ID; no confirmation token required |
| Cancel a pending plan |
| List pending and completed in-memory plans |
MCP resources
URI | Contents |
| Configured router profiles with credentials omitted |
| Full operation catalog, domains, modes, risks, and parameter hints |
Recommended workflow
Call
iptime_statusto detect the router and establish a session.Call
iptime_capabilities, optionally filtered by a domain such aswireless,network,vpn, orusb.Use
iptime_list_operationsto find the exact operation and parameter hint.Run reads with
iptime_read.For a change, create a plan and show its risk, parameters, previous state, and expiry to the user.
If the plan matches the user's specific request, apply it without asking them to repeat a token or plan ID. Ask once in natural language only for a critical-risk change that was not already explicitly authorized.
If the outcome is reported as unknown, inspect the returned verification state before doing anything else.
Useful read operations include:
product.infoandsystem.infonetwork.infoandnetwork.interface.lan.stationsdhcpd.lease.showanddhcpd.reservedaddr.showwireless.client.showandwireless.channel.listportforward.getandupnp.relayfirewall.getwg.client.show,wg.peer.show, andvpncli.status.listddns.configandddns.status.getusb.show,usb.mount.list, andnas.user.showsyslog.showandwol.show
Some methods require a scalar, array, or object rather than an empty object. The catalog's paramsHint and defaultParams fields describe known conventions. For example, Wi-Fi channel listing needs a band such as "2g" or "5g", and DDNS status needs the configured hostname.
Backup, restore, and firmware
iptime_backup_config:
requires a destination ending in
.configcreates parent directories when necessary
refuses to overwrite an existing file
writes with owner-only permissions (
0600)rejects empty backups and files larger than 32 MiB
Configuration backups can contain private network settings and secrets. *.config is ignored by Git and must never be committed.
Firmware and restore plans record the file size and SHA-256 hash, then verify the file again immediately before upload. Firmware images must end in .bin; configuration backups must end in .config. A firmware image is not validated for router-model compatibility, so obtain the correct image for the exact model and review the critical-risk plan carefully.
Network security
Public-address plain HTTP is rejected unless
IPTIME_ALLOW_INSECURE_REMOTE_HTTP=true.Enabling that override can expose the administrator password and session cookie. Use it only through a trusted private tunnel when HTTPS is impossible.
Redirects and cross-origin endpoint construction are blocked.
Responses are capped at 8 MiB and requests have a bounded timeout.
Only the ipTIME session cookie is retained.
Passwords, tokens, session values, private keys, PSKs, and similar fields are recursively redacted from MCP output.
An optional TLS fingerprint adds pinning after normal certificate validation; it does not make an untrusted self-signed certificate valid.
Treat MCP client configuration files as secrets because they may contain the router password.
CAPTCHA and session behavior
If the router requests a CAPTCHA, iptime_login returns a CAPTCHA_REQUIRED error with available challenge information. Open the router admin page if needed, then retry iptime_login with captcha_code.
Expired sessions are automatically renewed once for read operations. Writes are never automatically retried after an authentication or network ambiguity.
Development
npm ci
npm run lint
npm test
npm run buildFor development mode:
npm run devThe test suite uses loopback mock routers and does not require a physical device. Do not run write tests against a production router.
Files for AI agents
llms.txtprovides a compact machine-readable project and tool summary.AGENTS.mdcontains repository contribution and safety rules for coding agents.templates/AGENTS.mdcan be copied into a project that should use this MCP server.templates/CLAUDE.mdprovides equivalent usage guidance for Claude Code projects.
These files describe the actual tool workflow and safety constraints; they do not contain credentials or local router details.
License
MIT © 2026 mikusnuz
Available Tools
13 toolsiptime_apply_changeADestructive
Apply exactly one pending plan. No confirmation token or repeated plan id is required.
Inputs: plan_id (required).
iptime_backup_configB
Download the current router configuration to a new local .config file. Existing files are never overwritten.
Inputs: output_path (required), router_id.
iptime_cancel_changeB
Cancel a pending change plan.
Inputs: plan_id (required).
iptime_capabilitiesARead-onlyIdempotent
Discover which catalogued operations this model and firmware actually expose.
Inputs: domain, refresh, router_id.
iptime_list_operationsARead-onlyIdempotent
List the fixed, auditable operation catalog. This does not contact the router.
Inputs: mode, domain.
iptime_list_plansBRead-onlyIdempotent
List plans and their current state.
Inputs: router_id.
iptime_loginA
Authenticate using credentials from the MCP environment. Credentials are never accepted as tool arguments.
Inputs: router_id, captcha_code.
iptime_logoutA
End the router admin session.
Inputs: router_id.
iptime_plan_changeA
Create an expiring immutable plan for a router change. No setting is changed by this tool.
Inputs: operation (required), params, router_id.
iptime_plan_config_restoreB
Hash a local ipTIME configuration backup and create a critical-risk restore plan.
Inputs: file_path (required), router_id.
iptime_plan_firmware_upgradeA
Hash a local firmware file and create a critical-risk upgrade plan. No upload occurs yet.
Inputs: file_path (required), router_id.
iptime_readARead-onlyIdempotent
Run a read-only operation from iptime_list_operations.
Inputs: operation (required), params, router_id.
iptime_statusARead-onlyIdempotent
Detect the router interface, authenticate if configured, and read product/system status.
Inputs: router_id.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools are clearly separated by lifecycle stage: plan, apply, cancel, list, and read-only discovery. Minor overlap exists between iptime_plan_change and the specialized firmware/config plan tools, and between iptime_read, iptime_status, iptime_capabilities, and iptime_list_operations, but descriptions make the boundaries understandable.
All tool names use a consistent iptime_ prefix and snake_case, which makes the set predictable. Most follow verb_noun patterns, with minor deviations such as iptime_status, iptime_login, iptime_logout, iptime_capabilities, and iptime_read.
The server has 13 tools, which is well within a focused and manageable range. Each tool appears to earn its place by covering a distinct part of the safe planning, authentication, discovery, and read-only operation lifecycle.
The surface covers the important router-management lifecycle: discovery, authentication, read operations, backup, planning, applying, cancelling, and listing plans, including critical firmware and restore flows. Minor gaps may exist around explicit plan inspection or firmware upload visibility, but core workflows appear covered.
Maintenance
Related MCP Connectors
Single-connection MCP gateway discovering and executing 490+ verified MCP & A2A tools.
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Open-source MCP gateway with per-agent tool permissions, call approvals and tool-change review.
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceTurns a MikroTik router into 310 MCP tools for AI-driven configuration over SSH, covering firewall, routing, VPN, and more.2,053 npm29MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying and managing SmartThings locations, devices, and rules through MCP tools, with security and confirmation safeguards.MIT
- AlicenseBqualityBmaintenanceEnables AI assistants and terminal users to inspect and administer TP-Link routers through typed MCP tools, including live LTE signal and cell/band control, connected clients and DHCP reservations, Wi-Fi and LED settings, diagnostics, SMS/USSD, and guarded disruptive actions.39MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI copilots and autonomous agents to inspect, diagnose, and safely manage TP-Link 4G/LTE gateways and broadband routers through typed MCP tools for status, signal, clients, Wi-Fi, DNS, SMS/USSD, and guarded mutations. It provides session leasing and confirmation safeguards to avoid locking out admins or disconnecting active sessions.MIT