Repository navigation
Home
Welcome to the wiki for the tplink-omada-mcp project.
This MCP server exposes TP‑Link Omada controller APIs as Model Context Protocol (MCP) tools so AI copilots and automation workflows can:
- Discover Omada sites and devices
- Inspect connected clients
- Query statistics and security events
- Call arbitrary Omada API endpoints
The server is implemented in TypeScript and can communicate with MCP clients over stdio or HTTP (Streamable HTTP or HTTP+SSE).
-
Configuration
Environment variables for Omada API access and MCP server behavior. -
Architecture
High-level structure of the server, Omada client, and transport layers. -
Tools
Detailed documentation of each MCP tool and the underlying Omada API operations. -
HTTP Transport
Streamable HTTP and HTTP+SSE transports, endpoints, and security considerations. -
Development and Docker
Running locally, devcontainer support, and Docker images.
-
Install dependencies
npm install
-
Configure environment
Create a
.envfile with Omada and MCP settings. See Configuration for details. -
Run the server (stdio)
npm start
Point your MCP client at the
npm startcommand, passing the required environment variables. -
Run the server (HTTP)
export MCP_SERVER_USE_HTTP=true npm run dev # or: npm start
See HTTP Transport for endpoints and options.
From the main README:
- OAuth client-credentials authentication with automatic token refresh
- Tools for retrieving sites, network devices, and connected clients
- Generic Omada API invoker for advanced automation scenarios
- Environment-driven configuration
- Per-tag Omada OpenAPI references stored under
docs/openapi - Ready-to-use devcontainer with a companion Omada controller service
For more, see:
- Architecture for an implementation overview
- Tools for detailed tool usage and examples