Skip to main content
All MCP guides

MCP setup guide

Connect Cursor

Add Attorly to Cursor's MCP servers and use its tools for contracts, clauses and legal research from Cursor's agent.

Before you start

  • An Attorly Pro or Enterprise plan.
  • A recent version of Cursor.

Steps

  1. Add Attorly to Cursor

    Add Attorly to Cursor's MCP servers. Cursor shows it as needing login; click that to sign in to Attorly.

    Add to Cursoror paste the configuration below

    Add this to Cursor's MCP configuration file

    ~/.cursor/mcp.json
    {
      "mcpServers": {
        "attorly": {
          "url": "https://attorly.ai/api/mcp"
        }
      }
    }
  2. Sign in and choose what Cursor may do

    Cursor opens Attorly in your browser. Sign in, pick your organization and tick the permissions you want to allow; reading is ticked to start with. Connected apps and their permissions are under Settings › Developers › Connect.

  3. Check that it works

    Open Cursor Settings › MCP. Attorly shows “Needs login”; click it and sign in to Attorly. The status turns green and its tools appear. In the agent chat, ask: “List my five most recent documents in Attorly.”

Use an API key instead

For scripts, CI and servers that cannot open a browser: create a key under Settings › Developers › API keys and paste it into Cursor.

Create a key for Cursor

Add Attorly to Cursor's MCP servers with your key in the Authorization header. It is available in every Cursor window.

Add this to Cursor's MCP configuration file

~/.cursor/mcp.json
{
  "mcpServers": {
    "attorly": {
      "url": "https://attorly.ai/api/mcp",
      "headers": {
        "Authorization": "Bearer lbmcp_your_api_key"
      }
    }
  }
}

If it does not work

The status stays red.
Open ~/.cursor/mcp.json and check that it is valid JSON with the exact server URL. With a key, check that the Authorization value is Bearer followed by your whole key.
The agent does not use Attorly's tools.
Check that Attorly's tools are switched on in the MCP section of Cursor Settings, and name Attorly in your request.
Something else went wrong.
Errors such as 401, insufficient_scope and rate_limited are explained in the MCP troubleshooting section. Every call also appears in Settings › Developers › Request logs, with the error it returned. MCP troubleshooting

Other clients