Connect Cursor
The steps below demonstrate how to connect to the DoiT MCP server using Cursor. Before you connect, confirm you meet the Required permissions.
Prerequisites
-
Cursor v0.47 or newer is installed.
-
For stdio, Node.js is on your
PATHsonpxcan run@doitintl/doit-mcp-server, and a personal API token to set asDOIT_API_KEY. -
For Streamable HTTP, a supported web browser to complete the DoiT sign-in flow when you connect.
Supported connection methods
Cursor supports stdio and Streamable HTTP. See Connection methods for authentication details. The examples below show both.
Configure with stdio
-
Create or edit the
mcp.jsonfile in one of these locations:-
All projects (user): the
mcp.jsonfile in your user-level.cursordirectory, for example,~/.cursor/mcp.jsonon macOS and Linux, or%USERPROFILE%\.cursor\mcp.jsonon Windows. -
One workspace (project):
.cursor/mcp.jsonat the root of the project you open in Cursor. Create the.cursordirectory if it does not exist.
-
-
In a text editor, open that
mcp.jsonfile. -
Copy the following script and paste it in the
mcp.jsonfile. Replaceyour_doit_api_keywith 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"}}}} -
Launch the Cursor app. Cursor automatically detects the DoiT MCP server configuration.
-
After the server starts, verify the 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.
Configure with Streamable HTTP
-
Create or edit the same
mcp.jsonfile described under Configure with stdio. -
Use a remote URL entry instead of
command/args:{"mcpServers": {"doit_mcp_server": {"url": "https://mcp.doit.com/mcp"}}} -
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.