Skip to main content

Connect Cursor

The steps below demonstrate how to connect to the DoiT MCP server using Cursor.

Required permissions​

Prerequisites​

Connection type​

Cursor connects to DoiT MCP using a local stdio connection. Cursor launches the published package (@doitintl/doit-mcp-server) on your machine using standard input/output (stdio) using npx. Ensure Node.js is on your PATH.

Configure the DoiT MCP server​

  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.

    {
    "mcpServers": {
    "doit_mcp_server": {
    "command": "npx",
    "args": ["-y", "@doitintl/doit-mcp-server@latest"],
    "env": {
    "DOIT_API_KEY": `<doit_api_key>`
    }
    }
    }
    }
  4. Replace doit_api_key with your DoiT API key.

  5. Launch the Cursor app. Cursor automatically detects and connects to the DoiT MCP server. You can verify connection by going to Settings, selecting Cursor Settings, and then selecting MCP & Integrations. The status of the DoiT MCP integration should be green.

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