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

# Cursor

> Connect Cursor to the Danube MCP Server

## Setup

<Steps>
  <Step title="Open Settings">
    In Cursor, go to **Settings** → **Cursor Settings** → **Tools & MCP**
  </Step>

  <Step title="Add MCP Server">
    Click **Add Custom MCP** to create a new server configuration.
  </Step>

  <Step title="Configure Danube">
    Paste the following JSON configuration:

    ```json theme={null}
    {
      "mcpServers": {
        "danube": {
          "url": "https://mcp.danubeai.com/mcp",
          "headers": {
            "danube-api-key": "YOUR_API_KEY"
          }
        }
      }
    }
    ```
  </Step>

  <Step title="Save and Restart">
    Save the configuration and restart Cursor to activate the connection.
  </Step>
</Steps>

<Tip>
  Your API key is stored securely in Cursor's settings. You can find it in your Danube dashboard under Settings → API Keys.
</Tip>

***

## Troubleshooting

<AccordionGroup>
  <Accordion title="Tools not appearing">
    * Verify your API key is correct in Settings → Cursor Settings → Tools & MCP
    * Check that the server URL is exactly: `https://mcp.danubeai.com/mcp`
    * Ensure the header name is exactly: `danube-api-key` (lowercase)
    * Restart Cursor completely after configuration
  </Accordion>

  <Accordion title="401 Unauthorized errors">
    * Your API key may be invalid or expired
    * Generate a new API key from [danubeai.com/dashboard](https://danubeai.com/dashboard)
    * Update the header value in Cursor settings
  </Accordion>

  <Accordion title="Connection timeout">
    * Check your internet connection
    * Verify the URL is correct: `https://mcp.danubeai.com/mcp`
    * Try the health check: `curl https://mcp.danubeai.com/mcp/health`
  </Accordion>
</AccordionGroup>
