# UniFi On Prem MCP connector

The UniFi On Prem connector lets Claude, ChatGPT, Cursor, Microsoft Copilot, or any MCP client manage the people in your UniFi access system, creating users, assigning NFC cards, PIN codes, touch passes, license plates, and access policies, with every change logged.

Source: https://elaichi.ai/connectors/unifionprem/

## Facts

| | |
| --- | --- |
| Application | UniFi On Prem |
| Category | Security |
| AI tools | 109 |
| Authentication | Connects with an API key |
| Bring your own OAuth app | No |
| MCP endpoint | https://api.elaichi.ai/mcp |
| Works with | Claude, ChatGPT, Cursor, Microsoft Copilot, any MCP client, and the Elaichi Agent |
| Tools advertised by name | No. Connected tools are never listed one by one, however few there are. The endpoint advertises `search_tools` and `execute_tool` instead |

## What you can ask once UniFi On Prem is connected

- List all UniFi On Prem users without an access policy.
- Assign a PIN code to the new warehouse contractor.
- Which users still hold NFC cards after leaving?

## Connect UniFi On Prem in Elaichi

This happens once for the organization, before any client is involved.

1. Open Connections, choose Add connection, and pick UniFi On Prem.
2. Optionally set Share with, then press Connect.
3. Paste an UniFi On Prem API key. One person generates a token in UniFi On Prem and pastes it once. Everyone else works through Share with, and never sees it.

Credentials are vaulted and nobody, including the AI, reads them back. The connection becomes a toolbox immediately, so you can curate which UniFi On Prem tools are exposed, rename them, or freeze arguments before anyone points a client at it.

## UniFi On Prem MCP connector for Claude

Endpoint: https://api.elaichi.ai/mcp

1. Open Customize, then Connectors.
2. Press Add.
3. Name it, paste the MCP server URL, then Continue.
4. Sign in and approve.

On Team and Enterprise, an Owner adds it once. Everyone else turns it on for themselves.

## UniFi On Prem MCP connector for Claude Code

Endpoint: https://api.elaichi.ai/mcp

1. In a terminal, run `claude mcp add` with the endpoint.
2. Start Claude Code and run `/mcp`.
3. Pick elaichi, then sign in and approve in the browser.

```bash
claude mcp add --transport http elaichi --scope user https://api.elaichi.ai/mcp
```

Use `--scope project` instead to share it with the repository through `.mcp.json`.

## UniFi On Prem MCP connector for ChatGPT

Endpoint: https://api.elaichi.ai/mcp

1. Open Plugins, then press the + button.
2. Name it and paste the endpoint into Server URL.
3. Leave Authentication on OAuth, then tick the risk acknowledgement.
4. Press Create, then sign in and approve.

Works on the web. The plugin directory lives at chatgpt.com/plugins.

## UniFi On Prem MCP connector for Cursor

Endpoint: https://api.elaichi.ai/mcp

1. Open `~/.cursor/mcp.json`.
2. Add the endpoint under `mcpServers`.
3. Reload Cursor, then sign in and approve.

Set up per machine, so repeat it on each computer you work from.

## UniFi On Prem MCP connector for Microsoft Copilot

Endpoint: https://api.elaichi.ai/mcp

1. In Copilot Studio, open your agent, then Tools, Add a tool, New tool and Model Context Protocol.
2. Paste the endpoint into Server URL, choose OAuth 2.0, then Dynamic discovery, and press Create.
3. Create a new connection, sign in and approve, then press Add to agent.
4. Under Channels, open Teams and Microsoft Copilot and make the agent available in Microsoft Copilot.

Microsoft Copilot was called Microsoft 365 Copilot. Keep the tool on end-user credentials, so each person signs in as themselves.

## Connect UniFi On Prem to any MCP client

Endpoint: https://api.elaichi.ai/mcp

1. Add the endpoint as a remote MCP server.
2. Sign in and approve.

The Elaichi Agent already has these tools, with nothing to set up.

## What the consent screen decides

Every scope the client asks for starts ticked except "Delete things", which you tick yourself. Calling a UniFi On Prem tool needs "Use your connected apps". Over MCP there is no trusted place to confirm a write in the moment, so the consent screen is the standing approval rather than a formality. Think hard before granting Use your connected apps, which can also delete in connected apps and cannot be undone.

## What teams do with UniFi On Prem through Elaichi

