> ## Documentation Index
> Fetch the complete documentation index at: https://consensus-f7e6ffce-devin-1787806026-mcp-add-to-thread.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get started with Consensus MCP

> The Consensus MCP server enables AI assistants like ChatGPT, Claude, Gemini Spark, and other MCP-compatible clients to search over 220 million peer-reviewed academic research papers directly from the conversation.

Consensus MCP lets AI assistants search 220+ million peer-reviewed research papers. Connect your preferred client below. You'll be searching in under 2 minutes.

**Server URL**

```
https://mcp.consensus.app/mcp
```

<CardGroup cols={2}>
  <Card title="Claude" img="https://mintcdn.com/consensus-f7e6ffce-devin-1787806026-mcp-add-to-thread/cJVTUUpHU4czXrXO/images/claude-card.png?fit=max&auto=format&n=cJVTUUpHU4czXrXO&q=85&s=b159111a2de4614ad2b189e4be2cf6a9" href="https://claude.ai/directory/65247229-f0c7-49df-9044-fcbb8b3894c6" width="1000" height="600" data-path="images/claude-card.png">
    Add Consensus from the Claude connectors directory.
  </Card>

  <Card title="ChatGPT" img="https://mintcdn.com/consensus-f7e6ffce-devin-1787806026-mcp-add-to-thread/cJVTUUpHU4czXrXO/images/chatgpt-card.png?fit=max&auto=format&n=cJVTUUpHU4czXrXO&q=85&s=dacab7f485695993e9c4ffb3ab0aa107" href="https://chatgpt.com/plugins/plugin_asdk_app_6943e6f4a928819195962de16fb9ffe4" width="1000" height="600" data-path="images/chatgpt-card.png">
    Add Consensus from the ChatGPT app directory.
  </Card>
</CardGroup>

## Connect Your Client

