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

# Using Cursor with oleander

> Configure the oleander MCP server in Cursor

## Overview

Use the remote oleander MCP server in Cursor to connect your assistant workflows directly to oleander.

<img src="https://mintcdn.com/oleander/dR2FmDT3M2RfaFg0/images/mcp-cursor.png?fit=max&auto=format&n=dR2FmDT3M2RfaFg0&q=85&s=af45bc8cf8aefe18126f43006f8a6083" alt="Cursor MCP configuration" width="1920" height="1080" data-path="images/mcp-cursor.png" />

> Beta: MCP integration docs and workflow may change.

## Prerequisites

* Cursor installed

## Add the MCP server

### Option 1: Agent CLI

Add the server:

```bash theme={null}
agent mcp add oleander -- npx -y mcp-remote https://oleander.dev/mcp
```

When prompted, complete the OAuth flow in your browser to authorize access.

### Option 2: `.cursor/mcp.json`

You can also add the server directly in your workspace config:

```json theme={null}
{
  "mcpServers": {
    "oleander": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://oleander.dev/mcp"
      ]
    }
  }
}
```

If you already have other MCP servers configured, add only the `oleander` entry under `mcpServers`.

## Verify

List configured MCP servers to confirm `oleander` was added:

```bash theme={null}
agent mcp list
```

## Reset authentication

Cursor caches the OAuth access token and refresh token in `.mcp-auth`.

If you want to authenticate with a different org, remove the cached tokens and run the MCP command again:

```bash theme={null}
rm -rf .mcp-auth
```
