Loop Returns MCP Server (Preview)
OVERVIEW
The Loop Returns MCP server lets you connect your AI assistant — like Claude, Cursor, or ChatGPT — directly to your Loop data. Once connected, your assistant can search returns, take actions, read policies, and manage workflows without leaving the conversation. This article covers how to connect, what tools are available, and what to expect from this early-access preview. Authentication uses OAuth 2.1 with PKCE — no API keys or secrets to manage.
Use the menu on the left to quickly navigate this article.
How to connect
Your MCP server URL is:
https://api.loopreturns.com/mcpOption A: Through the Claude UI (recommended)
In Claude Desktop or claude.ai, go to Settings → Connectors, click Add, and enter the server URL above. Claude handles the OAuth flow automatically — you'll be prompted to log in with your Loop admin credentials the first time.
Option B: Through the developer config file
If you add the server to your claude_desktop_config.json directly, use mcp-remote as a bridge (Claude does not yet support OAuth natively in that path):
{
"mcpServers": {
"loop-returns": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.loopreturns.com/mcp"]
}
}
}Node.js is required. On first use, mcp-remote will open a browser window to complete the OAuth login.
Connecting from Cursor
Open your MCP configuration (Settings → MCP or your project's .cursor/mcp.json) and add:
{
"mcpServers": {
"loop-returns": {
"url": "https://api.loopreturns.com/mcp"
}
}
}Cursor will open a browser window for authentication when the server is first accessed.
Supported clients
Client | How it connects |
|---|---|
Claude (claude.ai / Desktop) | Native via UI, or |
Cursor | Native OAuth via |
VS Code (GitHub Copilot) | Native OAuth via |
ChatGPT | Native OAuth via web redirect |
Localhost clients | Any client that redirects to |
If your client isn't listed, let us know — the server implements standard OAuth 2.1 discovery via /.well-known/oauth-authorization-server, so adding new clients is straightforward.
A note on multiple shops
When you log in, you select which shop to connect to. Your session is scoped to that shop. To switch shops, log out of the MCP server and re-authenticate, selecting a different shop during login. We're aware this flow can be cumbersome for multi-shop merchants and are working on improvements.
What you can do
The MCP server currently provides 22 tools across several categories.
Return management
Reading return data
Tool | What it does |
|---|---|
List Returns | Search and browse returns with filters (status, date range, flagged, etc.), pagination, and sorting. Supports the same searchable fields as Loop Admin: order name, email, tracking number, SKUs, carrier, RMA code, and more. |
Get Return | Pull the full detail of a specific return, including line items, resolutions (refund, exchange, store credit), shipping info, and current status. |
Get Return Timeline | See the complete event history for a return, from creation through resolution. |
Taking action on returns
Tool | What it does |
|---|---|
Add Note | Attach an internal note to a return. Useful for automated triage or documentation workflows. |
Flag / Unflag | Flag a return for manual review (with optional QC reasons and comments) or clear an existing flag. |
Reject | Reject a return with an optional reason. |
Cancel | Cancel a return. |
Close | Close a return without triggering Shopify actions. |
Process | Process a return, triggering the full refund/exchange/credit flow. |
Fraud management
Tool | What it does |
|---|---|
List Fraud Categories | Retrieve the available fraud report categories for your shop. |
Report Fraud | File a fraud report against a specific return with a category and comment. |
Allowlist and blocklist
Tool | What it does |
|---|---|
List / Add / Remove Allowlist | Manage allowlist entries by email or order. |
List / Add / Remove Blocklist | Manage blocklist entries by email, order, product, or product tag. |
Shop and policy
Tool | What it does |
|---|---|
Get Shop Info | Retrieve your shop's configuration and details. |
Read Return Policies | Pull your current return policy rules. |
Workflows (experimental)
Tool | What it does |
|---|---|
List Workflows | See all your workflows with pagination and active/inactive filtering. |
Get Workflow | Pull the full details of a specific workflow. |
Note: Workflow tools are exploratory. We're curious whether you find them useful and what other configuration or automation capabilities you'd want accessible through AI.
Generative UI
Some MCP clients — notably Claude — support Generative UI, which means the assistant can render interactive visual components alongside its text responses. When you use return management tools through a supported client, you'll see rich cards, tables, status badges, and action buttons rendered inline in the conversation.
[SCREENSHOT: List Returns with Generative UI — structured table with key return columns]
[SCREENSHOT: Return Detail Card — line items, resolution info, and status badges]
[SCREENSHOT: Post-Action Confirmation — updated status and quick-navigation buttons]
Note: Generative UI is purely additive. Every tool returns structured data regardless of whether the client can display visual components. Automated agents, scheduled tasks, and text-only assistants all receive the full data payload — nothing is lost without the UI layer.
Technical details
Detail | Value |
|---|---|
Protocol | Model Context Protocol (MCP) |
Auth | OAuth 2.1 with PKCE (no client secret needed) |
Identity Provider | Auth0 |
Transport | HTTP (Streamable HTTP) |
Rate limit | 600 tool calls per hour per user |
Multi-tenant | Yes, scoped to your shop via OAuth |
If you run into any issues connecting, have ideas, or want to talk through use cases, please reach out to support@loopreturns.com.
