Prerequisites
- Your AI client (Claude Code, Cursor, Codex, or another client) is installed
- You are a user with permission to generate API keys, such as the Admin role
Prepare an API key and the organization ID
To connect, you need the same API key that the IT Management API uses, and your organization ID.1
Generate an API key
In the admin console, open Settings > API Keys and generate an API key with Generate a new API key. Copy the API key that appears after you generate it.
2
Note the organization ID
Note the Organization ID shown on the API Keys screen.
Use the numeric Organization ID shown on the API Keys screen. It differs from the organization identifier in the admin console URL. If you specify the identifier from the URL, tool calls return an error.
Set environment variables
You can pass the API key and the organization ID through environment variables. You do not need to write the values in the configuration file. Add the following to your shell configuration file (.zshrc, .bashrc, or similar).
AI clients read environment variables when they start. After you update the configuration file, open a new terminal or run
source ~/.zshrc, and then start the AI client. Changes do not apply to a process that is already running.Configure the MCP server
Add the configuration for your AI client. Every client must send the following two headers.- Claude Code
- Claude Cowork
- Cursor
- Codex
Add the following to your project’s
.mcp.json or to your user settings (~/.claude.json).Claude Code replaces ${VARIABLE_NAME} in headers with the value of the environment variable.For a project-specific setup, place
.mcp.json in your project root. To use the server in all projects, add it to ~/.claude.json.Verify the connection
Start your AI client and send a request like the following.The tool list can appear even when the API key or the organization ID is wrong. The server checks the API key and the organization ID when a tool runs. If you get an error, see Errors and limits.
With Codex CLI, you can also run
codex doctor to check your configuration. If the output shows mcp.config: ok, Codex loaded the MCP server configuration correctly.Connect to more than one organization
One connection works with the single organization that you specify inX-Admina-Organization-Id.
To work with more than one organization, register one MCP server for each organization under a different name.
Give each server that organization’s API key and organization ID.


