Configure the Dtwo Plugin in Cursor

On this page
  1. Install the plugin
  2. Verify the plugin works

Install the plugin

Before you start, make sure Git is installed.

  1. In a terminal, download the plugin repository into a new dtwo-plugins folder:

    git clone https://github.com/dtwoai/plugins.git dtwo-plugins
  2. In Cursor, open Customize, select the Plugins tab, click + Add, and choose From Local Repository. Select the dtwo-plugins folder, where you cloned the repository in step 1.

  3. Type dtwo in the search bar to find the newly added Dtwo plugin, then click Add.

  4. In Customize → MCPs, click + New MCP Server and choose User. Cursor opens your user-level mcp.json (~/.cursor/mcp.json). Add the dtwo server under mcpServers and 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 dtwo entry inside the existing mcpServers object. The MCP server must be named dtwo.

  5. 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.

Having trouble?

Email us and we'll help you get set up.

Email support
Get in touch

Tell us what you need to govern.

A few lines is plenty — what you're deploying, and what you need control over. We read every one.

↑↓ to navigate ↵ to open