<AccordionGroup>
  <Accordion title="Claude Desktop" icon="https://mintcdn.com/consensus-f7e6ffce-devin-1787806026-mcp-add-to-thread/cJVTUUpHU4czXrXO/logo/clients/claude.svg?fit=max&auto=format&n=cJVTUUpHU4czXrXO&q=85&s=edb7c52b2bfa9f543d9dff5e1f1d1d8e" width="24" height="24" data-path="logo/clients/claude.svg">
    **One-click:** open [Consensus in the Claude directory](https://claude.ai/directory/65247229-f0c7-49df-9044-fcbb8b3894c6) and click **Connect**. Or connect manually:

    <Steps>
      <Step title="Open Settings">
        Open [claude.ai](https://claude.ai) or the Claude desktop app and go to **Settings**.
      </Step>

      <Step title="Browse connectors">
        Select **Connectors**, then **Browse connectors**.
      </Step>

      <Step title="Find Consensus">
        Search for **Consensus** and click **Connect**.
      </Step>

      <Step title="Sign in">
        Approve the sign-in with your Consensus account, or continue without one at reduced limits.
      </Step>

      <Step title="Start searching">
        Ask a research question in any chat. Consensus appears in the tools menu.
      </Step>
    </Steps>
  </Accordion>

  <Accordion title="Claude Code" icon="https://mintcdn.com/consensus-f7e6ffce-devin-1787806026-mcp-add-to-thread/cJVTUUpHU4czXrXO/logo/clients/claude.svg?fit=max&auto=format&n=cJVTUUpHU4czXrXO&q=85&s=edb7c52b2bfa9f543d9dff5e1f1d1d8e" width="24" height="24" data-path="logo/clients/claude.svg">
    ```bash theme={null}
    claude mcp add --transport http consensus https://mcp.consensus.app/mcp
    ```

    OAuth will open in your browser automatically on first use. You can also trigger it manually with the `/mcp` command inside Claude Code.
  </Accordion>

  <Accordion title="ChatGPT" icon="https://mintcdn.com/consensus-f7e6ffce-devin-1787806026-mcp-add-to-thread/cJVTUUpHU4czXrXO/logo/clients/openai.svg?fit=max&auto=format&n=cJVTUUpHU4czXrXO&q=85&s=020e95628dc4af659bd97dd3feee796f" width="24" height="24" data-path="logo/clients/openai.svg">
    **One-click:** open [Consensus in the ChatGPT app directory](https://chatgpt.com/plugins/plugin_asdk_app_6943e6f4a928819195962de16fb9ffe4) and click **Connect**. Or connect manually:

    <Steps>
      <Step title="Open ChatGPT">
        Open [chatgpt.com](https://chatgpt.com) and sign in.
      </Step>

      <Step title="Find Consensus">
        Open **Apps** from the sidebar, search for **Consensus**, and click **Connect**.
      </Step>

      <Step title="Sign in">
        Sign in with your Consensus account when prompted.
      </Step>

      <Step title="Start searching">
        Ask a research question, or call it by name: "Use Consensus to find RCTs on…"
      </Step>
    </Steps>

    Search results display in an interactive widget showing top papers with citations and direct links.

    <Note>
      Consensus also works with ChatGPT Deep Research. See [Using Consensus with ChatGPT Deep Research](#using-consensus-with-chatgpt-deep-research) below.
    </Note>
  </Accordion>

  <Accordion title="Codex" icon="https://mintcdn.com/consensus-f7e6ffce-devin-1787806026-mcp-add-to-thread/cJVTUUpHU4czXrXO/logo/clients/openai.svg?fit=max&auto=format&n=cJVTUUpHU4czXrXO&q=85&s=020e95628dc4af659bd97dd3feee796f" width="24" height="24" data-path="logo/clients/openai.svg">
    ```bash theme={null}
    codex mcp add consensus --url https://mcp.consensus.app/mcp
    codex mcp login consensus
    ```

    Or add to `~/.codex/config.toml`:

    ```toml theme={null}
    [mcp_servers.consensus]
    url = "https://mcp.consensus.app/mcp"
    ```
  </Accordion>

  <Accordion title="Cursor" icon="https://mintcdn.com/consensus-f7e6ffce-devin-1787806026-mcp-add-to-thread/cJVTUUpHU4czXrXO/logo/clients/cursor.svg?fit=max&auto=format&n=cJVTUUpHU4czXrXO&q=85&s=db9b59f0cfe1d4d27c2f3b7bba48cabc" width="24" height="24" data-path="logo/clients/cursor.svg">
    **One-click:** [Install in Cursor](https://cursor.com/en/install-mcp?name=consensus\&config=eyJ1cmwiOiJodHRwczovL21jcC5jb25zZW5zdXMuYXBwL21jcCJ9). Or add to `~/.cursor/mcp.json`:

    ```json theme={null}
    {
      "mcpServers": {
        "consensus": {
          "command": "npx",
          "args": ["-y", "mcp-remote@latest", "https://mcp.consensus.app/mcp"]
        }
      }
    }
    ```
  </Accordion>

  <Accordion title="VS Code (GitHub Copilot)" icon="https://mintcdn.com/consensus-f7e6ffce-devin-1787806026-mcp-add-to-thread/cJVTUUpHU4czXrXO/logo/clients/vscode.svg?fit=max&auto=format&n=cJVTUUpHU4czXrXO&q=85&s=be15de45adb89b2250c8832b26439c29" width="24" height="24" data-path="logo/clients/vscode.svg">
    Add to your MCP configuration:

    ```json theme={null}
    {
      "servers": {
        "consensus": {
          "url": "https://mcp.consensus.app/mcp"
        }
      }
    }
    ```
  </Accordion>

  <Accordion title="Windsurf" icon="https://mintcdn.com/consensus-f7e6ffce-devin-1787806026-mcp-add-to-thread/cJVTUUpHU4czXrXO/logo/clients/windsurf.svg?fit=max&auto=format&n=cJVTUUpHU4czXrXO&q=85&s=3de2af1825d79741f80f88ba520c4f82" width="24" height="24" data-path="logo/clients/windsurf.svg">
    Add to your MCP configuration:

    ```json theme={null}
    {
      "mcpServers": {
        "consensus": {
          "serverUrl": "https://mcp.consensus.app/mcp"
        }
      }
    }
    ```
  </Accordion>

  <Accordion title="Gemini Spark" icon="sparkles">
    Add Consensus as a custom app for Gemini Spark:

    <Steps>
      <Step title="Open Connected Apps">
        Go to [gemini.google.com](https://gemini.google.com) and sign in with a personal Google Account, then click **Settings & help** → **Connected Apps**.
      </Step>

      <Step title="Add a custom app">
        Under **Custom apps for Spark**, click **Add a custom app** and paste the server URL:

        ```
        https://mcp.consensus.app/mcp
        ```
      </Step>

      <Step title="Approve the connection">
        Click **Next** and follow the prompts to finish OAuth. If your client doesn't support Dynamic Client Registration, expand **Advanced features** and enter your credentials.
      </Step>

      <Step title="Start searching">
        Ask Gemini Spark a research question and it can call Consensus tools.
      </Step>
    </Steps>

    <Note>
      Requires access to Gemini Spark, a personal Google Account, Keep Activity turned on, and is currently available in the US. Workspace and school accounts are not supported yet.
    </Note>
  </Accordion>

  <Accordion title="Other MCP clients" icon="plug">
    Any client that supports remote MCP servers (Streamable HTTP) works. Point it at `https://mcp.consensus.app/mcp`. If your client supports OAuth, authentication is handled automatically.
  </Accordion>
</AccordionGroup>

<Frame caption="Watch: connect Consensus and run your first search">
  <iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/gcMel2guYE8?start=4" title="The Consensus MCP & Claude Connector" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowFullScreen />
</Frame>

## Using Consensus with ChatGPT Deep Research

Consensus also works with ChatGPT Deep Research. When Deep Research uses the Consensus app, it can search Consensus for relevant papers and retrieve full paper details for cited results.

<Steps>
  <Step title="Connect the Consensus app">
    Connect the Consensus app in ChatGPT using the steps above.
  </Step>

  <Step title="Start a Deep Research request">
    Start a Deep Research request in ChatGPT.
  </Step>

  <Step title="Ask ChatGPT to use Consensus">
    Ask ChatGPT to use Consensus for peer-reviewed research, for example:

    > Use Consensus to research the evidence on exercise for depression. Prioritize systematic reviews, meta-analyses, and randomized controlled trials.
  </Step>
</Steps>

Deep Research may run multiple Consensus searches, refine filters, retrieve paper details, and return a cited synthesis with direct links to papers on Consensus.

## Verify Your Connection

Try one of these in your connected client. Each link opens the question pre-filled:

| Ask                                                                        | Try it                                                                                                                                                                                                                                                              |
| -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| "What does the research say about creatine and cognitive function?"        | [Claude](https://claude.ai/new?q=What%20does%20the%20research%20say%20about%20creatine%20and%20cognitive%20function%3F) · [ChatGPT](https://chatgpt.com/?q=What%20does%20the%20research%20say%20about%20creatine%20and%20cognitive%20function%3F)                   |
| "Find meta-analyses on mindfulness for anxiety published since 2020"       | [Claude](https://claude.ai/new?q=Find%20meta-analyses%20on%20mindfulness%20for%20anxiety%20published%20since%202020) · [ChatGPT](https://chatgpt.com/?q=Find%20meta-analyses%20on%20mindfulness%20for%20anxiety%20published%20since%202020)                         |
| "Are there RCTs on intermittent fasting with more than 500 participants?"  | [Claude](https://claude.ai/new?q=Are%20there%20RCTs%20on%20intermittent%20fasting%20with%20more%20than%20500%20participants%3F) · [ChatGPT](https://chatgpt.com/?q=Are%20there%20RCTs%20on%20intermittent%20fasting%20with%20more%20than%20500%20participants%3F)   |
| "What is the strongest evidence for and against remote work productivity?" | [Claude](https://claude.ai/new?q=What%20is%20the%20strongest%20evidence%20for%20and%20against%20remote%20work%20productivity%3F) · [ChatGPT](https://chatgpt.com/?q=What%20is%20the%20strongest%20evidence%20for%20and%20against%20remote%20work%20productivity%3F) |

You should see results citing specific papers with titles, journals, years, citation counts, and direct links.

## Plans and Access

<Note>
  Your results depend on your Consensus plan, not your AI subscription (Claude Pro, ChatGPT Plus, etc. have no effect on Consensus results).
</Note>

<Tip>
  No account is needed to get started. Connect directly and try it out.
</Tip>

| Plan       | Max Page Size | Included Monthly Searches | Extra Features            |
| ---------- | ------------- | ------------------------- | ------------------------- |
| No Account | 3             | Unlimited                 | None                      |
| Free       | 10            | 30                        | Full abstracts            |
| Pro        | 300           | 250                       | Study type, key takeaways |
| Deep       | 750           | 1,000                     | Study type, key takeaways |
| Teams      | 300           | 250                       | Study type, key takeaways |

<Note>
  Max Page Size is the per-request ceiling. Requests that omit `page_size` still return the default of 20 papers.
</Note>

<Note>
  Paid plans can search beyond the included monthly limit when the account has an active metered API subscription and additional usage is enabled; those extra searches are billed to the subscription. Free plans are capped at the included limit.
</Note>

Create a free account at [consensus.app/sign-up](https://consensus.app/sign-up) or upgrade at [consensus.app/pricing](https://consensus.app/pricing).

## Enterprise and API Key Access

For enterprise access with unlimited rate limits, include your API key as a Bearer token:

```http theme={null}
Authorization: Bearer YOUR_API_KEY
```

Contact Consensus for enterprise API access at [consensus.app/home/api](https://consensus.app/home/api).

## Search Tool

The search tool searches Consensus for peer-reviewed research papers. ChatGPT Deep Research may call this tool multiple times with different queries and filters while building a research report.

### Parameters

| Parameter          | Type         | Required | Description                                                                                                                                                                         |
| ------------------ | ------------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| query              | string       | Yes      | The research question or topic to search for. Use specific academic terminology for best results.                                                                                   |
| year\_min          | integer      | No       | Exclude papers published before this year.                                                                                                                                          |
| year\_max          | integer      | No       | Exclude papers published after this year.                                                                                                                                           |
| study\_types       | string array | No       | Filter by study design. Values: rct, meta-analysis, systematic review, literature review, case report, non-rct experimental, non-rct observational study, non-rct in vitro, animal. |
| sjr\_max           | integer      | No       | Filter by journal quality (SCImago Journal Rank quartile). 1 is Q1 (highest), 2 is Q2, 3 is Q3, 4 is Q4.                                                                            |
| sjr\_min           | integer      | No       | Minimum journal ranking quartile. 1 is Q1 (highest), 4 is Q4. Excludes better (lower-number) quartiles; for example, set to 2 to keep Q2–Q4.                                        |
| human              | boolean      | No       | Set to true to include only studies involving human subjects.                                                                                                                       |
| controlled         | boolean      | No       | Set to true to include only controlled studies.                                                                                                                                     |
| sample\_size\_min  | integer      | No       | Exclude studies with sample sizes smaller than this number.                                                                                                                         |
| citation\_min      | integer      | No       | Exclude papers with fewer citations than this number.                                                                                                                               |
| medical\_mode      | boolean      | No       | Set to true for clinical, medical, or evidence-based medicine questions. Prioritizes top medical journals and clinical guidelines.                                                  |
| exclude\_preprints | boolean      | No       | Set to true to exclude preprints and return peer-reviewed papers only.                                                                                                              |
| open\_access       | boolean      | No       | Set to true to include only open-access papers.                                                                                                                                     |
| duration\_min      | integer      | No       | Minimum study duration in days. Useful for longitudinal or long-term studies.                                                                                                       |
| duration\_max      | integer      | No       | Maximum study duration in days.                                                                                                                                                     |
| country            | string       | No       | Comma-separated ISO 3166-1 alpha-2 country codes (for example `us`, `gb`) to limit to those countries of study. Unknown codes are ignored.                                          |

### Response

Each search returns:

<ResponseField name="papers" type="array">
  Array of paper objects with `title`, `authors`, `abstract`, `journal`, `year`, `citation_count`, and `url` (direct link to the paper on Consensus).
</ResponseField>

<ResponseField name="total_results" type="integer">
  Total number of papers found.
</ResponseField>

<ResponseField name="query" type="string">
  The original search query.
</ResponseField>

<Note>
  Pro plans and above also include `study_type` and `takeaway` for each paper. Enterprise includes `doi`.
</Note>

### Example Prompts

* "What does the research say about the effectiveness of remote work on productivity?"
* "Find RCTs and meta-analyses since 2020 on cognitive behavioral therapy for anxiety"
* "Search for high quality human studies on gut microbiome and mental health with at least 100 participants"
* "Recent research on large language model hallucination from top tier journals"
* "Use Consensus Deep Research to compare evidence for different treatments for insomnia"

## Research thread tools

The Consensus MCP server exposes research-thread tools for multi-turn, agentic research. Use `create_thread` to start a new thread and `add_to_thread` to continue an existing thread with a new follow-up.

### `create_thread`

Creates a new research thread and dispatches the Consensus research agent. Use this for detailed, synthesis, comparison, or multi-step research questions. For a simple list of papers, prefer the `search` tool.

#### Parameters

| Parameter      | Type   | Required | Description                                                                                                               |
| -------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------- |
| input\_message | string | Yes      | Your complete research brief. Include the full question, scope, constraints, and any ordered sub-tasks.                   |
| mode           | string | No       | Research depth. `pro` (default, fast) or `deep` (multi-step literature review, requires a signed-in paid caller).         |
| filters        | object | No       | Optional structured filters. Supports the same keys as the Search Tool.                                                   |
| attachments    | object | No       | Optional attachments. `{"paper_attachments": [{"paper_id": "...", "es_hash_paper_id": "..."}], "collection_ids": [123]}`. |

### `add_to_thread`

Adds a new interaction to an existing research thread. Use this only for a genuinely new follow-up after seeing the previous interaction's results. Do not use it to decompose a single request across multiple calls — put the whole request in the `create_thread` brief instead.

#### Parameters

| Parameter      | Type   | Required | Description                                                                                                                         |
| -------------- | ------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| thread\_id     | string | Yes      | The `thread_id` returned by `create_thread`.                                                                                        |
| input\_message | string | Yes      | A new follow-up question. The agent uses thread context and can reference papers from earlier turns.                                |
| mode           | string | No       | Research depth. `pro` (default) or `deep` (requires a signed-in paid caller).                                                       |
| title          | string | No       | The thread title from the `create_thread` response. Used only for the deep-link label; if omitted, the URL uses an `untitled` slug. |
| filters        | object | No       | Optional structured filters. Supports the same keys as `create_thread`.                                                             |
| attachments    | object | No       | Optional attachments. Same shape as `create_thread`.                                                                                |

### Dispatch response

Both tools return an immediate dispatch confirmation while the agent runs asynchronously.

<ResponseField name="thread_id" type="string">
  The thread identifier.
</ResponseField>

<ResponseField name="interaction_id" type="string">
  The new interaction identifier.
</ResponseField>

<ResponseField name="title" type="string">
  The thread title used in the deep-link label.
</ResponseField>

<ResponseField name="status" type="string">
  `running` while the agent is working.
</ResponseField>

<ResponseField name="mode" type="string">
  `pro` or `deep`.
</ResponseField>

<ResponseField name="url" type="string">
  Direct link to view the thread in Consensus.
</ResponseField>

<ResponseField name="message_for_user" type="string">
  Human-readable confirmation with the Consensus link.
</ResponseField>

<ResponseField name="display_first" type="boolean">
  Whether the result should be displayed first.
</ResponseField>

<ResponseField name="poll_after_seconds" type="integer">
  Minimum seconds to wait before polling for completion (30).
</ResponseField>

<ResponseField name="max_wait_seconds" type="integer">
  Maximum recommended wait time: 180 seconds for `pro`, 600 seconds for `deep`.
</ResponseField>

<ResponseField name="next_steps" type="string">
  Polling instructions for the model.
</ResponseField>

<Note>
  `deep` mode requires a signed-in paid Consensus account. Free accounts that request `deep` will receive a paid-account error.
</Note>

## Troubleshooting

<AccordionGroup>
  <Accordion title="OAuth login is only supported for streamable HTTP servers (Codex)">
    You added the server with `-- --transport http` instead of `--url`. Remove and re-add:

    ```bash theme={null}
    codex mcp remove consensus
    codex mcp add consensus --url https://mcp.consensus.app/mcp
    codex mcp login consensus
    ```
  </Accordion>

  <Accordion title="Authentication successful but server reconnection failed (Claude Code)">
    Fully quit and restart Claude Code. Do not just use the reconnect option. Your credentials are saved and will work after restart.
  </Accordion>

  <Accordion title="Tools stop working after a few hours (401 errors)">
    Your OAuth token has expired. Re-authenticate:

    * **Claude Code:** Type `/mcp`, select Consensus, choose Clear authentication, re-authenticate, then restart Claude Code
    * **Codex:** Run `codex mcp logout consensus` then `codex mcp login consensus`
    * **Cursor:** Disconnect and reconnect the server in Settings then Tools and MCP
    * **Claude Desktop:** Disconnect and reconnect the connector in Settings then Connectors
    * **ChatGPT:** Disconnect and reconnect the Consensus app from ChatGPT Apps
  </Accordion>

  <Accordion title="Server shows failed or no tools appear">
    * Verify the URL includes `/mcp` at the end
    * Remove and re-add the server using the commands above
    * Restart your client completely
  </Accordion>

  <Accordion title="Consensus search has not been loaded yet (Claude Code)">
    This is normal. Claude loads tool definitions on demand when many tools are present. Retry the query and it will work on the second attempt.
  </Accordion>

  <Accordion title="ChatGPT Deep Research is not using Consensus">
    Confirm the Consensus app is connected in ChatGPT Apps, then ask Deep Research to use Consensus explicitly. For example:

    > Use Consensus to find peer-reviewed papers on this question and cite the strongest evidence.

    Deep Research decides when to call connected tools, so it may not call Consensus for questions that are not research-focused.
  </Accordion>

  <Accordion title="No results found">
    Try broadening your search query or removing filters. Use specific academic terminology rather than casual language.
  </Accordion>

  <Accordion title="Monthly search limit reached">
    Paid plans can continue searching past the included monthly limit when the account has an active metered API subscription and additional usage is enabled; those extra searches are billed to the subscription. Free plans must wait for the next monthly reset or upgrade.
  </Accordion>

  <Accordion title="Rate limit exceeded (429 error)">
    Wait a few moments before searching again. If using automated workflows, implement backoff logic between requests.
  </Accordion>
</AccordionGroup>

## Security

* **Endpoint:** Only connect to the official URL: `https://mcp.consensus.app/mcp`
* **API keys:** Store securely using environment variables. Never share keys in prompts or public conversations. Rotate if compromised.
* **Data handling:** Search queries are sent to the Consensus API over HTTPS/TLS. Results contain publicly available academic paper metadata. No personal data is stored from MCP requests.

## Supported Platforms

| Platform                 | Auth         | Status    |
| ------------------------ | ------------ | --------- |
| Claude Desktop           | OAuth        | Supported |
| ChatGPT                  | OAuth        | Supported |
| ChatGPT Deep Research    | OAuth        | Supported |
| Claude Code              | OAuth        | Supported |
| Codex                    | OAuth        | Supported |
| Cursor                   | OAuth        | Supported |
| VS Code (GitHub Copilot) | Config       | Supported |
| Windsurf                 | Config       | Supported |
| Gemini Spark             | OAuth        | Supported |
| Other MCP Clients        | Bearer token | Supported |

## Additional Resources

<CardGroup cols={2}>
  <Card title="Consensus Website" icon="globe" href="https://consensus.app">
    Explore the Consensus research platform.
  </Card>

  <Card title="API Documentation" icon="code" href="/api-reference/query-for-relevant-papers">
    Full reference for the Consensus search API.
  </Card>

  <Card title="MCP Specification" icon="book-open" href="https://modelcontextprotocol.io">
    Learn more about the Model Context Protocol.
  </Card>

  <Card title="MCP server on GitHub" icon="github" href="https://github.com/Consensus-NLP/consensus-mcp">
    View the source, report issues, and star the Consensus MCP server.
  </Card>
</CardGroup>
