This tutorial walks you through the usage of MindsDB’s MCP Server with Cursor as an MCP Client.

Setup

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

  1. Start MindsDB’s MCP Server following this guide.

  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.

  1. Add the below content to the mcp.json file.
{
    "mcpServers": {
      "mindsdb": {
        "url": "http://127.0.0.1:47337/sse"
      }
    }
}
  1. Ensure that MindsDB is listed as an MCP server.

Chat with Data

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

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

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