Skip to main content
Glama
vandreus

UniFi MCP Server

by vandreus

get_wired_clients

Retrieve connected wired client devices from UniFi network infrastructure to monitor network activity and manage device connections.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that implements the core logic of the get_wired_clients tool: fetches all clients using unifi.listAllClients() and filters for wired clients based on isWired or is_wired property.
    handler: async () => { const allClients = await unifi.listAllClients(); const clients = allClients.data || []; const wired = clients.filter(c => c.isWired || c.is_wired); return { content: [{ type: 'text', text: JSON.stringify({ wiredCount: wired.length, totalClients: clients.length, wiredClients: wired }, null, 2) }] }; }
  • The Zod input schema for get_wired_clients, which requires no parameters.
    schema: z.object({}),
  • src/server.js:30-30 (registration)
    The call to register the clientTools module (containing get_wired_clients) with the MCP server using the registerToolsFromModule utility.
    registerToolsFromModule(clientTools);

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/vandreus/Unifi-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server