Skip to content
João Miguel Tabosa Vaz Marques Silva edited this page Nov 17, 2025 · 2 revisions

TP-Link Omada MCP Server

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).


Wiki Overview

  • 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.


Quick Start

  1. Install dependencies

    npm install
  2. Configure environment

    Create a .env file with Omada and MCP settings. See Configuration for details.

  3. Run the server (stdio)

    npm start

    Point your MCP client at the npm start command, passing the required environment variables.

  4. Run the server (HTTP)

    export MCP_SERVER_USE_HTTP=true
    npm run dev        # or: npm start

    See HTTP Transport for endpoints and options.


Features

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

Clone this wiki locally