---
title: Usage with Cursor
sidebarTitle: Usage with Cursor
---

This tutorial walks you through the usage of MindsDB MCP API with [Cursor](https://www.cursor.com/).

## Tutorial

1. 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="/assets/mcp_cursor_settings.png" />
</p>

2. Add the below content to the `mcp.json` file. Ensure that [MindsDB is running locally with its HTTP API enabled](/use-cases/mcp_api/mindsdb_mcp_server).

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

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

<p align="center">
  <img src="/assets/mcp_cursor_mcp_server.png" />
</p>

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

<p align="center">
  <img src="/assets/mcp_cursor_chat_mode.png" />
</p>

5. 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="/assets/mcp_cursor_chat_tool.png" />
</p>

6. 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="/assets/mcp_cursor_chat.png" />
</p>
