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

# MindsDB's MCP Server with Cursor's MCP Client

This tutorial walks you through the usage of MindsDB's MCP Server with [Cursor](https://www.cursor.com/) as an MCP Client.

<Tip>
  See a [video tutorial here](https://www.youtube.com/watch?v=f5VFd5LIuPg).
</Tip>

## Setup

Follow the steps below to connect MindsDB's MCP Server to Cursor.

1. Start MindsDB's MCP Server following [this guide](/mcp/usage).

2. Open Cursor, go to the Cursor Settings, open the MCP tab, and click on *Add new global MCP server*. Alternatively, go to the Cursor settings -> Features -> MCP Servers.

<p align="center">
  <img src="https://mintcdn.com/mindsdb/iK5MN5UH2_93kMSg/assets/mcp_cursor_settings.png?fit=max&auto=format&n=iK5MN5UH2_93kMSg&q=85&s=b9a2d3c6c573cae9d708ac3d829bed51" width="2032" height="560" data-path="assets/mcp_cursor_settings.png" />
</p>

3. Add the below content to the `mcp.json` file.

```yml theme={null}
{
    "mcpServers": {
      "mindsdb": {
        "url": "http://127.0.0.1:47334/mcp/sse"
      }
    }
}
```

4. Ensure that MindsDB is listed as an MCP server.

<p align="center">
  <img src="https://mintcdn.com/mindsdb/iK5MN5UH2_93kMSg/assets/mcp_cursor_mcp_server.png?fit=max&auto=format&n=iK5MN5UH2_93kMSg&q=85&s=91cdfac4dc748e136f095effa3bb5dcf" width="2048" height="586" data-path="assets/mcp_cursor_mcp_server.png" />
</p>

## Chat with Data

1. Open the Cursor chat window and select the Agent mode from the dropdown.

<p align="center">
  <img src="https://mintcdn.com/mindsdb/iK5MN5UH2_93kMSg/assets/mcp_cursor_chat_mode.png?fit=max&auto=format&n=iK5MN5UH2_93kMSg&q=85&s=ea2b7c87a03ba5e26e9291b8c6fb3e7c" width="1276" height="280" data-path="assets/mcp_cursor_chat_mode.png" />
</p>

2. Ask questions over your data. *Note that you need to approve each call of the MCP server’s tools by clicking on Run tool.*

<p align="center">
  <img src="https://mintcdn.com/mindsdb/iK5MN5UH2_93kMSg/assets/mcp_cursor_chat_tool.png?fit=max&auto=format&n=iK5MN5UH2_93kMSg&q=85&s=332cb0f2a837b65189ab040caad5c05f" width="872" height="1528" data-path="assets/mcp_cursor_chat_tool.png" />
</p>

3. The agent provides an answer with helpful suggestions of follow-up information that can be extracted from the available data.

<p align="center">
  <img src="https://mintcdn.com/mindsdb/iK5MN5UH2_93kMSg/assets/mcp_cursor_chat.png?fit=max&auto=format&n=iK5MN5UH2_93kMSg&q=85&s=9423d20a3678ad7d6b0abbd88fb9be20" width="1120" height="1236" data-path="assets/mcp_cursor_chat.png" />
</p>