### Set up building access on day one

HR. Create the new hire as a UniFi On Prem user, add them to the right user group, and assign their access policy and PIN code before they walk in on Monday.

### Replace a lost badge in seconds

Facilities. Unassign the missing NFC card from the person's UniFi On Prem user and assign the new one, without opening the controller or waiting for IT.

### Check who can open which doors

Security. Ask which access policies a UniFi On Prem user holds, or list everyone in a user group, before an audit or right after a change.

### Register a contractor's license plate for parking

Office management. Assign the plate to the contractor's UniFi On Prem user for the week and remove it when the job ends, so the gate stops recognizing it.

### Move a whole team to phone entry

IT. Batch assign touch passes to a department's UniFi On Prem users in one go instead of handling each person individually.

### Revoke access the moment someone leaves

Security. Unassign the departing employee's PIN code, NFC card, touch pass, and license plate in UniFi On Prem, or delete their user entirely, before they reach the parking lot.

## Elaichi vs Zapier MCP vs Composio for UniFi On Prem

All three can connect UniFi On Prem to an AI assistant, and all three have admin controls. They differ in where access lives and how you pay.

| What to check | Elaichi | Zapier MCP | Composio |
| --- | --- | --- | --- |
| Where the AI connects | One address for the whole organization. Endpoint: https://api.elaichi.ai/mcp | A server per member, created at sign-in. | An MCP endpoint per team, or an SDK. |
| Control over UniFi On Prem tools | Allow or restrict single UniFi On Prem tools, per role or user. | App and action restrictions on the account. | Role permissions, down to the action. |
| Record of calls | One audit entry per UniFi On Prem call. | A History tab of tool calls. | A log of every tool call. |
| Single sign-on | SAML or OIDC, plus SCIM, on Gold. | SAML on Enterprise. | SAML and OIDC on Enterprise. |
| Price | Free for one person; $15 per user per month on Gold. | 2 tasks per successful call. | Billed per tool call. |

