> ## Documentation Index
> Fetch the complete documentation index at: https://www.cashfree.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Relay MCP Server

> Connect your AI agent to the Cashfree Relay MCP server to create, edit, activate, and monitor payment workflows using natural-language prompts.

The Cashfree Relay MCP server exposes Relay's workflow capabilities to AI agents using the MCP. Once connected, you can create, update, activate, and monitor workflows directly from your AI agent using plain language, without opening the Relay dashboard.

<Tip>
  For the best results, use the Relay MCP server with **Claude**. Claude provides the most reliable tool-calling behaviour and is the recommended AI client for Relay MCP integrations.
</Tip>

## Prerequisites

Before setting up the Relay MCP server, ensure you meet the following requirements:

* A valid **Cashfree Merchant account** with access to Relay. You must sign in with an **owner account**. User accounts do not have the permissions required to connect to the Relay MCP server.
* Access to a supported AI client: **Claude Desktop** or **ChatGPT** (Plus plan or higher).

## How MCP works

The Relay MCP server uses the Model Context Protocol to expose Relay's workflow capabilities as tools that your AI agent can call directly. When you connect the MCP server to your AI client, the agent gains access to a set of tools for creating, updating, and monitoring workflows. You interact with these tools using plain language and the agent translates your instructions into the appropriate tool calls automatically.

To connect the Relay MCP server, you provide your AI client with the following server URL and authenticate with your Cashfree owner account.

```
https://mcp.cashfree.com/wfcd-mcp/mcp
```

The steps to connect differ slightly depending on the AI client you use. Follow the instructions for your preferred client below.

## Connect the MCP server

<Tabs>
  <Tab title="Claude Desktop">
    <Steps>
      <Step title="Open Customise and Connectors">
        1. Log in to the **Claude Desktop** application.
        2. In the left navigation, go to **Customise**.
        3. Select **Connectors**.
        4. Click the **+** icon to add connectors, then choose **Add custom connectors**.
      </Step>

      <Step title="Add the Relay MCP connector">
        1. In **Add custom connector**, enter a **name** for the connector (any name you prefer).
        2. In the **MCP Server URL** field, enter the following URL.

        ```
        https://mcp.cashfree.com/wfcd-mcp/mcp
        ```

        3. Click **Add**.
      </Step>

      <Step title="Connect and sign in to Cashfree">
        1. Click **Connect**.
        2. You are redirected to the **Cashfree Merchant Dashboard**, where you sign in or authenticate with your owner account.
        3. Complete the flow and return to Claude. When the connector is connected, Relay MCP tools are available in your Claude session.
      </Step>
    </Steps>

    <Note>
      The Claude Desktop integration is not available in the Claude web app. You must use the desktop application. Whether connector access requires a paid Claude plan depends on Anthropic's current policy; check your Claude account if connection is blocked.
    </Note>
  </Tab>

  <Tab title="ChatGPT">
    <Note>
      ChatGPT support for the Relay MCP server is coming soon. This section will be updated when the integration is available.
    </Note>
  </Tab>
</Tabs>

## Available tools

The Relay MCP server exposes the following tools to your AI agent. These tools are invoked automatically when you use [Relay Skills](/tools-ai/relay/skills) or issue relevant instructions in plain language.

### Workflows and templates

| Tool                        | Description                                                                           |
| --------------------------- | ------------------------------------------------------------------------------------- |
| `list_workflows`            | Lists workflows in your Relay account, including names, IDs, and status.              |
| `create_workflow`           | Creates a new workflow with a given name and initial configuration.                   |
| `update_workflow`           | Updates an existing workflow's configuration, including trigger, nodes, and settings. |
| `set_workflow_status`       | Activates or deactivates a workflow without changing its configuration.               |
| `list_workflow_versions`    | Returns the version history of a workflow.                                            |
| `get_workflow_template`     | Retrieves a specific workflow template for use when building workflows.               |
| `search_workflow_templates` | Searches available workflow templates to find a suitable template.                    |

### Execution and testing

| Tool                    | Description                                                               |
| ----------------------- | ------------------------------------------------------------------------- |
| `test_workflow_from_ui` | Runs a workflow test from the UI-oriented flow to validate configuration. |
| `list_executions`       | Returns execution history for workflows, including status and timestamps. |

### Connections and credentials

| Tool                | Description                                                                                                          |
| ------------------- | -------------------------------------------------------------------------------------------------------------------- |
| `list_credentials`  | Lists configured connections in your Relay account; can filter by app name (for example `gmail` or `google-sheets`). |
| `create_credential` | Creates a new connection to an external app or service in Relay.                                                     |

### Nodes and triggers

| Tool                   | Description                                                                          |
| ---------------------- | ------------------------------------------------------------------------------------ |
| `list_nodes`           | Lists node types that can be added to a workflow.                                    |
| `get_node_actions`     | Returns the actions available for a given node (for example Gmail or Google Sheets). |
| `test_action_node`     | Tests a configured action node with sample data before you rely on it in production. |
| `resolve_node_options` | Resolves dynamic dropdown options for a node field, such as available spreadsheets.  |
| `list_triggers`        | Lists available trigger types, including schedule-based and event-based options.     |

### Data fetchers

| Tool                          | Description                                                                                                      |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `list_data_fetcher_templates` | Lists input data templates for schedule-based triggers (for example Failed Transactions or Transaction Summary). |
| `test_data_fetcher`           | Previews the data a fetcher template returns before attaching it to a trigger.                                   |

## What's next

<CardGroup cols={2}>
  <Card title="Relay Skills" icon="wand-magic-sparkles" href="/tools-ai/relay/skills">
    Use pre-built skills to create common workflows instantly using plain language.
  </Card>

  <Card title="Create a workflow" icon="plus" href="/tools-ai/relay/create-workflow">
    Build a workflow manually using the Relay canvas.
  </Card>
</CardGroup>
