AI access (MCP)

AI clients that support MCP (Claude Code, Claude Desktop, GitHub Copilot in VS Code, Cursor, OpenAI Codex, Gemini CLI…) can work with your flows through CLEM's MCP server: find and read flows, build and edit them, add checks, run them, read the results, import collections and export for CI.

Connecting a client

Nothing happens unless you add CLEM to a client. Open Settings → AI access (MCP), pick your client under Connect, and copy the command or configuration shown for your computer.

Settings, AI access section: the permission switches, the limits and the Connect picker with its command
Settings → AI access (MCP).
claude mcp add clem -e ELECTRON_RUN_AS_NODE=1 -- "<CLEM folder>\CLEM.exe" "<CLEM folder>\resources\app.asar\src\mcp\server.js"

The server runs only while a client has it started; the app doesn't need to be open. ChatGPT can't use CLEM: it only connects to MCP servers on the internet, and CLEM's runs on your computer. OpenAI's Codex can.

What to ask

The AI reads this guide too (as clem://docs/help), so it knows how each feature works.

What AI clients may do

You decide, in Settings → AI access. AI clients can't change these settings.

SwitchDefaultAllows
Let AI clients use CLEMonanything at all
Readonprojects, flows, environments, secrets' names, run results
Changeonflows, projects, environments, project files
Delete flows and secretsoffdeleting
Run flowsonrunning flows and projects
Run flows with codeoffruns of flows with code blocks, functions or libraries: code runs as full Node.js with your permissions
Send single requestsonTest Request, GraphQL schemas
Export flowsonexports
Set secret valuesoffwriting secret values

Limits: Allowed hosts (where AI runs and requests may go, redirects and http() included; empty = anywhere), Wait at most, Stop runs after and Runs at a time.

Allowed hosts covers what CLEM sends, not what code does. A code block runs as Node.js with your permissions and could open connections or files on its own (Code runs with your permissions). If you turn on Run flows with code, treat the AI client as able to run any code as you.

Safety