The User Intuition CLI ships inside the Node MCP server package (Documentation Index
Fetch the complete documentation index at: https://docs.userintuition.ai/llms.txt
Use this file to discover all available pages before exploring further.
userintuition-mcp on npm, 0.2.6+). The same binary that speaks MCP can also be invoked as a plain shell tool — every tool the server exposes is reachable as a subcommand, no MCP client required.
Use the CLI when you want to script User Intuition into a pipeline that doesn’t speak MCP: shell automation, CI jobs, cron, Makefiles, ad-hoc debugging, or piping tool output into jq and other Unix tools.
The CLI is available in the Node build only. The Python build (
userintuition-mcp via uvx/pip) does not currently expose a CLI surface — use the REST API for shell scripting in Python-first environments.When to use the CLI vs MCP
Use the CLI when…
You’re writing a shell script, CI step, or cron job. You want to pipe tool output into
jq, save it to disk, or feed it into another tool. You’re debugging a tool’s behavior without an MCP client in the loop.Use the MCP server when…
An AI agent (Claude, ChatGPT, Cursor) should choose the tool and fill in arguments. You want natural-language access — “ask 50 SaaS founders which tagline wins” — rather than typed flags.
USERINTUITION_API_KEY, and run the same input validation. Only the transport changes.
Install
The CLI is the same binary as the MCP server. Install it once vianpm, or run it on demand with npx:
Commands
List every tool
Describe a tool
--flag names and the descriptions attached to each argument.Passing input
For tools with a handful of scalar arguments,--key value is the easiest form. For tools with nested objects or long inputs, pass the whole payload as JSON.
Inline flags
JSON payload (inline)
JSON payload (from a file)
Prefix the path with@:
--input-json is provided, all other --flag arguments are ignored.
Output
Everycall writes the tool’s text response to stdout — typically JSON, the same payload an MCP client would receive. Errors are also JSON-shaped ({"error": "…"}) so success and failure parse identically. Pipe into jq for scripting:
Examples
Cost preview in CIExit codes
| Code | Meaning |
|---|---|
0 | Tool ran. The response (which may itself be a {"error": …} from the backend) is on stdout. |
2 | CLI usage error — unknown subcommand, unknown tool name, or input failed schema validation. |
1 | Unhandled crash (binary failed to start). |
Configuration
The CLI honors the same environment variables as the MCP server’s stdio mode:| Variable | Required | Description |
|---|---|---|
USERINTUITION_API_KEY | Yes | Your API key, prefixed with ui_sk_. |
BACKEND_URL | No | Override the backend API URL. Defaults to https://api.userintuition.ai. |
Next steps
MCP server
Use the same binary as an MCP server so AI agents can call these tools through natural language.
API reference
For Python-first scripting, hit the REST API directly — every CLI tool maps to an underlying endpoint.

