# 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: 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:

```
GET https://developer.emporix.io/agentic-commerce-intelligence/mcp-in-emporix/mcp/connect-cursor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
