# Cursor

> Add your Plugsight MCP server to Cursor, with a browser sign-in or an API key, and reload it after adding a new type of account.

Cursor can use your Plugsight accounts inside your editor, for example to build a dashboard or script from real numbers.

## What you need

- Cursor.
- A Plugsight MCP server and its **Server URL**. On the server's page in Plugsight, the steps under **Connect an AI app** → **Cursor & other MCP apps** show the settings with your server's URL and name already filled in.

In the examples below, replace `work` with your server's name in lowercase, with dashes instead of spaces, and replace the URL with your **Server URL**.

## Connect Cursor

1. In Cursor, open **Customize** → **MCPs** → **Add New MCP Server**. Or edit the file `~/.cursor/mcp.json` (or `.cursor/mcp.json` in a project).
2. Add your server. With a browser sign-in, the URL is all it needs:

   ```json
   {"mcpServers": {"work": {"url": "https://app.plugsight.app/mcp/YOUR_SERVER_ID"}}}
   ```

3. Save. If a browser window opens, sign in to Plugsight, check the server name and click **Allow access**.
4. Ask Cursor's agent to list your connected accounts.

## Connect with an API key instead

Use this if the sign-in window doesn't work for you.

1. In Plugsight, open your MCP server's page.
2. Under **API key**, click **Create API key** and copy the key. It isn't shown again.
3. Use this configuration, replacing `YOUR_KEY` with the key:

   ```json
   {"mcpServers": {"work": {"url": "https://app.plugsight.app/mcp/YOUR_SERVER_ID", "headers": {"Authorization": "Bearer YOUR_KEY"}}}}
   ```

To keep the key out of the file, you can store it in an environment variable called `PLUGSIGHT_API_KEY` and use:

```json
{"mcpServers": {"work": {"url": "https://app.plugsight.app/mcp/YOUR_SERVER_ID", "headers": {"Authorization": "Bearer ${env:PLUGSIGHT_API_KEY}"}}}}
```

> [!WARNING]
> Anyone with the key can use this MCP server's accounts. Don't commit it to a shared repository. If it leaks, use **Regenerate key** or **Revoke key** on the server's page.

## Refresh after adding a new type of account

After you connect the first account of a new type (your first Zendesk, say):

1. Open **Cursor Settings** → **Tools & MCP**.
2. Switch your server off and on again.
3. Still the old list? Run **Developer: Reload Window** from the command palette, or quit and reopen Cursor.

See [Refresh the tools list](https://docs.plugsight.app/ai-apps/refresh-tools.md).

## Troubleshooting

### No browser window opens

**What it means:** Cursor didn't start the sign-in.

**How to fix it:** connect with an API key instead (above).

### It stopped working after I regenerated or revoked the key

**What it means:** the old key stopped working straight away.

**How to fix it:** create a new key on the server's page and put it in your configuration.

### This connector points at an MCP server that isn't in your account.

**What it means:** the browser is signed in to a different Plugsight account from the one that created the server.

**How to fix it:** click **Switch account** on the approval screen and sign in with the right account.

## Related articles

- [VS Code](https://docs.plugsight.app/ai-apps/vs-code.md)
- [Other MCP apps](https://docs.plugsight.app/ai-apps/other-apps.md)
- [Claude Code](https://docs.plugsight.app/ai-apps/claude-code.md)

---

Web version: https://docs.plugsight.app/ai-apps/cursor
