Skip to main content

Connect Cursor

The steps below demonstrate how to connect to the MCP server using Cursor. Before you connect, confirm you meet the Required permissions.

Prerequisites​

Supported connection methods​

Cursor supports stdio and Streamable HTTP. See Connection methods for authentication details. The examples below show both.

Configure with stdio​

  1. Create or edit the mcp.json file in one of these locations:

    • All projects (user): the mcp.json file in your user-level .cursor directory, for example, ~/.cursor/mcp.json on macOS and Linux, or %USERPROFILE%\.cursor\mcp.json on Windows.

    • One workspace (project): .cursor/mcp.json at the root of the project you open in Cursor. Create the .cursor directory if it does not exist.

  2. In a text editor, open that mcp.json file.

  3. Copy the following script and paste it in the mcp.json file. Replace your_doit_api_key with your personal API token.

    {
    "mcpServers": {
    "doit_mcp_server": {
    "command": "npx",
    "args": ["-y", "@doitintl/doit-mcp-server@latest"],
    "env": {
    "DOIT_API_KEY": "your_doit_api_key"
    }
    }
    }
    }
  4. Launch the Cursor app. Cursor automatically detects the MCP server configuration.

  5. After the server starts, verify the connection by going to Settings, selecting Cursor Settings, and then selecting MCP & Integrations. The status of the MCP integration should be green.

    You can now open a new chat to start asking questions or make requests related to Cloud Intelligence data.

Configure with Streamable HTTP​

  1. Create or edit the same mcp.json file described under Configure with stdio.

  2. Use a remote URL entry instead of command / args:

    {
    "mcpServers": {
    "doit_mcp_server": {
    "url": "https://mcp.doit.com/mcp"
    }
    }
    }
  3. Launch or reload Cursor, complete the DoiT sign-in and consent flow when prompted, then confirm the server status under Settings → Cursor Settings → MCP & Integrations.