> ## Documentation Index
> Fetch the complete documentation index at: https://help.notis.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Coding Agents (via Cursor)

> Learn how to turn any API into an MCP server using Ogment.ai, then connect it to Notis. This guide walks you through connecting Cursor's background agents to your favorite messaging apps—Telegram, WhatsApp, iMessage, Slack, and more.

<iframe src="https://www.youtube.com/embed/oqPwcUWA3qw" title="Coding Agents (via Cursor)" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen style={{ width: "100%", aspectRatio: "16 / 9" }} />

Cursor has an API for managing background agents—but they haven't created an MCP server you can easily connect to Claude, Notis, or other AI tools.

In this guide, we'll use [Ogment.ai](http://Ogment.ai) to turn Cursor's API into an MCP server, then connect it to Notis. The result? Access to your Cursor background agents directly from Telegram, iMessage, WhatsApp, Slack, and email.

**Setup time:** \~5 minutes

## What you'll need

* A Cursor account with API access

* An [Ogment.ai](http://Ogment.ai) account (free to create)

* Notis with MCP support enabled

## Step 1: Get your Cursor API key

1. Go to your Cursor dashboard

2. Navigate to **Integrations**

3. Click **New User API**

4. Enter a name and copy the API key

## Step 2: Encode your API key

In your terminal, run a Base64 encoding on your API key:

```bash theme={null}

echo -n "your-api-key" | base64

```

Save the resulting encoded key—you'll need it in the next step.

## Step 3: Create the MCP server in Ogment

1. Create an account at [Ogment.ai](http://Ogment.ai)

2. Click **Add Server**

3. Paste the URL of Cursor's OpenAPI spec ([https://cursor.com/docs-static/cloud-agents-openapi.yaml](https://cursor.com/docs-static/cloud-agents-openapi.yaml))

4. Click **Import API**

Ogment will detect the available endpoints and bundle them into your MCP.

1. Click **Next**

2. Set up authentication:

* Select **Authorization Header**

* Enter: `Basic YOUR_ENCODED_API_KEY` (replace with your Base64-encoded key from Step 2)

1. Click **Run Test** — you should see a green success message

2. Click **Create MCP**

You've just created an MCP server with access to all your Cursor background agents.

## Step 4: Connect the MCP to Notis

1. In Ogment, go to **Config** and copy the URL of your MCP server

2. Head to the Notis portal → **Integrations**

3. Click **Add a new MCP**

4. Configure it:

* **Name:** Cursor

* **Instructions:** Describe when this MCP should be used (e.g., "Use this when investigating a bug")

* **URL:** Paste your Ogment MCP server URL

1. Click the OAuth button to connect

2. Select or deselect the tools you want enabled

3. Click **Save**

## You're done!

You now have access to your Cursor background agents directly from:

* Telegram

* iMessage

* WhatsApp

* Slack

* Email

<Tip>
  This same approach works for **any API** with an OpenAPI spec. Ogment turns it into an MCP server, and Notis gives you access from anywhere.
</Tip>
