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

# Cursor

> Cursor is an AI-powered integrated development environment (IDE) developed by Anysphere. It is a fork of Visual Studio Code.

## Prerequisites

Before you can configure and use Cursor with Connect AI, you must first do the following:

* Install the Cursor IDE.

* Generate an [OAuth JWT bearer token](/ja/API/Authentication-Embedded). Copy this down, as it acts as your password during authentication.

## Connect Cursor to the Connect AI MCP

<Steps>
  <Step>
    In the Cursor IDE, go to **Cursor Settings**. Then click **Tools & MCP**, and then click **New MCP Server.** The file `mcp.json` opens automatically in the Cursor IDE.
  </Step>

  <Step>
    Copy and paste the following into the `mcp.json` file. Replace the authorization header with the credentials obtained in the prerequisites.

    ```json theme={null}
    {
      "mcpServers": {
        "cdata-mcp": {
          "url": "https://mcp.cloud.cdata.com/mcp",
          "headers": {
            "Authorization": "Bearer OAUTH_JWT_TOKEN" //Replace with your OAuth JWT Token
          }
        }
      }
    }
    ```
  </Step>

  <Step>
    Return to **Tools & MCP** under **Cursor Settings**. Confirm that Cursor is connected to CData's MCP Server. You should see **cdata-mcp** listed with a green indicator.

    <Frame>
      <img src="https://mintcdn.com/cdata/EE4HlkSQpbRlgqOq/ja/images/cursor_client_start_MCP.png?fit=max&auto=format&n=EE4HlkSQpbRlgqOq&q=85&s=a57d3b1ab1daf68971e1bc6308c963a9" alt="Cursor start MCP server" width="1492" height="642" data-path="ja/images/cursor_client_start_MCP.png" />
    </Frame>
  </Step>

  <Step>
    You can now chat with the assistant. Cursor lists the available tools, the connections, and a result set of a given table of a given connection. By default, Cursor asks for confirmation before executing MCP tool actions.

    <Frame>
      <img src="https://mintcdn.com/cdata/EE4HlkSQpbRlgqOq/ja/images/cursor_client_sample_chat.png?fit=max&auto=format&n=EE4HlkSQpbRlgqOq&q=85&s=cd4e4fc1591635a4b4500ef3eccb72dd" alt="Cursor sample chat" width="2365" height="1052" data-path="ja/images/cursor_client_sample_chat.png" />
    </Frame>
  </Step>
</Steps>
