Documentation Index
Fetch the complete documentation index at: https://docs.loopreturns.com/llms.txt
Use this file to discover all available pages before exploring further.
The Loop MCP Server is currently in preview. Functionality and tool surfaces may change before general availability. Reach out to your Loop point of contact for access.
What is the Loop MCP Server?
The Loop MCP Server is a Model Context Protocol server that lets AI assistants — Claude, Cursor, VS Code Copilot, ChatGPT, and any other MCP-compatible client — interact with the Loop Returns platform on a merchant’s behalf. Once a merchant connects their MCP client to Loop, the assistant can:- Look up returns, orders, and policies
- Take actions on returns (approve, reject, cancel, close, flag, process, add notes)
- Manage allowlist and blocklist entries
- Read and write workflow rules
- Report fraud and review fraud categories
- Render interactive return cards inside the assistant via Generative UI
Why MCP?
The MCP server is the right fit when you want an assistant to act on Loop data conversationally — for example, “Show me the last 10 returns flagged for fraud and reject any from this email address.” It complements the REST API and outgoing webhooks rather than replacing them:Available tools
Tools are grouped by domain. Every tool enforces the merchant’s existing permissions — if the user can’t perform the action in the Loop Admin, the assistant can’t either. 22 tools are available today across six groups:| Group | Tools | Reference |
|---|---|---|
| Shop & Policy | Get shop info, read return policies | Reference |
| Returns — Read | List returns, get return details, get return timeline | Reference |
| Returns — Actions | Add note, flag, unflag, reject, cancel, close, process | Reference |
| Fraud | List fraud categories, report fraud | Reference |
| Allowlist & Blocklist | List, add, and remove entries on either list | Reference |
| Workflows | List workflows, get workflow detail | Reference |
Generative UI
When an assistant takes an action on a return — for example, processing or rejecting it — Loop returns a UI spec alongside the text response. MCP clients that support MCP Apps render this spec into an interactive card with status badges and action buttons, so merchants can confirm what happened without leaving the chat. The interactive shell is served as an MCP resource (ui://loop/returns-app) and is built on Vue 3.
Endpoint
The production MCP endpoint is:Next steps
Get Started
Connect Claude, Cursor, or VS Code Copilot to the Loop MCP Server in a few minutes.
Authentication
Learn how OAuth 2.1 with PKCE keeps merchant data scoped to the right shop.