Reference
MCP
An assistant calls the same integration operations through qi-mcp: the same key, the same endpoints and the same client as the CLI.
Setup
Point Claude Desktop, Claude Code or Cursor at the qi-mcp command, installed with the CLI. Credentials travel in the process environment, not in a flag.
{
"mcpServers": {
"qi": {
"command": "qi-mcp",
"env": { "QI_API_KEY": "sk_live_…" }
}
}
}That file holds your API key: do not commit it. If your client has a secret store or reads environment variables, use that instead.
Then ask in plain language, for example: how many conversations were analysed last week? The model picks the tool, fills in the dates and calls it.
Tools
The server exposes six tools. When one fails, the error comes back as tool content, so the model can read it, fix the arguments and try again.
qi_list_interactions
Lists conversations already analysed, newest first. Returns one page: read total_records before assuming it is all.
Input: limit (1 to 200, default 10), page (from 0), from and to (ISO dates, together), source_type (audio or text; default audio).
qi_list_interactions({ limit: 10, page: 0, from: "2026-09-01", to: "2026-09-08", source_type: "audio" })qi_get_interaction
The detail of one conversation by id: status per stage, dialogue or transcript, form answers and, for a bot, its evaluation. A stage still pending means results are not there yet.
Input: id: the _id qi_list_interactions returns.
qi_get_interaction({ id: "65f0a1b2c3d4e5f6a7b8c9d0" })qi_list_forms
The account's forms, with the key an upload uses to be evaluated against each one.
Input: type, optional: audio, text or bot.
qi_list_forms({ type: "audio" })qi_usage
Plan (modules, channels and limits), period, QI token balance and consumption in the period. Useful before a large upload, or to know whether the plan includes Bot Analytics.
Input: None.
qi_usage({})qi_upload_audio
Uploads recordings from local paths to be transcribed and analysed. A successful upload means they were accepted and queued, not that results exist.
Input: paths: one or more paths on this machine.
qi_upload_audio({ paths: ["./calls/call-001.mp3"] })qi_upload_text
Uploads already transcribed conversations (.txt, .csv or .json) from local paths. The same asynchronous analysis, without the transcription stage.
Input: paths: one or more paths on this machine.
qi_upload_text({ paths: ["./chats/chat-001.csv"] })