---
updatedAt: 2026-04-17T20:45:20.000Z
agentTools:
  projectIndex: https://developer.onetrust.com/onetrust/llms.txt
---

# MCP Server

The **OneTrust Developer Portal Model Context Protocol (MCP) server** enables AI‑powered code editors like **Cursor** and **Windsurf** to interact directly with your **OneTrust Developer Portal APIs** and **documentation**—so developers can ask questions, generate code, and run tasks without leaving their editor.

## What is MCP?

**Model Context Protocol (MCP)** is an open standard that lets AI applications securely access external tools and data via a simple, structured interface (tools, resources, prompts).

The OneTrust Developer Portal MCP server provides AI agents with:

* **Direct API access** to OneTrust Developer Portal functionality
* **Documentation search** for up‑to‑date answers
* **Real‑time data** from your OneTrust Developer Portal account
* **Code generation** assistance for common integrations

## Endpoint

OneTrust Developer Portal hosts a **remote MCP** endpoint:

```
https://developer.onetrust.com/mcp
```

Currently, **no authentication headers** are required.

## Quick Use‑Cases

1. **API quickstarts in‑editor**\
   Prompt: “Generate a minimal Node.js client for the *List Inventories by Filter Criteria* API, including pagination and error handling.”

2. **Consent & governance reporting**\
   Prompt: “Create a script to retrieve DSAR requests filtered by request type and export a CSV summary.”

3. **Assessments automation**\
   Prompt: “Write code to sort assessments by `updatedDT`; if unsupported, fall back to `status` and `templateName`.”

4. **Attachments aggregation**\
   Prompt: “Fetch all attachment BLOB URLs for an assessment and summarize them for email.”

5. **Docs answers and samples**\
   Prompt: “Show the OAuth 2.0 flow and generate a token exchange sample for OneTrust APIs.”

## One‑Click Installation

<MCPInstallButtons />

### Manual Configurations

#### Cursor (`mcp.json`)

```json
{
  "mcpServers": {
    "OneTrust Developer Portal": {
      "url": "https://developer.onetrust.com/mcp"
    }
  }
}
```

#### Windsurf (`mcp_config.json`)

```json
{
  "mcpServers": {
    "OneTrust Developer Portal": {
      "serverUrl": "https://developer.onetrust.com/mcp"
    }
  }
}
```

## Testing Your MCP Setup

1. Open your editor (Cursor or Windsurf).
2. Start a new chat with the AI assistant.
3. Try prompts like:
   * “Create a Quick Start for authenticating to OneTrust APIs using OAuth 2.0.”
   * “Show an example of the List Inventories by Filter Criteria API with hierarchical org filtering.”
   * “Generate a script to export DSAR requests filtered by request type.”
   * “Retrieve all assessment attachment BLOB URLs and summarize them.”

## Troubleshooting

* **Cursor won’t connect:** Confirm the URL and restart Cursor after editing `mcp.json`.
* **Windsurf shows no tools:** Verify `serverUrl` in `mcp_config.json`, then refresh in Cascade settings.

# Sibling pages

* [OneTrust API Reference](https://developer.onetrust.com/onetrust/reference/onetrust-api-reference.md)
* [Quick Start Guide: APIs](https://developer.onetrust.com/onetrust/reference/quick-start-guide.md)
* [Environment URLs](https://developer.onetrust.com/onetrust/reference/url-variables-for-apis-sdks.md)
* [OAuth 2.0](https://developer.onetrust.com/onetrust/reference/oauth-20.md)
* [LLMs.txt](https://developer.onetrust.com/onetrust/reference/llmstxt-ai-integration-guide.md)
* [Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview.md)
* [Languages](https://developer.onetrust.com/onetrust/reference/supported-languages-and-html-language-codes-1.md)
* [Sunset & Deprecation](https://developer.onetrust.com/onetrust/reference/onetrust-api-sunsetting-deprecation-guidelines.md)
* [Pagination](https://developer.onetrust.com/onetrust/reference/understanding-implementing-pagination.md)
* [System Status](https://developer.onetrust.com/onetrust/reference/system-status.md)