> For the complete documentation index, see [llms.txt](https://v2.dataos.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v2.dataos.info/consume/consume-with-ai/connect-clients/cursor.md).

# Cursor

Connecting Cursor to Data Product MCP lets its agents answer your data questions from governed Data Products instead of guessing — discovery, governed querying, quality inspection, lineage, and owner lookup all run against trusted, authorized data.

## Prerequisites

You need:

* Cursor installed and signed in.
* Your DataOS instance URL, such as `pacific-051426.dataos.cloud`.
* A DataOS API token generated from [Home → Generate API tokens](/consume/get-started/readme-1.md#get-a-dataos-api-token).

## Open the install guide

From the Data Product page, select **Activate → MCP**, then select **View install guide** on the **Cursor** card to open the step-by-step guide.

![Cursor install guide showing the Tools & MCP steps and JSON configuration](/files/bkakcUi3OJUukT4MyGXF)

## Steps

### 1. Add a custom MCP server

In Cursor, go to **Tools & MCP** and click **Add Custom MCP** or **+ New MCP Server**.

### 2. Paste the configuration

Paste the configuration below and replace `<API_TOKEN>` with your token from **API tokens**, then save.

{% hint style="warning" %}
**API token security.** API tokens are secrets. Don't commit them to source control. Cursor stores the server configuration in its own user-level settings, which keeps the token out of your project files. If you copy this JSON into a project-level file instead, exclude that file from version control via `.gitignore`.
{% endhint %}

```json
{
  "mcpServers": {
    "DataProduct-MCP": {
      "url": "https://<instance-url>/dataproduct-mcp/api/v1",
      "headers": {
        "apikey": "<API_TOKEN>"
      }
    }
  }
}
```

### 3. Enable the server

Under **Installed MCP Servers**, turn on the **DataProduct-MCP** toggle to enable it.

## Verify the connection

Open a new Cursor chat and ask:

```
What data products are available to consume?
```

If the connection works, Cursor returns Data Products from your DataOS instance and can call Data Product MCP tools in follow-up prompts.

## Example questions

* `What data products exist for supplier performance?`
* `Is the orders360 data product fresh and healthy?`
* `What was net revenue by customer segment last quarter?`
* `Who owns this data product if a quality check is failing?`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://v2.dataos.info/consume/consume-with-ai/connect-clients/cursor.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
