Configure the Dtwo Plugin in Cursor
On this page
Install the plugin
Before you start, make sure Git is installed.
-
In a terminal, download the plugin repository into a new
dtwo-pluginsfolder:git clone https://github.com/dtwoai/plugins.git dtwo-plugins -
In Cursor, open Customize, select the Plugins tab, click + Add, and choose From Local Repository. Select the
dtwo-pluginsfolder, where you cloned the repository in step 1. -
Type
dtwoin the search bar to find the newly added Dtwo plugin, then click Add. -
In Customize → MCPs, click + New MCP Server and choose User. Cursor opens your user-level
mcp.json(~/.cursor/mcp.json). Add thedtwoserver undermcpServersand save the file:{ "mcpServers": { "dtwo": { "url": "https://mcp.us1.prod.dtwo.ai/mcp", "auth": { "CLIENT_ID": "EleONdxmthzCtATDyGkHW4w9TIct7qRO" } } } }If the file already lists other servers, add only the
dtwoentry inside the existingmcpServersobject. The MCP server must be nameddtwo. -
Open Customize → MCPs, enable dtwo, and complete the browser sign-in.
Verify the plugin works
Once the plugin is installed and connected, ask your client for something that only Dtwo can answer:
List my Dtwo gateways and the policies attached to each.
If the plugin is wired up correctly, your client returns your gateways and their attached policies.