Connect Cursor
The steps below demonstrate how to connect to the DoiT MCP server using Cursor.
Required permissionsβ
-
To connect and access DoiT Cloud Intelligence via the MCP server, your user must be assigned the Billing Profiles Admin permission.
-
The DoiT MCP server tools map to the DoiT Cloud Intelligence API. Your DoiT API key authenticates requests. In addition, each DoiT API operation enforces its own permissions.
Prerequisitesβ
-
A DoiT API key to set in
mcp.json. -
Cursor v0.47 or newer is installed.
-
Node.js is on your
PATHsonpxcan run@doitintl/doit-mcp-server.
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β
-
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.{
"mcpServers": {
"doit_mcp_server": {
"command": "npx",
"args": ["-y", "@doitintl/doit-mcp-server@latest"],
"env": {
"DOIT_API_KEY": `<doit_api_key>`
}
}
}
} -
Replace
doit_api_keywith your DoiT API key. -
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.