Xyte MCP Server
Bring your fleet data into the AI tool you already use
The Xyte MCP Server connects the AI tool you already use to your Xyte organization. Once it's connected, you can ask about your fleet in plain language: "Which devices are offline in the London office?", "Summarize this week's open incidents" or "Reboot the display in the main lobby."
MCP (Model Context Protocol) is an open standard for connecting AI tools to other systems. The Xyte MCP Server runs on your own computer, alongside your AI tool. Nothing is installed on Xyte's side, and no third party sits between your AI tool and your data.
It works with any AI vendor. The server isn't tied to OpenAI, Anthropic, Google or any other model provider. If your company has approved an AI tool that supports local MCP servers, you can use it with Xyte. See the compatibility table below.
AI Teammate or MCP Server?
| AI Teammate | MCP Server | |
|---|---|---|
| Where it runs | Inside the Xyte platform | In your own AI tool, on your computer |
| Setup | None | One-time install, about 5 minutes |
| Best for | Quick answers while you work in Xyte | Using fleet data in other work: reports, docs, spreadsheets, other systems |
| What it can see | The devices and incidents on your screen | Everything your API key can access |
Many teams use both.
Which AI tool are you using?
Find your tool below, then jump to its setup steps. Supported tools are listed first.
| AI tool | Works with Xyte MCP? | Setup method | Notes |
|---|---|---|---|
| Claude Code | Yes | One command | Fastest setup |
| Claude Desktop (including Cowork) | Yes | Edit a config file | Use the desktop app, not claude.ai in a browser |
| Cursor | Yes | Edit a config file | |
| Gemini CLI | Yes | One command | Google's command-line tool, not the Gemini web or mobile app |
| OpenAI Codex | Yes | One command | Codex CLI, IDE extension or app |
| GitHub Copilot in VS Code | Yes | One command or config file | Use Copilot's Agent mode |
| Other MCP-capable tools | Usually | Edit a config file | Any tool that supports local (stdio) MCP servers |
| ChatGPT (web, desktop, mobile) | Not today | — | ChatGPT only connects to remote MCP servers, and the Xyte MCP Server runs locally |
| Microsoft Copilot / Copilot Studio | Not today | — | Copilot runs in Microsoft's cloud and can't start a server on your computer |
| Gemini web or mobile app | Not today | — | Use Gemini CLI instead |
Using Microsoft Copilot or ChatGPT? You can still use AI Teammate inside Xyte. Advanced teams can also call the Xyte Core API directly from tools like Power Automate.
GitHub Copilot and Microsoft Copilot are different products. GitHub Copilot is a coding assistant that runs on your computer and supports the Xyte MCP Server. Microsoft Copilot (Microsoft 365 Copilot, Copilot Studio) runs in the cloud and doesn't support it today.
Before you start
You need three things: an AI tool that runs on your computer, Node.js 22 or newer, and a Xyte API key.
1. Check that your AI tool runs on your computer
The Xyte MCP Server is a small program your AI tool starts on your computer. That only works with an AI tool that is installed on your computer and can run programs. Chat-only tools in a browser can describe the setup but can't run it. If your AI tool replies with something like "I can't run shell commands," that's the reason. Use one of the supported tools above instead.
2. Install Node.js 22 or newer
Open a terminal (Terminal on Mac, PowerShell on Windows) and run:
node --versionIf you see v22 or higher, you're set. If you see an older version or "command not found," install Node.js:
- Mac or Windows: download the LTS installer from nodejs.org and run it.
- Mac with Homebrew:
brew install node - Windows with winget:
winget install OpenJS.NodeJS.LTS
Close and reopen your terminal and your AI tool after installing so they pick up Node.js.
3. Create an API key
In Xyte, go to Settings → API Keys and create a key. See Core API Keys for details. Keep the key private: anyone who has it can access your organization.
Which key you need depends on your account type:
| You are | Key to create | Variable name | What the AI tool can access |
|---|---|---|---|
| An end customer | Organization API key | XYTE_ORG_API_KEY | Your organization |
| A partner or dealer managing customers | Partner API key | XYTE_PARTNER_API_KEY | Devices, customer organizations and tickets across your partner account |
| A partner who wants access to one customer only | Organization API key created inside that customer's account | XYTE_ORG_API_KEY | That customer only |
The examples on this page use XYTE_ORG_API_KEY. If you're using a partner key, swap in XYTE_PARTNER_API_KEY. A partner key covers fewer operations than an organization key: it can't reach spaces, incidents, commands, notes or users. For those, add an organization key from the customer's account as well; you can set both. You don't need to configure a tenant or URL; the key determines what you can access.
Install by tool
In every example, replace <your-api-key> with the key you created. After installing, fully quit and reopen your AI tool. Servers load when a session starts, so a session that's already open won't see the new server.
Claude Code
Run this in a terminal:
claude mcp add xyte --scope user -e XYTE_ORG_API_KEY=<your-api-key> -- npx -y @xyteai/mcpKeep --scope user. Without it, the server only works in the folder you ran the command from.
Claude Desktop (including Cowork)
- In Claude Desktop, open Settings → Developer → Edit Config. This opens
claude_desktop_config.json:- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Mac:
- Add the
xyteentry below. If the file already has anmcpServerssection, addxyteinside it rather than creating a second one. - Save the file, then quit Claude Desktop completely (not just close the window) and reopen it.
{
"mcpServers": {
"xyte": {
"command": "npx",
"args": ["-y", "@xyteai/mcp"],
"env": {
"XYTE_ORG_API_KEY": "<your-api-key>"
}
}
}
}Cursor
- Open Cursor Settings → MCP → Add new global MCP server. This opens
mcp.json:- Mac:
~/.cursor/mcp.json - Windows:
%USERPROFILE%\.cursor\mcp.json
- Mac:
- Add the same
xyteentry shown for Claude Desktop above. - Save, then restart Cursor.
Gemini CLI
Run this in a terminal:
gemini mcp add --scope user -e XYTE_ORG_API_KEY=<your-api-key> xyte npx -y @xyteai/mcpOr add the same xyte entry shown for Claude Desktop to ~/.gemini/settings.json (Windows: %USERPROFILE%\.gemini\settings.json).
Gemini CLI only connects local servers in a trusted folder. If Xyte shows as disconnected, run /permissions trust inside Gemini CLI to trust your working folder.
OpenAI Codex
Run this in a terminal:
codex mcp add xyte --env XYTE_ORG_API_KEY=<your-api-key> -- npx -y @xyteai/mcpOr add this to ~/.codex/config.toml (Windows: %USERPROFILE%\.codex\config.toml):
[mcp_servers.xyte]
command = "npx"
args = ["-y", "@xyteai/mcp"]
env = { XYTE_ORG_API_KEY = "<your-api-key>" }The Codex CLI, IDE extension and app share this configuration.
GitHub Copilot in VS Code
Run this in a terminal:
code --add-mcp '{"name":"xyte","type":"stdio","command":"npx","args":["-y","@xyteai/mcp"],"env":{"XYTE_ORG_API_KEY":"<your-api-key>"}}'Or open the Command Palette, run MCP: Open User Configuration, and add the entry below. VS Code uses servers instead of mcpServers and needs "type": "stdio".
{
"servers": {
"xyte": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@xyteai/mcp"],
"env": {
"XYTE_ORG_API_KEY": "<your-api-key>"
}
}
}
}In Copilot Chat, switch to Agent mode to use Xyte tools.
Other tools
Most MCP-capable tools accept the same xyte entry shown for Claude Desktop. Two common differences:
- Some tools want only the inner
xyteobject, without themcpServerswrapper. - Some use a different top-level key, such as
servers(VS Code).
The values stay the same everywhere: command npx, arguments -y @xyteai/mcp, and your key in XYTE_ORG_API_KEY.
Check that it works
Open a new session and ask: "List my Xyte spaces." (With a partner key only, ask "List my Xyte customers.") If you get them back, you're connected.
You can also check the connection from your tool:
| Tool | How to check |
|---|---|
| Claude Code | Run claude mcp list. xyte should show as connected. |
| Claude Desktop | Settings → Developer. xyte should show as running. |
| Cursor | Cursor Settings → MCP. xyte should have a green dot. |
| Gemini CLI | Run gemini mcp list, or /mcp inside a session. |
| Codex | Run codex mcp list. |
| VS Code | Command Palette → MCP: List Servers. |
Change your key or remove the server
- Change the key: edit the key in your config file, or remove the server and add it again with the new key. Then restart your AI tool.
- Remove the server: run
claude mcp remove xyte,gemini mcp remove xyteorcodex mcp remove xyte, or delete thexyteentry from your config file. - Update to the latest version: change
@xyteai/mcpto@xyteai/mcp@latestin your command or config, then restart your AI tool. Otherwise npx may keep using a version it saved earlier.
What you can do
Your AI tool can read and change what your API key allows: 64 operations with an organization key (devices, spaces, incidents, tickets, commands, device history, notes, users and more) and 14 with a partner key. It can update existing tickets but can't open new ones.
| Use case | Try asking |
|---|---|
| Fleet overview | "How many devices are offline right now, by location?" |
| Incident triage | "Summarize open incidents from the last 24 hours and group them by cause." |
| Device investigation | "Show the status history for the projector in Boardroom A this week." |
| Spaces | "Which spaces have more than three devices with open incidents?" |
| Tickets | "Summarize the open tickets and add a comment to ticket 1234 saying the part has shipped." |
| Commands | "Reboot the codec in the Atrium room." |
| Notes | "Add a note to this device saying the HDMI cable was replaced today." |
| Cross-tool work | "Turn this month's incident data into a QBR summary for the customer." |
Checking whether a command worked
When your AI tool sends a command, Xyte confirms the command was sent, not that it succeeded. If the device doesn't respond, Xyte marks the command as failed after 15 minutes, but your AI tool isn't told automatically.
To confirm a result, ask a follow-up such as "Did the reboot command succeed?" Your AI tool will look up the command's status.
Security and access
Share this section with your IT or security team.
What can the AI tool do?
It can read and change data, but only within what your API key allows. It can't do anything you couldn't do yourself in the Xyte portal. Before deleting anything, the AI tool must name the specific operation. API keys are removed from server responses, so your key isn't shown in the AI tool's output.
Where does our data go?
The server runs on your computer and calls the Xyte API directly. There's no hosted Xyte component and no third party in the path. Your fleet data goes to whichever AI provider your tool uses, under your organization's agreement with that provider.
Can we limit it to read-only?
Yes. Add XYTE_MCP_READ_ONLY=1 when you register the server, and the server refuses any request that would change data before it's sent:
claude mcp add xyte-ro --scope user -e XYTE_ORG_API_KEY=<your-api-key> -e XYTE_MCP_READ_ONLY=1 -- npx -y @xyteai/mcpIn a JSON config, add "XYTE_MCP_READ_ONLY": "1" to the env block. You can register a read-only server and a standard one side by side.
We recommend read-only mode for unattended or scheduled runs, for exploring, and for work involving content your organization doesn't control. Text in your fleet data, such as device names or ticket descriptions, can be written by outside parties and could contain instructions the AI model might follow.
Can different people get different permissions?
Not through a single connection. Each connection uses one API key, and everyone using that connection has the same access. To limit access:
- Use read-only mode for people who only need to look.
- Give each person their own API key rather than sharing one, so you can revoke one person's access without affecting anyone else.
- Partners: to limit access to one customer, create the key inside that customer's account, not in the partner account.
Will we see AI actions in the audit log?
Partly. Many changes made through the API appear in the audit log, but some don't yet, and entries don't show which person or tool made the change.
Troubleshooting
| What you see | What to do |
|---|---|
| "I can't run shell commands" or "I can't install software" | Your AI tool is chat-only. Use a supported tool from the compatibility table. |
| Xyte doesn't appear in my AI tool | Fully quit and reopen the tool. In Claude Code, check you used --scope user. In Gemini CLI, run /permissions trust. |
| "No Xyte API key configured" | The key is missing. Re-run the install command with your key, or check the env block in your config file. |
| "node" or "npx" not found | Install Node.js 22 or newer (see Before you start), then restart your AI tool. |
| Windows: Claude Desktop shows the server as failed | Replace "command": "npx" with "command": "cmd" and add "/c", "npx" to the start of args. |
| The AI tool says it can't make changes | The server is in read-only mode. To allow changes, register it again without XYTE_MCP_READ_ONLY. |
| Permission error on a space or device | Your API key doesn't have access to it. Check the key under Settings → API Keys. Partners: spaces, incidents and commands need an organization key from that customer's account. |
| A command shows as sent but nothing happened | Ask your AI tool to check the command's status. Commands that get no response are marked failed after 15 minutes. |
| Install fails behind a corporate proxy | Ask IT to allow access to the npm registry (registry.npmjs.org) and the Xyte API, or set npm's proxy with npm config set proxy. |
| Anything else | Run npx -y @xyteai/mcp --version in a terminal. If it fails, check your Node.js version. Still stuck? Contact [email protected]. |
Related
Updated 17 days ago
