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

# Using Cursor

# Using Cursor with Marrow

Use Cursor when you want a coding workspace that can read your synced Marrow store and ad data through MCP.

## Prerequisites

* At least one data source connected in [Integrations](../Marrow%20Basics/Features/Integrations.md) and syncing in [Data Explorer](../Marrow%20Basics/Features/Data%20Explorer.md)
* [Cursor](https://cursor.com) installed and signed in
* An MCP key from [AI Platforms](../Marrow%20Basics/Features/AI%20Platforms.md)

## Step 1: Get Marrow credentials

From **AI Hub → AI Platforms**:

* MCP server URL: `https://mcp.marrow.ai/mcp/v1`
* Create an **MCP key** and copy it (shown only once)

See also: [MCP overview](./MCP.md)

## Step 2: Add the Marrow MCP server

Create or edit `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project):

```json theme={null}
{
  "mcpServers": {
    "marrow": {
      "url": "https://mcp.marrow.ai/mcp/v1",
      "headers": {
        "Authorization": "Bearer ${env:MARROW_MCP_KEY}"
      }
    }
  }
}
```

Set `MARROW_MCP_KEY` in your shell profile or system environment to the key from AI Platforms. Cursor resolves `${env:...}` when it loads the config.

You can also open **Cursor Settings → Tools & MCP → New MCP Server** and paste the same JSON.

## Step 3: Reload Cursor

Restart Cursor, or reload the window, so it loads the new MCP server. Confirm **marrow** appears under MCP tools.

## Step 4: Test the connection

In Agent chat:

```
Show me my Amazon Seller sales for the last 7 days.
```

If Cursor returns real data from your synced accounts, you are connected.

## Tips

* Prefer environment variables over hard-coding keys in `mcp.json`, especially in project configs that may be committed.
* Project `.cursor/mcp.json` overrides the same server name in the global file.
* After rotating a key in Marrow, update `MARROW_MCP_KEY` and reload Cursor.

## Security

* Marrow is **read-only** — it never posts or changes store/ad settings.
* Treat MCP keys like passwords; revoke or rotate them from AI Platforms anytime.

## Related

* [MCP overview](./MCP.md)
* [AI Platforms](../Marrow%20Basics/Features/AI%20Platforms.md)
* [Skills](../Marrow%20Basics/Features/Skills.md)
