# Connect your client

> Add the Deeper Research MCP server to Claude Code, Cursor, Codex, VS Code or any MCP client.

Source: https://deeperesearch.com/docs/mcp/clients/

Every client connects to the same server, `https://deeperesearch.com/mcp`. The first time your agent connects, it opens your browser so you can sign in with your Deeper Research account and choose this agent’s [spending limits](https://deeperesearch.com/docs/mcp/spending/).

Note

You need a Deeper Research account with credit to start research. Searching and reading reports work without credit. [Create an account](https://deeperesearch.com/signup).

## Sign in with your account

- Claude Code

  The plugin adds the server, a skill that tells Claude when deep research is worth it and to ask before spending, and a `/deeper-research:research` command.

  1. Install the plugin:

     ```bash
     claude plugin marketplace add johnbhiggins7/deeper-research-plugin
     claude plugin install deeper-research@deeper-research
     ```

     Or add only the server, without the skill and command:

     ```bash
     claude mcp add --transport http deeper-research https://deeperesearch.com/mcp
     ```

  2. Run `/mcp` in Claude Code, choose **deeper-research** and sign in.

  The plugin’s source is on [GitHub](https://github.com/johnbhiggins7/deeper-research-plugin).

- Cursor

  [Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=deeper-research\&config=eyJ1cmwiOiJodHRwczovL2RlZXBlcmVzZWFyY2guY29tL21jcCJ9)

  Or add the server yourself to `.cursor/mcp.json` in your project, or to `~/.cursor/mcp.json` for every project:

  .cursor/mcp.json

  ```json
  {
    "mcpServers": {
      "deeper-research": { "url": "https://deeperesearch.com/mcp" }
    }
  }
  ```

  Cursor asks you to sign in the first time it connects.

- Codex CLI

  ```bash
  codex mcp add deeper-research --url https://deeperesearch.com/mcp
  codex mcp login deeper-research
  ```

  Codex asks you to approve each new research before it starts. Searching and reading reports don’t need approval.

- VS Code

  [Install in VS Code](vscode:mcp/install?%7B%22name%22%3A%22deeper-research%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fdeeperesearch.com%2Fmcp%22%7D)

  Or run **MCP: Add Server** from the Command Palette, choose **HTTP**, and paste `https://deeperesearch.com/mcp`. This works in Copilot agent mode and needs VS Code 1.101 or later.

- Other clients

  Connect over Streamable HTTP to:

  ```txt
  https://deeperesearch.com/mcp
  ```

  Clients that support MCP authorization find the sign-in page on their own: the server answers an unauthenticated request with `401` and a `WWW-Authenticate` header that points to its [protected resource metadata](https://deeperesearch.com/docs/mcp/authentication/#how-sign-in-works). For clients without sign-in support, use an API key.

## Use an API key instead

Use an API key for CI, scripts, or an agent that can’t sign in through the browser.

1. Create a key in [Settings → API keys](https://deeperesearch.com/app/settings/api-keys). Keys start with `dr_live_`.

2. Store it in an environment variable rather than in a config file you might commit:

   ```bash
   export DEEPER_RESEARCH_API_KEY="dr_live_..."
   ```

3. Send it as a bearer token:

   - Claude Code

     ```bash
     claude mcp add --transport http deeper-research https://deeperesearch.com/mcp \
       --header "Authorization: Bearer $DEEPER_RESEARCH_API_KEY"
     ```

   - Cursor

     .cursor/mcp.json

     ```json
     {
       "mcpServers": {
         "deeper-research": {
           "url": "https://deeperesearch.com/mcp",
           "headers": { "Authorization": "Bearer ${env:DEEPER_RESEARCH_API_KEY}" }
         }
       }
     }
     ```

   - Codex CLI

     \~/.codex/config.toml

     ```toml
     [mcp_servers.deeper-research]
     url = "https://deeperesearch.com/mcp"
     bearer_token_env_var = "DEEPER_RESEARCH_API_KEY"
     ```

   - VS Code

     VS Code prompts for the key and stores it securely:

     .vscode/mcp.json

     ```json
     {
       "inputs": [
         { "type": "promptString", "id": "deeper-key", "description": "Deeper Research API key", "password": true }
       ],
       "servers": {
         "deeper-research": {
           "type": "http",
           "url": "https://deeperesearch.com/mcp",
           "headers": { "Authorization": "Bearer ${input:deeper-key}" }
         }
       }
     }
     ```

   - Other clients

     Send the header on every request:

     ```txt
     Authorization: Bearer dr_live_...
     ```

An agent that uses an API key gets its own [spending limits](https://deeperesearch.com/docs/mcp/spending/#default-limits), separate from agents that sign in.

## Check that it works

Ask your agent:

> Use Deeper Research to list the providers I can use and what they cost.

The agent calls `list_providers`, which is free. If it shows a list of providers and prices, you’re connected. If it reports an error, see [Errors](https://deeperesearch.com/docs/mcp/errors/).
