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

# Cursor

> Connect Cursor to your data in Nekt using the MCP Server with bearer token authentication.

Cursor is an AI-powered code editor. When connected to Nekt through the MCP Server, it can query and analyze your data directly while you code. The connection uses bearer token authentication via Cursor's `mcp.json` configuration.

<Info>Requires a **paid Nekt plan** (for MCP Server access) and **Cursor** installed.</Info>

## 1. Activate your MCP Server

The connection is made by activating the MCP Server in your workspace. Check [this guide](/mcp-server/setup) for instructions.

## 2. Get your endpoint and token

Go to **Integrations > MCP Server** in the Nekt platform. You'll need two values:

* **Endpoint** — the MCP server URL displayed at the top of the page
* **Token** — a bearer token created in the **MCP Tokens** section

If you don't have a token yet, create one. You can scope it to specific tables or grant full access.

<Note>
  Tokens created manually can be scoped to specific tables for fine-grained access control. Tokens grant Cursor access only to the tables associated with that token.
</Note>

## 3. Connect Cursor to Nekt

<Steps>
  <Step title="Open Cursor's MCP settings">
    In Cursor, open **Settings → Tools & Integrations → MCP**, then click **Add new MCP server**. This opens (or creates) the configuration file.

    You can also edit the file manually:

    * **Global** (available in every project): `~/.cursor/mcp.json`
    * **Project-scoped** (committed with the repo): `.cursor/mcp.json` in the project root
  </Step>

  <Step title="Add the Nekt MCP server">
    Add the following block to `mcp.json`:

    ```json theme={null}
    {
      "mcpServers": {
        "nekt": {
          "url": "MCP_ENDPOINT",
          "headers": {
            "Authorization": "Bearer MCP_TOKEN"
          }
        }
      }
    }
    ```

    Replace `MCP_ENDPOINT` with the endpoint from the MCP Server page and `MCP_TOKEN` with the token you created.

    <Tip>
      To avoid storing the token in plaintext, set it as an environment variable in your shell profile and reference it with `${env:NEKT_MCP_BEARER_TOKEN}` in the headers value. This is especially important for project-scoped `mcp.json` files committed to version control.
    </Tip>
  </Step>

  <Step title="Verify the connection">
    Go back to **Settings → Tools & Integrations → MCP**. The `nekt` server should appear with a green status indicator and the list of available tools.

    You should see the nine tools provided by the Nekt MCP Server. You can learn more about them [here](/mcp-server/tools).
  </Step>
</Steps>

***

## 4. Explore your data

Once connected, ask Cursor's chat a question about your data. For example:

```
Using Nekt, give me a summary of the your_table_name table.
```

Cursor will use the MCP tools to query your data and return an answer.

<Check>
  We'd love to know what you're building with Nekt! Share your projects with us through any of our communication channels.
</Check>

***

## Privacy & Security

Your data privacy is a core principle of the Nekt platform.

When you connect Cursor to Nekt through the MCP Server, Cursor does not receive direct database credentials or unrestricted access to your infrastructure. Instead, Cursor interacts with your data exclusively through the secure tools exposed by the Nekt MCP Server, which act as a controlled gateway to the Nekt API. These tools enforce the same authentication, authorization, and permission rules used throughout the Nekt platform.

Access is scoped using tokens and user permissions, meaning Cursor can only access the tables and actions explicitly allowed by the token you configured. This architecture ensures that all queries, analysis, and data interactions remain governed, auditable, and restricted to your workspace permissions.

When using Cursor, your interactions are subject to Cursor's privacy settings and policies. We recommend reviewing the [official Cursor privacy documentation](https://cursor.com/privacy) to understand their data handling policies and selecting the configuration that best aligns with your organization's security requirements.

***

## Need help?

Contact our support team if you encounter issues during setup.
