> For the complete documentation index, see [llms.txt](https://docs.raybot.app/start/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.raybot.app/start/dev/raybot-ai-agent.md).

# RayBot × AI Agent

Manage RayBot with Claude, Cursor, or any MCP app

## RayBot MCP URL

```
https://mcp.raybot.app/mcp
```

**Try this after connecting:** “Which RayBot account is connected?”

**More things you can ask**

* “Where does RayBot send my alerts?”
* “In my Alpha group, only alert me about Solana buys of 5 SOL or more.”
* “Alert me when three wallets tagged Smart Money buy the same token within 10 minutes.”

## Setup guides by app

|                                 |                                   |                                                             |
| ------------------------------- | --------------------------------- | ----------------------------------------------------------- |
| [ChatGPT](#chatgpt)             | [Claude](#claude)                 | [Grok](#grok)                                               |
| [Google Gemini](#google-gemini) | [Cursor](#cursor)                 | [VS Code with GitHub Copilot](#vs-code-with-github-copilot) |
| [Codex CLI](#codex-cli)         | [Codex IDE](#codex-ide-extension) | [Claude Code](#claude-code)                                 |

> **What you’re granting:** A connected app can read and change your RayBot tracking setup. Review the permissions before selecting **Allow**. See [Available tools](#available-tools) for what the app can do.

## Set up RayBot

Menu names can vary by app version or workspace.

### ChatGPT

1. Open **Plugins** in ChatGPT on the web.
2. Select **+** → **Add custom MCP server**.
3. Name it **RayBot**, enter `https://mcp.raybot.app/mcp`, and choose **OAuth** when asked for the authentication method.
4. Review the warning, select **I understand and want to continue**, and then select **Create as a plugin**.
5. Install RayBot from your plugins and complete the RayBot sign-in. In a new chat, type `@` and select RayBot.

[ChatGPT setup guide](https://developers.openai.com/api/docs/guides/custom-mcp-server)

#### Codex CLI

Run these commands in your terminal and complete the browser sign-in:

```bash
codex mcp add raybot --url https://mcp.raybot.app/mcp
codex mcp login raybot
```

Start a new Codex CLI session. [Codex CLI MCP guide](https://learn.chatgpt.com/docs/extend/mcp?surface=cli)

#### Codex IDE extension

1. Open **Plugins** in the left sidebar of the Codex IDE extension.
2. Select **Add** → **Add custom MCP server**.
3. Name it **RayBot** and enter `https://mcp.raybot.app/mcp`.
4. Follow the sign-in prompts. When the RayBot authorization page opens, sign in if needed and select **Allow**.
5. Return to the Codex extension and open a new chat.

### Claude

1. In the Claude sidebar, open **Plugins** → **Connectors** → **Add custom connector**.
2. Name the connector **RayBot**, enter `https://mcp.raybot.app/mcp`, and continue.
3. Select **Connect** if prompted. When your browser opens the RayBot authorization page, sign in if needed, then select **Allow** to grant Claude access.
4. Return to Claude and open a new chat.

If you’re in a team workspace and can’t add a connector, ask your workspace admin to add RayBot. [Claude Plugins guide](https://support.claude.com/en/articles/17740565-manage-plugins-skills-and-connectors-from-one-plugins-page)

#### Claude Code

Run this command, then open Claude Code and use `/mcp` to sign in.

```bash
claude mcp add --scope user --transport http raybot https://mcp.raybot.app/mcp
```

[Claude Code MCP guide](https://code.claude.com/docs/en/mcp)

### Grok

1. On [Grok](https://grok.com), open your profile menu, then select **Settings** → **Connected Apps**.
2. Scroll to the bottom of the list and select **Add a custom connector**.
3. Enter **RayBot** as the MCP name and `https://mcp.raybot.app/mcp` as the MCP server URL.
4. Follow the RayBot sign-in prompts, then return to Grok.

On Grok Business and Enterprise, a team admin needs to add the connector before team members can use it. [Grok connector guide](https://docs.x.ai/grok/connectors)

### Google Gemini

1. In Gemini on the web, open **Customize** → **Connectors**.
2. Select **Add custom** or **Create custom app**, depending on what Gemini shows.
3. In **MCP Server URL**, enter `https://mcp.raybot.app/mcp` and select **Next**.
4. Review the connection details, confirm your choice, and select **Connect**. Follow the RayBot sign-in prompts.
5. In a chat, type `@` and select RayBot.

Custom apps require a personal Google Account, English, and **Keep Activity** turned on. You must be at least 18 and in the US. [Gemini custom apps guide](https://support.google.com/gemini/answer/17209137)

### Cursor

1. Open or create `~/.cursor/mcp.json` and add RayBot. If you already have servers configured, add the `raybot` entry inside the existing `mcpServers` object.

   ```json
   {
     "mcpServers": {
       "raybot": {
         "url": "https://mcp.raybot.app/mcp"
       }
     }
   }
   ```
2. Save the file and restart Cursor. Open **Customize** → **MCPs** and sign in when prompted.

[Cursor MCP guide](https://cursor.com/docs/mcp)

### VS Code with GitHub Copilot

1. In VS Code, open the Command Palette and run **MCP: Add Server**.
2. Select **HTTP**.
3. Enter `https://mcp.raybot.app/mcp` as the server URL.
4. Enter `raybot` as the server name.
5. Select **Global**.
6. Follow the sign-in prompts, then open Copilot Chat.

[VS Code MCP guide](https://code.visualstudio.com/docs/agent-customization/mcp-servers)

<sub>For local installation, see</sub> [<sub>Advanced setup with an API key</sub>](#advanced-setup-with-an-api-key)<sub>.</sub>

## Manage access

1. Open [RayBot on the web](https://raybot.app/) and sign in with the same account you connected to your AI app.
2. Click your profile icon in the top-right corner of the dashboard and choose **Account**.
3. Select **Connected Apps** to see which apps have access to your RayBot account.
4. To disconnect an app, select **Revoke** next to its name.

To clear the connector from your AI app’s list, remove it there too.

## Advanced setup with an API key

This local MCP setup still works, but we plan to stop supporting it. For new connections, use the MCP URL above and sign in to RayBot.

You’ll need [Node.js 20 or newer](https://nodejs.org/) and your **API USER** and **API KEY** from the `/api` command in RayBot. Treat your API key like a password. An app with the key can read and change your RayBot account.

### Local configuration for Claude Desktop or Cursor

1. In Claude Desktop, open **Settings** → **Developer** → **Edit Config** to open `claude_desktop_config.json`. In Cursor, open or create `~/.cursor/mcp.json`.
2. Add the `raybot` entry below to your `mcpServers` configuration and replace both placeholders with your credentials.

   ```json
   {
     "mcpServers": {
       "raybot": {
         "command": "npx",
         "args": ["-y", "raybot-mcp"],
         "env": {
           "RAYBOT_API_USER": "YOUR_API_USER",
           "RAYBOT_API_KEY": "YOUR_API_KEY"
         }
       }
     }
   }
   ```
3. Save the file and fully restart the app.

### Local configuration for Claude Code

Replace the placeholders with your credentials, then run:

```bash
claude mcp add --scope user --env RAYBOT_API_USER=YOUR_API_USER --env RAYBOT_API_KEY=YOUR_API_KEY raybot -- npx -y raybot-mcp
```

Run `claude mcp list` and look for `raybot` with the status **Connected**.

If local setup reports a missing environment variable, check that both `RAYBOT_API_USER` and `RAYBOT_API_KEY` are set. The optional `RAYBOT_API_URL` changes the API address. [raybot-mcp on npm](https://www.npmjs.com/package/raybot-mcp), [official local MCP setup guide](https://modelcontextprotocol.io/docs/develop/connect-local-servers)

## Available tools

**👤 Account**

* `get_account` — the connected account, its status, and how many daily notifications each destination has used

**👀 Wallets**

* `list_wallets` — tracked wallets: name, chain, status
* `add_wallets` — start tracking up to **10 wallets** per request
* `remove_wallets` — stop tracking wallets; alerts stop immediately
* `get_wallet_settings` — a wallet’s alert settings: transaction types, filters
* `update_wallet_settings` — change a wallet’s alert filters

**📥 Destinations**

* `list_destinations` — all destinations (bot, group, Discord, webhook), including those with no wallets attached
* `get_destination_settings` — a destination’s general filters, buttons, links, and thresholds
* `update_destination_settings` — change a destination’s general settings

**🆕 Multi Wallet presets**

Alerts when several tracked wallets buy the same token.

* `list_multiwallet_presets` — list presets
* `get_multiwallet_preset` — view a preset
* `create_multiwallet_preset` — create a preset
* `update_multiwallet_preset` — update a preset
* `delete_multiwallet_preset` — permanently delete a preset

**📈 Accumulation presets**

Alerts when buys within a set time window reach a USD threshold.

* `list_accumulation_presets` — list presets and available settings
* `get_accumulation_preset` — view a preset
* `create_accumulation_preset` — create a preset
* `update_accumulation_preset` — update only the specified fields; everything else stays the same
* `delete_accumulation_preset` — permanently delete a preset

**🏷 Tags**

* `list_tags` — all tags, including unused ones
* `create_tags` — create tags by name (if a tag already exists, it’s returned)
* `set_wallet_tags` — set a wallet’s full tag list (the old list is **replaced**)

**🔗 Webhooks**

* `list_webhooks` — webhooks: URL, status, error count, number of linked wallets
* `get_webhook` — view a webhook
* `create_webhook` — create a webhook (RayBot sends a test request right away)
* `update_webhook` — rename, change the auth header, pause, or resume
* `test_webhook` — send a test request and show the HTTP status and latency
* `delete_webhook` — delete a webhook and **stop tracking all wallets linked to it**

**💬 Feedback**

* `send_feedback` — send feedback to the RayBot team

> Before deleting a preset, removing a wallet or webhook, or replacing tags, ask your agent to show exactly what will change.

## Need help?

[Chat with RayBot Support on Telegram](https://t.me/ray_help_bot). Tell us which AI app you’re using, which step you reached, and what you saw. Keep API keys and sign-in codes out of your message.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.raybot.app/start/dev/raybot-ai-agent.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
