# MCP

{% hint style="warning" %}
MCP features are advanced features. Make sure you're comfortable building workflows in Relay.app first.
{% endhint %}

Relay.app lets you connect with other AI tools through the [Model Context Protocol](https://modelcontextprotocol.io/overview) (MCP) in three ways:

1. **You can create MCP Servers in Relay.app to use in other AI products (like Claude and Cursor)**\
   \&#xNAN;*This is a great way to enable these products to perform specific actions in apps you've connected in Relay.app, like your CRM, Bug Tracker or Task list.*
2. **Connect Agent steps in Relay.app with remote MCP servers**\
   \&#xNAN;*Note: currently only Agents using Anthropic Claude models can connect to remote MCP servers*
3. **Call specific tools MCP in remote MCP servers from within your Relay.app workflows**

### **1. Creating MCP Servers in Relay.app**

To create an MCP Server in Relay.app, click 'MCP Server' in the Trigger menu. This will replace the current workflow with the MCP Server configuration interface.

<div align="left"><figure><img src="/files/Nd1IuGvmNtlk1rn2J9UE" alt="" width="563"><figcaption></figcaption></figure></div>

#### Example MCP server in Relay.app

The MCP server below exposes 1 tool: '**Create Task in Asana**'. The tool has 1 action inside it, to create a task in Asana.

<figure><img src="/files/a4emk22G6iyjuS1qejyw" alt=""><figcaption></figcaption></figure>

#### Example of a Relay.app MCP server in action in Claude

<figure><img src="/files/LQEJEgE0xgASr5JuOXLB" alt=""><figcaption></figcaption></figure>

### 2. Connect Agent steps in Relay.app with a remote MCP server

To connect your AI Agent steps in Relay.app with a remote MCP server, click '+Tool' and add a new MCP server from the 'Remote MCP' submenu.

Note: this currently only works when using Anthropic Claude models.

<div align="left"><figure><img src="/files/fZ0VSB9zcP8nC6Jnx9Z0" alt="" width="563"><figcaption></figcaption></figure></div>

### 3. Call a specific remote MCP tool within your workflow

Inside the 'AI' menu, you'll find a 'Call MCP tool' step that lets you invoke a specific tool from a connected remote MCP server as part of the workflow.

<div align="left"><figure><img src="/files/aP0hG8YLOe1Dy4LemC0p" alt="" width="563"><figcaption></figcaption></figure></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.relay.app/ai/mcp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