Sources: Zapier MCP [docs](https://docs.zapier.com/mcp/get-started/quickstart), [security](https://docs.zapier.com/mcp/manage/security), [usage](https://docs.zapier.com/mcp/features/usage); Composio [docs](https://docs.composio.dev/docs/composio-connect), [gateway](https://composio.dev/mcp-gateway), [enterprise](https://composio.dev/enterprise), [pricing](https://composio.dev/pricing). Checked September 2026.

Longer take: [Zapier MCP alternative](/blog/zapier-mcp-alternative/) and [when you don't need an MCP gateway](/blog/when-you-dont-need-an-mcp-gateway/).

## Frequently asked questions

### How do I connect UniFi On Prem to Claude?

Two steps. In Elaichi, pick UniFi On Prem from the connector catalog and paste in the API key from your UniFi controller, there is no OAuth application to register and no client ID or secret to generate. Then in Claude open Customize, then Connectors, then Add, and paste https://api.elaichi.ai/mcp. Sign in with your Elaichi account and UniFi On Prem is ready to use.

### Does UniFi On Prem work with ChatGPT and Cursor as well as Claude?

Yes. Once UniFi On Prem is connected in Elaichi, the same endpoint, https://api.elaichi.ai/mcp, works in Claude, ChatGPT, Cursor, Microsoft Copilot, any other MCP client, and the Elaichi Agent. You connect UniFi On Prem once and every client picks it up.

### What can an AI agent actually do with my UniFi On Prem data?

An agent can create and update UniFi On Prem users, search for a person, upload their profile picture, and put them in the right user group. It can assign or remove NFC cards, PIN codes, touch passes, license plates, and access policies, and tell you which policies someone currently holds. Because UniFi On Prem has a lot of actions, short concrete asks like "assign a PIN to Maria Lopez" work better than long paragraphs.

### Does connecting UniFi On Prem give the AI control of every door and every user?

No. Every call to UniFi On Prem runs inside the access of the person who signed in, so the AI can only see and change the users, groups, and policies that person could already manage. Elaichi can narrow that further with restrictions, but it never widens it beyond what UniFi On Prem itself allows that person.

### Can my team share one UniFi On Prem connection?

Yes. One person connects UniFi On Prem in Elaichi with the API key and shares the connection with a team, and nobody else ever handles the key. Each teammate still signs in to Elaichi as themselves, so the audit log names the actual person who assigned a badge or changed an access policy.

### Can I stop an agent from deleting or changing things in UniFi On Prem?

Yes. Restrictions in Elaichi work per action, so you can allow searching and listing UniFi On Prem users while restricting deletion, or restricting changes to access policies. A restricted action still appears in Elaichi's tool search, flagged as restricted, but Claude, ChatGPT, or any other client cannot run it, whatever the prompt says.

### What happens to a UniFi On Prem connection when someone leaves?

Offboarding that person in Elaichi ends their access to UniFi On Prem through every client at once. A shared UniFi On Prem connection keeps working for everyone else on the team. If you ever want to remove UniFi On Prem entirely, disconnecting it once in Elaichi removes it from Claude, ChatGPT, Cursor, Microsoft Copilot, and every other client.

### Does the UniFi On Prem MCP connector work with Gemini, Codex, Claude Code or other MCP clients?

Yes. UniFi On Prem is reached over the same MCP endpoint every client uses, so anything that speaks MCP can call it — Gemini, Codex, Claude Code, Windsurf, Cline, Zed and OpenCode among them — alongside Claude, ChatGPT, Cursor, Microsoft Copilot, and the Elaichi Agent. The tools on offer and the access behind them are identical whichever client asks. Only the setup screen differs.

### Is Elaichi an alternative to Zapier MCP for UniFi On Prem?

Yes. Both let Claude, ChatGPT or Cursor use UniFi On Prem. Zapier MCP fits a team that already automates in Zapier, since each person signs in and acts as themselves in that account. Elaichi fits when IT wants one address for the whole company, per-tool rules by role, and a record of every UniFi On Prem call.

### How is Elaichi different from Composio for UniFi On Prem?

Composio gives AI agents tools and sign-in handling across 1,000+ apps, for developers building agents or people using an assistant, billed per tool call. Elaichi gives a company's own people governed access to UniFi On Prem: one address, restrictions per role or user, and $15 per user per month. Both have role permissions and a log of every call.

## All 109 UniFi On Prem tools

Every tool below is callable through https://api.elaichi.ai/mcp once UniFi On Prem is connected, subject to the toolbox it is in and the restrictions on the caller.

- **Create a UniFi On Prem user** (Create). Register a new user in UniFi Access. Returns the created user object including its id, first_name, last_name, user_email, employee_number, onboard_time, status, and assigned access policies. Required: first_name, last_name.
- **Update a UniFi On Prem user by ID** (Update). Update a user's details in UniFi Access by id. Returns the updated user object including its id, first_name, last_name, user_email, employee_number, onboard_time, status, and assigned access policies. Required: id.
- **Get single UniFi On Prem user by ID** (Get). Get a single UniFi Access user by id. Returns the full user object including its id, first_name, last_name, user_email, employee_number, onboard_time, status, access policies, NFC cards, license plates, PIN code, and touch pass. Required: id.
- **List all UniFi On Prem users** (List). List all UniFi Access users with pagination. Returns each user's id, first_name, last_name, user_email, employee_number, onboard_time, status, access policies, NFC cards, license plates, PIN code, and touch pass. Optional: expand to include access policies.
- **UniFi On Prem users assign access policy** (Assign). Assign or replace access policies for a UniFi Access user. Pass an array of access policy IDs to set the user's assigned policies; pass an empty array to remove all policies. Returns an empty 204 response on success. Required: user_id, access_policy_ids.
- **UniFi On Prem users assign nfc card** (Assign). Assign an NFC card to a UniFi Access user by providing the card token. Use force_add to overwrite a card already assigned to another user. Returns a success confirmation with no data payload. Required: user_id, token.
- **UniFi On Prem users unassign nfc card** (Action). Unassign an NFC card from a UniFi Access user by providing the card token. Returns a success confirmation with no data payload. Required: user_id, token.
- **UniFi On Prem users assign pin code** (Assign). Assign a PIN code to a UniFi Access user for unlocking doors. Returns a success confirmation with no data payload. Required: user_id, pin_code.
- **UniFi On Prem users unassign pin code** (Action). Unassign the PIN code from a UniFi Access user. Returns a success confirmation with no data payload. Required: user_id.
- **UniFi On Prem users list access policies** (List). List the access policies assigned to a UniFi Access user, including policies inherited from the user's group unless filtered. Returns: id, name, resources, schedule_id. Required: user_id.
- **Delete a UniFi On Prem user by ID** (Delete). Delete a UniFi Access user by id. Returns an empty 204 response on success. Required: id.
- **UniFi On Prem users search** (Search). Search UniFi Access users. Returns matching user records including id, first_name, last_name, full_name, email, user_email, status, email_status, alias, avatar_relative_path, employee_number, nfc_cards, onboard_time, phone, pin_code, and username.
- **UniFi On Prem users assign touch pass** (Assign). Assign a suspended or inactive Touch Pass to a specific user in UniFi Access. Returns the Touch Pass object including id, card_id, status, user_id, user_name, and user_email. Required: user_id, touch_pass_id. Requires UniFi Access version 3.2.20 or later.
- **UniFi On Prem users unassign touch pass** (Action). Unassign a Touch Pass from a specific user in UniFi Access. Returns the Touch Pass object with id, card_id, card_name, status, last_activity, bundles, and user fields after unassignment. Required: user_id. Requires UniFi Access version 3.2.20 or later.
- **UniFi On Prem users batch assign touch passes** (Assign). Batch assign unassigned Touch Passes to users in UniFi Access using their email addresses. Returns an array of Touch Pass objects with id, card_id, card_name, status, last_activity, bundles, and user assignment details. Required: ids. Requires UniFi Access version 3.2.20 or later.
- **UniFi On Prem users assign license plate** (Assign). Assign one or more license plate numbers to a specific user in UniFi Access. Returns an empty response on success. Required: user_id. UniFi Access version 3.3.10 or later is required.
- **UniFi On Prem users unassign license plate** (Action). Unassign a specific license plate number from a user in UniFi Access. Returns an empty response on success. Required: user_id, license_plate_id. UniFi Access version 3.3.10 or later is required.
- **UniFi On Prem users upload profile picture** (Upload). Upload a profile picture for a user in UniFi Access. Returns: avatar_url. Required: user_id. Only supported for local users; UI Account users must update their picture through the UI Account interface. UniFi Access version 3.3.10 or later is required.
- **Create a UniFi On Prem user group** (Create). Create a new user group in UniFi Access. Returns: id. Required: name.
- **List all UniFi On Prem user groups** (List). List all user groups in UniFi Access. Returns: id, name, full_name, up_id, up_ids.
- **Get single UniFi On Prem user group by ID** (Get). Get a single user group by id in UniFi Access. Returns: id, name, full_name, up_id, up_ids. Required: id.
- **Update a UniFi On Prem user group by ID** (Update). Update a user group by id in UniFi Access. Returns: id, name, full_name, up_id, up_ids. Required: id, name.
- **Delete a UniFi On Prem user group by ID** (Delete). Delete a user group by id in UniFi Access. Returns an empty 204 response on success. Required: id.
- **UniFi On Prem user groups assign user** (Assign). Assign users to a user group in UniFi Access by supplying an array of user identity IDs in the request body. Returns a success confirmation with no data payload. Required: user_group_id.
- **UniFi On Prem user groups unassign user** (Action). Remove users from a user group in UniFi Access by supplying an array of user identity IDs in the request body. Returns a success confirmation with no data payload. Required: user_group_id.
- **UniFi On Prem user groups list all users** (List). List all users across UniFi on-premises user groups, including users in subgroups. Returns: id, first_name, last_name, full_name, email, user_email, status, email_status, employee_number, phone, username, alias, avatar_relative_path, onboard_time.
- **UniFi On Prem user groups assign access policy** (Assign). Assign access policies to a UniFi on-premises user group by providing the access policy IDs. Returns an empty 204 response on success. Required: user_group_id, access_policy_ids.
- **UniFi On Prem user groups list access policies** (List). List the access policies assigned to a user group in UniFi Access. Returns each policy's id, name, resources (door groups and doors), and schedule_id. Required: user_group_id.
- **Create a UniFi On Prem visitor** (Create). Create a new visitor in UniFi Access with personal details, visit schedule, and door access resources. Returns: id, first_name, last_name, status, schedule_id, resources, nfc_cards, license_plates, pin_code, schedule. Required: first_name, last_name.
- **Get single UniFi On Prem visitor by ID** (Get). Get a single UniFi Access visitor by id. Returns: id, first_name, last_name, status, schedule_id, resources, nfc_cards, license_plates, pin_code, schedule. Required: id.
- **List all UniFi On Prem visitors** (List). List all visitors in UniFi Access. Returns: id, first_name, last_name, status, schedule_id, resources, nfc_cards, license_plates, pin_code, schedule. Supports optional status filtering, keyword prefix search on visitor names, and expandable related objects.
- **Update a UniFi On Prem visitor by ID** (Update). Update a visitor in UniFi Access by id. Returns: first_name, id, last_name, nfc_cards, license_plates, pin_code, resources, schedule, schedule_id, status. Required: id. Status change is not supported.
- **Delete a UniFi On Prem visitor by ID** (Delete). Delete a visitor in UniFi Access by id. If the is_force query parameter is set, physically deletes the visitor; otherwise updates the visitor to canceled status. Returns an empty 204 response on success. Required: id.
- **UniFi On Prem visitors assign nfc card** (Assign). Assign an NFC card to a visitor in UniFi Access by providing the card token. Returns a success response with no data payload. Required: visitor_id, token.
- **UniFi On Prem visitors unassign nfc card** (Action). Unassign an NFC card from a visitor in UniFi Access by providing the card token. Returns a success response with no data payload. Required: visitor_id, token.
- **UniFi On Prem visitors assign pin code** (Assign). Assign a PIN code to a UniFi Identity visitor so the visitor can unlock doors. The PIN code must first be generated via the /api/v1/developer/pin_codes endpoint. Returns a success response with no data payload. Required: visitor_id, pin_code.
- **UniFi On Prem visitors unassign pin code** (Action). Unassign the PIN code from a visitor in UniFi Access. Returns an empty 204 response on success. Required: visitor_id.
- **UniFi On Prem visitors assign qr code** (Assign). Assign a QR code to a visitor in UniFi Access. Returns an empty 204 response on success. Required: visitor_id. UniFi Access version 3.3.10 or later required.
- **UniFi On Prem visitors unassign qr code** (Action). Unassign (remove) a QR code from a visitor in UniFi Access. Returns an empty 204 response on success. Required: visitor_id. UniFi Access version 3.3.10 or later required.
- **UniFi On Prem visitors assign license plate** (Assign). Assign one or more license plate numbers to a visitor in UniFi Access. Returns an empty 204 response on success. Required: visitor_id and a request body containing a list of license plate numbers. UniFi Access version 3.3.10 or later required.
- **UniFi On Prem visitors unassign license plate** (Action). Unassign a license plate number from a visitor in UniFi Access. Returns an empty 204 response on success. Required: visitor_id, license_plate_id. UniFi Access version 3.3.10 or later required.
- **Create a UniFi On Prem access policy** (Create). Create a new access policy in UniFi Access. Returns: id. Required: name, schedule_id.
- **Update a UniFi On Prem access policy by ID** (Update). Update a UniFi access policy by id, modifying only the fields supplied in the request body. Returns the string 'success' confirming the update. Required: id. All body fields (name, resource, schedule_id) are optional — omit any that do not need to change.
- **Delete a UniFi On Prem access policy by ID** (Delete). Delete a UniFi access policy by id. Returns an empty 204 response on success. Required: id.
- **Get single UniFi On Prem access policy by ID** (Get). Get a single UniFi Access access policy by id. Returns: id, name, resources, schedule_id. Required: id.
- **List all UniFi On Prem access policies** (List). List all UniFi Access access policies. Returns each policy with id, name, resources (doors and door groups), and schedule_id.
- **Create a UniFi On Prem holiday group** (Create). Create a new holiday group in UniFi Access with a name and an optional list of holidays. Returns the created holiday group including its id, name, description, is_default, template_name, and holidays array. Required: name.
- **Update a UniFi On Prem holiday group by ID** (Update). Update a holiday group in UniFi Access by id, including its name, description, and holidays. Returns the updated holiday group including its id, name, description, is_default, template_name, and holidays array. Required: id, name.
- **Delete a UniFi On Prem holiday group by ID** (Delete). Delete a holiday group in UniFi Access by id. Returns a success confirmation string. Required: id.
- **Get single UniFi On Prem holiday group by ID** (Get). Get a UniFi Access holiday group by id. Returns: id, name, is_default, description, holidays, template_name. Required: id.
- ...and 59 more tools. Call `tools/list` via the MCP endpoint, or see the full catalog via the API, for the complete set.
