Skip to content

AI agents and MCP

Insight Board MCP gives a compatible AI agent tools for sources, datasets, assets, users, layouts and screens. The agent launches the Node.js package locally over stdio and connects to your SaaS or self-hosted API. No public server, Docker container or model API key is required for MCP itself; you provide the agent and model access.

Requires Node.js 22.23.4+, an existing workspace and a key from Settings → Workspace API keys. Grant the actions and resources the agent needs.

Add a stdio MCP connection in your client with command, arguments and environment values. For Codex CLI:

Terminal window
codex mcp add insight_board --env INSIGHT_BOARD_URL=https://boards.company.com --env INSIGHT_BOARD_API_KEY=ibk_your_workspace_key -- npx -y @celeon/insight-board-mcp@latest

No global installation is needed. npx downloads and caches the package automatically; your client launches the server when connecting.

For clients using JSON configuration:

{
"mcpServers": {
"insight-board": {
"command": "npx",
"args": ["-y", "@celeon/insight-board-mcp@latest"],
"env": {
"INSIGHT_BOARD_URL": "https://boards.company.com",
"INSIGHT_BOARD_API_KEY": "ibk_your_workspace_key"
}
}
}
}

INSIGHT_BOARD_URL is the installation origin, without /api or /w/.... INSIGHT_BOARD_API_KEY selects the workspace. Keep credentials in private client configuration or supported secret inputs. Use separate connections/keys for different workspaces. To change them, edit the connection in your client.

The client launches and manages the MCP process automatically. There is no required configure or doctor step, separate credentials store or automatic .env loading. Missing values cause a clear startup error. Some clients can prompt for values during registration; this is handled by the client.

For image previews, install matching Chromium once using npx -y @celeon/insight-board-mcp@latest install-browser. Other tools work without it. Browser installation never runs automatically during npm installation; Linux may need browser system dependencies.

Append doctor to the npx launch command for optional API and Chromium checks; it exits after checking. If the terminal has no Insight Board environment values, doctor reads the saved insight_board connection from ~/.codex/config.toml (or $CODEX_HOME/config.toml), so you do not need to enter the key again. An explicit environment URL/key pair takes precedence. For normal use, the client starts npx, which runs the server from npm’s cache and uses the environment supplied by the client.

Find our production dataset. Create a dark 1920 × 1080 layout with four KPI cards, a wide bar chart and a quality gauge. Show a preview, improve readability, and leave it as a draft.

The agent can inspect workspace_overview, search existing resources, read fields and samples, create missing data, and request a widget schema. layout_create starts a draft; layout_edit adds or changes scenes and widgets in atomic batches without sending the complete layout for every adjustment.

Edits need expectedRevision. Conflicts are rejected for the agent to read and reconcile. Frame/style patches merge; bindings and arrays replace. Containers use relative child coordinates. Duplicating a layout creates an independent draft with new IDs.

layout_validate checks structure and references. layout_preview uses the real playback components, with scene selection, elapsed time, screen-code variables and widget crops. It does not create a player or consume screen capacity. Previews sample at most 100 records per dataset and report sampling, blocked external media and potential clipping. Arbitrary external network access is disabled; private uploaded media requires asset-read rights.

All-content permission covers content operations. User management and settings changes require explicit grants, even for existing all-content keys. Publishing, assignment, pairing, commands, deletion and unpairing have separate permissions.

The agent can prepare workspace users, upload local files (including backgrounds and logos), adjust player settings, inspect screen status and claim a device with a supplied code/token. Give uploads an absolute path on the computer running MCP; no upload-folder setting is needed. Asset permissions, server file rules and quotas still apply. New/reset temporary passwords are returned for that operation only; saved source passwords are never returned. Pairing never assumes analytics consent.

Editing published content requires publish rights; otherwise duplicate it into a draft. Licence, quota, storage and source-network limits remain enforced. Keys cannot administer other workspaces, platform accounts, licences or API keys.

After a write timeout, inspect the resource before retrying: it may have completed. Revoked keys stop working on subsequent requests. Older API installations report missing capabilities and need an application update.

For scripts without an agent, use the automation API.