tplink-easy-smart-switch-mcp
Provides tools for managing TP-Link Easy Smart switches (and Mercury SE106 Pro) via their web UI, including reading switch status, port status, VLAN configuration, trunking, and saving configuration.
Click on "Install 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., "@tplink-easy-smart-switch-mcpshow me the current VLAN configuration"
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.
TP-Link Easy Smart Switch MCP
TypeScript + Bun MCP server for TP-Link and Mercury Easy Smart switches. It works through the switch Web UI and does not depend on SNMP.
Default target: http://192.168.3.10
Tested Models
The current implementation has been tested against these Web UI snapshots and read-only status calls:
TP-Link TL-SE2106 at
192.168.3.10, firmware1.8.1 Build 20251128 Rel.57341Mercury SE106 Pro at
192.168.3.11, firmware1.0.0 Build 20240812 Rel.65021
Other TP-Link or Mercury Easy Smart switches may work if they use the same Web UI pages and CGI endpoints, but they have not been verified yet.
Related MCP server: safe-omada-mcp
Confirmed Device Traits
Management UI is available on HTTP
80Login form posts to
POST /logon.cgiLogin fields are
usernameand encryptedpasswordLogin page loads
/cryp_new.jsKnown Web UI variables include
g_product,g_year, andencryptType
Tools
Read-only tools:
get_switch_status: Return a switch status summaryget_port_status: Return port statusget_vlan_status: Return port VLAN, 802.1Q VLAN, PVID, and MTU VLAN statusget_trunk_status: Return port trunking/LAG status
Configuration CGI tools:
configure_mtu_vlan: Generate or submitmtuVlanSet.cgifromVlanMtuRpm.htmconfigure_port_vlan: Generate or submitpvlanSet.cgifromVlanPortBasicRpm.htmconfigure_8021q_vlan: Generate or submitqvlanSet.cgifromVlan8021QRpm.htmconfigure_vlan_pvid: Generate or submitvlanPvidSet.cgifromVlan8021QPvidRpm.htmconfigure_trunk_group: Generate or submitport_trunk_set.cgi/port_trunk_display.cgifromPortTrunkRpm.htmsave_configuration: Generate or submitPOST savingconfig.cgifromSavingConfigRpm.htm
Configuration tools default to apply: false, which returns a dry-run request preview and submits nothing. Real writes require all of the following:
apply: trueconfirm: "APPLY"Successful login
Web UI rule validation passed
A readable
token/top.g_tid
Install
bun installRun During Development
bun run src/index.tsBuild A Binary
Windows:
bun run build:winCurrent platform:
bun run buildBuild output is written to dist/.
If an MCP client still reports an older server version during initialize, its command probably points to an old executable. Update it to dist/tplink-easy-smart-switch-mcp.exe and restart the client.
Debug MCP
List MCP tools:
bun run debugCall the switch status tool:
bun run debug -- --tool get_switch_status --host 192.168.3.10 --username admin --password your-password
bun run debug -- --tool get_switch_status --host 192.168.3.11Call the port status tool:
bun run debug -- --tool get_port_status --host 192.168.3.10 --username admin --password your-passwordPreview configuration requests without submitting them:
bun run debug -- --tool configure_mtu_vlan --params '{ "enabled": true }'
bun run debug -- --tool configure_port_vlan --params '{ "mode": "set", "vid": 1, "ports": "1,2" }'
bun run debug -- --tool configure_8021q_vlan --params '{ "mode": "set", "vid": 20, "name": "main", "untaggedPorts": "3", "taggedPorts": "5,6" }'
bun run debug -- --tool configure_vlan_pvid --params '{ "pvid": 20, "ports": "3" }'
bun run debug -- --tool configure_trunk_group --params '{ "mode": "set", "group": 1, "ports": "1,2" }'
bun run debug -- --tool save_configuration --params '{}'Page Samples
Read-only development snapshots are stored in:
examples/tplink-192.168.3.10: TP-Link Easy Smart switch at192.168.3.10examples/mercury-192.168.3.11: Mercury SE106 Pro at192.168.3.11
They include VLAN, trunking, configuration backup/restore, save-configuration pages, plus pvlan.js, qvlan.js, and menuList.js. These samples do not contain SessionID values or passwords.
You can also send raw JSON-RPC:
bun run debug -- --raw '{ "jsonrpc": "2.0", "id": 99, "method": "tools/list", "params": {} }'MCP Client Example
{
"mcpServers": {
"tplink-easy-smart-switch": {
"command": "C:\\path\\to\\tplink-easy-smart-switch-mcp.exe",
"env": {
"TPLINK_HOST": "192.168.3.10",
"TPLINK_USERNAME": "admin",
"TPLINK_PASSWORD": "your-password"
}
}
}
}Notes
Page content is parsed with a DOM parser and normalized into title, form, frame, link, table, and text summaries. Status data is mainly extracted from JavaScript variables in pages such as MainRpm.htm, VlanPortBasicRpm.htm, Vlan8021QRpm.htm, Vlan8021QPvidRpm.htm, VlanMtuRpm.htm, and PortTrunkRpm.htm.
Configuration CGI calls use an explicit confirmation flow. Development and debugging default to dry-run. save_configuration is also a write action; it follows the page logic from SavingConfigRpm.htm and uses POST savingconfig.cgi, but it does not submit unless explicitly confirmed.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/qwe7002-ai/tplink-easy-smart-switch-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server