> ## 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.

# Overview

> Connect AI assistants to Loop Returns with the Loop MCP Server.

## What is the Loop MCP Server?

The Loop MCP Server is a [Model Context Protocol](https://modelcontextprotocol.io) server that lets AI assistants — Claude, Cursor, VS Code Copilot, ChatGPT, and Microsoft Copilot Studio — interact with the Loop Returns platform on a merchant's behalf. See [supported clients](https://docs.loopreturns.com/mcp/getting-started.md#supported-clients) for the full list.

Loop is listed in the Claude connector directory, so Claude users can add Loop without editing a config file. A Claude organization admin can enable Loop as an organization connector for the workspace.

Once a merchant connects their MCP client to Loop, the assistant can:

* Look up returns, orders, and policies
* Take actions on returns (reject, cancel, close, flag, process, add notes)
* Manage allowlist and blocklist entries
* Read workflow rules
* Report fraud and review fraud categories
* Render interactive return cards inside the assistant via Generative UI

All requests are authenticated via OAuth 2.1 (with PKCE) against the merchant's Loop account, and every tool call is gated by the same role-based permissions used in the Loop Admin.

## 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](https://docs.loopreturns.com/api-reference/getting-started.md) and [outgoing webhooks](https://docs.loopreturns.com/webhook-reference/getting-started.md) rather than replacing them:

| Surface | Best for |
| - | - |
| [REST API](https://docs.loopreturns.com/api-reference/getting-started.md) | Server-to-server integrations and bespoke applications |
| [Webhooks](https://docs.loopreturns.com/webhook-reference/getting-started.md) | Reacting to events as they happen |
| **MCP Server** | Letting an AI assistant operate Loop on a merchant's behalf |

## 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. **24 tools** are available today across seven groups:

| Group | Tools | Reference |
| - | - | - |
| Shop & Policy | Get shop info, read return policies | [Reference](https://docs.loopreturns.com/mcp/tools/shop-and-policy.md) |
| Returns — Read | List returns, get return details, get return timeline | [Reference](https://docs.loopreturns.com/mcp/tools/returns-read.md) |
| Returns — Actions | Add note, flag, unflag, reject, cancel, close, process | [Reference](https://docs.loopreturns.com/mcp/tools/returns-actions.md) |
| Fraud | List fraud categories, report fraud | [Reference](https://docs.loopreturns.com/mcp/tools/fraud.md) |
| Allowlist & Blocklist | List, add, and remove entries on either list | [Reference](https://docs.loopreturns.com/mcp/tools/allowlist-blocklist.md) |
| Workflows | List workflows, get workflow detail | [Reference](https://docs.loopreturns.com/mcp/tools/workflows.md) |
| Skills | List skills, load a skill | [Reference](https://docs.loopreturns.com/mcp/tools/skills.md) |

## 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](https://modelcontextprotocol.io/specification/draft/server/apps) render this spec into an interactive card with status badges and action buttons, so merchants can confirm what happened without leaving the chat.

## Built-in skills

To keep responses accurate, the server ships with **skills** — concise guides covering Loop's domain model (return states, outcomes, and the "Loops" vocabulary), how to present tool output, and how to handle fraud. They're surfaced to the client automatically. There is nothing to configure.

## Endpoint

The production MCP endpoint is:

```
https://api.loopreturns.com/mcp
```

OAuth discovery metadata is available at:

```
https://api.loopreturns.com/.well-known/oauth-protected-resource
https://api.loopreturns.com/.well-known/openid-configuration
```

## Next steps

> [card] [Get Started](https://docs.loopreturns.com/mcp/getting-started.md)
>
> Connect Claude, Cursor, or VS Code Copilot to the Loop MCP Server in a few minutes.

> [card] [Authentication](https://docs.loopreturns.com/mcp/authentication.md)
>
> Learn how OAuth 2.1 with PKCE keeps merchant data scoped to the right shop.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.