> For the complete documentation index, see [llms.txt](https://developer.emporix.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.emporix.io/agentic-commerce-intelligence/mcp-in-emporix/mcp/connect-cursor.md).

# Connecting Emporix MCP Server with Cursor

These steps show how to configure the MCP Server to an AI code editor on the basis of Cursor example, although you might as well configure another tool of your choice. Connecting the Emporix MCP Server to a code editor can enhance and accelerate the development and customization process.

## Prerequisites

To follow the steps, make sure you have the required tools and accounts:

* [Cursor](https://www.cursor.com/)
* [Emporix Tenant](https://app.emporix.io/)
* [MCP token](/agentic-commerce-intelligence/mcp-in-emporix/mcp/retrieving-mcp-token.md)

## Configuration

{% stepper %}
{% step %}

#### Open Cursor settings

In the Cursor IDE, open **Cursor -> Settings -> Cursor Settings**.
{% endstep %}

{% step %}

#### Provide MCP configuration

Open **MCP** and choose to **+ Add new global MCP server**. Provide the following configuration in the `mcp.json` file:

```
{
  "mcpServers": {
    "external_mcp_streamable": {
      "type": "streamable-http",
      "url": "https://api.emporix.io/mcp/{domain}/{tenant}/{mcp_token}/mcp"
    }
  }
}
```

Replace the `{domain}`, `{tenant}` and `{mcp_token}` placeholders with the relevant values. Save the file.
{% endstep %}

{% step %}

#### Enable server

Switch to the **Cursor Settings** tab to enable the server.
{% endstep %}
{% endstepper %}

The working server shows the available tools for the particular domain:

<figure><img src="/files/5UcUGDf9fm1rze5WQvM7" alt="Cursor configuration"><figcaption></figcaption></figure>

## Using Cursor AI

With the configuration ready, you can use the Cursor AI capabilities.

Open the AI Chat panel in Cursor and start chatting. For example, retrieve some products:

<figure><img src="/files/KubVCgRBGMoZylCp3prA" alt="Cursor chat"><figcaption></figcaption></figure>

The built-in AI tools access the Emporix system through the APIs that you defined to fetch the data and manipulate it according to your prompts. This way, you can plan, build, and work on the Emporix items according to the granted scopes directly from Cursor.


---

# 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://developer.emporix.io/agentic-commerce-intelligence/mcp-in-emporix/mcp/connect-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.
