Loops MCP, CLI, and Lua Integration for AI Agents
Loops integration docs for AI agents: MCP gateway setup, Loops CLI commands, Lua API reference, credentials, and function schemas.
6 functions 3 read 3 write API key auth
Loops for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
loops- route_slug
loops- package
loops- auth_strategy
api_keyAPI key- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Loops CLIHeadless setup and direct function calls. Loops MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Loops MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Loops.
Claude Code Loops MCP setup for Claude Code. Cursor Loops MCP setup for Cursor. Codex Loops MCP setup for Codex. OpenAI Agents Loops MCP setup for OpenAI Agents SDK. Claude Agent SDK Loops MCP setup for Claude Agent SDK. Vercel AI SDK Loops MCP setup for Vercel AI SDK. LangChain Loops MCP setup for LangChain. LangGraph Loops MCP setup for LangGraph. CrewAI Loops MCP setup for CrewAI. MCP clients Loops MCP setup for Generic MCP Clients.
Loops CLI Matrix
Use these pages for direct Loops CLI workflows in scripts, CI, cron, and agent wrappers.
CI Loops CLI for CI. Cron Jobs Loops CLI for cron jobs. Shell Scripts Loops CLI for shell scripts. Headless Automation Loops CLI for headless automation. Coding Agents Loops CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
loops.loops_list_contacts | Read read | 2 | List contacts from Loops with pagination. Returns contact records including email, name, and custom properties. |
loops.loops_get_contact | Read read | 1 | Get a single contact from Loops by their unique contact ID. Returns full contact details including email, name, and custom properties. |
loops.loops_create_contact | Write write | 3 | Create a new contact in Loops. Requires an email address. Optionally include first and last name. |
loops.loops_update_contact | Write write | 5 | Update an existing contact in Loops. Provide the contact ID and the fields to update (e.g., email, first_name, last_name, or custom properties). |
loops.loops_send_event | Write write | 3 | Send a custom event to Loops for a contact identified by email. Events can trigger automations and loops in your Loops account. |
loops.loops_get_current_user | Read read | 0 | Get the currently authenticated Loops user. Use this to verify the API connection and see account details. |