omada-controller-mcp
Provides integration with TP-Link Omada SDN controllers, enabling MCP agents to search, inspect, and call any of the controller's live OpenAPI operations, plus convenience tools for listing sites and devices and refreshing the operation catalog.
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., "@omada-controller-mcp list all devices across all sites"
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.
omada-controller-mcp
MCP server for a TP-Link Omada SDN controller, so Claude Code and other MCP-aware agents can query and manage it directly. Includes a typed Python SDK generated from the controller's own live OpenAPI spec, plus a hand-written auth shim for Omada's non-standard client-credentials flow.
Architecture
flowchart LR
Agent(["đ¤ Claude Code<br/>or any MCP client"])
subgraph MCP["đĻ omada-controller-mcp"]
direction TB
Server["⥠FastMCP Server<br/>7 meta-tools"]
Catalog["đ Operation Catalog<br/>search, schema, dispatch"]
Auth["đ OmadaSession<br/>client-credentials + cache"]
Server --> Catalog
Server --> Auth
end
Controller[("đ Omada SDN Controller<br/>your-controller.local:8043")]
Agent == "MCP over HTTP/stdio<br/>+ bearer token" ==> Server
Catalog -. "GET /v3/api-docs/00 All<br/>(live spec, startup + refresh)" .-> Controller
Auth == "Authorization: AccessToken=...<br/>on every call" ==> ControllerThe Omada API has 2000+ operations, and the count changes across firmware versions. Rather than one MCP tool per operation, a small fixed set of meta-tools searches, inspects, and dispatches against a catalog built from the controller's own live spec:
sequenceDiagram
autonumber
actor Agent as đ¤ MCP Agent
participant Srv as ⥠FastMCP Server
participant Cat as đ Catalog
participant Ctl as đ Omada Controller
note over Agent,Cat: 1 . discover
Agent->>Srv: search_operations("reboot")
Srv->>Cat: keyword match
Cat-->>Srv: rebootDevice, rebootClient, etc.
Srv-->>Agent: operation_id candidates
note over Agent,Cat: 2 . inspect (on demand)
Agent->>Srv: get_operation_schema("rebootDevice")
Srv->>Cat: lookup + resolved $ref schema
Cat-->>Srv: parameters + body schema
Srv-->>Agent: schema
note over Agent,Ctl: 3 . call
Agent->>Srv: call_operation("rebootDevice", path_params, body)
Srv->>Ctl: POST /openapi/v1/{omadacId}/.../reboot
Ctl-->>Srv: {errorCode: 0, result}
Srv-->>Agent: resultOnly search_operations / get_operation_schema results ever enter the agent's context, never all 2000+ schemas at once. Catalog tracks each controller's real API version automatically, no per-endpoint code to fall out of sync.
Related MCP server: Omada MCP Server
Quickstart
Prebuilt image on Docker Hub, no clone required:
docker run -d -p 8000:8000 \
-e OMADA_BASE_URL=https://your-controller.local:8043 \
-e OMADA_CLIENT_ID=... \
-e OMADA_CLIENT_SECRET=... \
-e OMADA_MCP_AUTH_TOKEN=$(openssl rand -hex 32) \
samhaq/omada-controller-mcp:latestThen connect from Claude Code:
claude mcp add --transport http omada http://localhost:8000/mcp \
--header "Authorization: Bearer $OMADA_MCP_AUTH_TOKEN"That's it, running. OMADA_BASE_URL defaults to https://your-controller.local:8043 if unset, OMADA_VERIFY_SSL to false (self-signed LAN cert).
git clone https://github.com/samhaque/omada-controller-mcp && cd omada-controller-mcp
cp .env.example .env # fill in OMADA_CLIENT_ID / OMADA_CLIENT_SECRET / OMADA_MCP_AUTH_TOKEN
docker compose up -d # pulls the same published image by defaultOr run it directly with uv, no Docker at all:
uv sync
cp .env.example .env
export $(grep -v '^#' .env | xargs)
uv run omada-mcpTransport defaults to stdio for the uv run path; set FASTMCP_TRANSPORT=http to match the Docker examples above. To build the image from source instead of pulling it, see docker-compose.yml's comments.
Tools
Tool | Purpose |
đ | Find operations by keyword |
đ | Fetch one operation's parameters/body schema, on demand |
đ | Call any cataloged operation |
đ | Re-fetch the live spec after a firmware upgrade, no restart needed |
âšī¸ | Which spec is loaded: live vs. bundled, version, operation count |
đĸ | Convenience: sites this controller manages |
đĄ | Convenience: all APs, switches, gateways across every site |
Layout
Path | What's there |
| MCP server + operation catalog (spec loading, search, dispatch) |
|
|
| Generated SDK, for direct Python use outside MCP. Don't hand-edit |
| Bundled spec, fallback only |
| Regenerate the SDK, build the Docker deployment venv |
| Trust model, zero-trust controls, credential handling |
Security
Bearer token, rate limiting, DNS-rebinding protection, and audit logging are built in on the HTTP transport. See docs/SECURITY.md for the full trust model and how to add TLS (reverse proxy or an overlay network like Tailscale). Credentials: env vars, *_FILE (Docker/K8s secrets), or ~/.omada.env, never hardcoded.
Using the SDK directly (no MCP)
from omada_auth.auth import OmadaSession
from omada_client.api.ap import get_radios_config
session = OmadaSession(base_url="https://your-controller.local:8043", verify_ssl=False)
with session.client() as client:
resp = get_radios_config.sync_detailed(
omadac_id=session.omadac_id, site_id="...", ap_mac="...", client=client
)Regenerating the SDK
curl -sk "https://your-controller.local:8043/v3/api-docs/00%20All" -o openapi/controller-spec.json
./scripts/regenerate.shThe MCP server doesn't need this, it re-derives its catalog from the live spec every startup. Regeneration is only for the typed omada_client SDK.
Tests
uv run python tests/test_auth.py
uv run python tests/test_catalog.pyAvailable Tools
7 toolscall_operationCall OperationA
Call any cataloged Omada API operation by its operation_id.
omadacId is filled in automatically. Other path parameters (e.g. siteId, apMac) go in path_params; query-string parameters in query_params; a JSON request body (for POST/PUT operations that take one) in body. Use get_operation_schema first if unsure what an operation needs.
Inputs: operation_id (required), body, path_params, query_params.
get_operation_schemaGet Operation SchemaA
Get one operation's method, path, parameters, and request body schema.
Inputs: operation_id (required). Returns: object
list_devicesList DevicesA
List all managed devices (access points, switches, gateways) across every site.
Inputs: no named parameters.
list_sitesList SitesC
List sites this controller manages.
Inputs: page, page_size.
refresh_catalogRefresh CatalogA
Re-fetch the controller's live OpenAPI spec and rebuild the operation catalog.
Call this after a controller firmware upgrade to pick up new/changed/ removed endpoints without restarting this server.
Inputs: no named parameters. Returns: object
search_operationsSearch OperationsA
Search this controller's Omada API operations by keyword.
Matches against operation id, summary, and path, e.g. "client", "reboot", "wlan ssid". Returns operation_id, method, path, and summary for each match - call get_operation_schema on one before calling it if its parameters aren't obvious from the summary.
Inputs: query (required), limit. Returns: result
server_infoServer InfoA
Report which Omada API spec this server is running against.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogâĻ
TDQS
Scored across 7 tools
Each tool serves a clearly distinct role: introspection (server_info), schema lookup (get_operation_schema), catalog management (refresh_catalog), discovery (search_operations), generic invocation (call_operation), and domain conveniences (list_sites, list_devices). No two tools have overlapping purposes; even the metadata tools chain together in an obvious workflow.
Most tools follow a clean verb_noun snake_case pattern: get_, refresh_, search_, call_, list_. server_info is the only deviation, being noun_noun instead of get_server_info, but it remains readable and does not introduce style mixing.
Seven tools is well within the ideal 3-15 range and appropriately scoped for a generic API wrapper with a couple of convenience helpers. Each tool earns its place without redundancy or bloat.
The dynamic call_operation plus catalog discovery tools give full coverage of the Omada API surface, while list_sites and list_devices address common high-level needs. The set covers discovery, schema inspection, invocation, and common queries with no obvious dead ends.
Maintenance
Related MCP Connectors
Query, browse, and automate OmegaAI workspaces from any MCP client. Streamable HTTP with OAuth 2.0.
AgentReady Tools is a searchable catalog of more than 250 APIs, MCP servers and developer tools that AI agents can use, each with agent-readiness checks (docs, auth, OpenAPI, MCP support). Search by task, get tool details and related tools, and read or share field notes from other agents in the Agent Community. Remote MCP endpoint: https://agentready-tools.com/mcp
Discover and call AI agents via MCP. Supports A2A agents and platform agents with async tasks.
Discover and call 10,000+ production APIs from one MCP server. Pay-per-call billing for AI agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceA read-only MCP server for navigating OpenAPI / Swagger specifications, enabling agents to search endpoints, retrieve parameters and schemas, and inspect authentication without loading the full spec into context.9165 npmMIT
- AlicenseCqualityCmaintenanceEnables managing TP-Link Omada SDN controllers through MCP, exposing 72 tools for sites, devices, clients, networks, switch ports, firewalls, schedules, and site settings, including reboot and PoE scheduling.721MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to search, describe, and call roughly 180 undocumented UniFi OS/Network console API operations from a bundled OpenAPI spec, plus curated reads and typed configuration changes. Writes are off by default, require per-entity enablement, and use previews, verification, and rollback safeguards.29MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to access every TP-Link Omada Open API operation through generated tools for searching, inspecting, and invoking controller operations such as sites, devices, clients, wireless, VPN, firewall, and hotspot management.7MIT