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.ezproxy.viu.ca/mcp
Currently, no authentication headers are required.
Quick Use‑Cases
-
API quickstarts in‑editor
Prompt: “Generate a minimal Node.js client for the List Inventories by Filter Criteria API, including pagination and error handling.” -
Consent & governance reporting
Prompt: “Create a script to retrieve DSAR requests filtered by request type and export a CSV summary.” -
Assessments automation
Prompt: “Write code to sort assessments byupdatedDT; if unsupported, fall back tostatusandtemplateName.” -
Attachments aggregation
Prompt: “Fetch all attachment BLOB URLs for an assessment and summarize them for email.” -
Docs answers and samples
Prompt: “Show the OAuth 2.0 flow and generate a token exchange sample for OneTrust APIs.”
One‑Click Installation
Manual Configurations
Cursor (mcp.json)
mcp.json){
"mcpServers": {
"OneTrust Developer Portal": {
"url": "https://developer-onetrust-com.ezproxy.viu.ca/mcp"
}
}
}Windsurf (mcp_config.json)
mcp_config.json){
"mcpServers": {
"OneTrust Developer Portal": {
"serverUrl": "https://developer-onetrust-com.ezproxy.viu.ca/mcp"
}
}
}Testing Your MCP Setup
- Open your editor (Cursor or Windsurf).
- Start a new chat with the AI assistant.
- 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
serverUrlinmcp_config.json, then refresh in Cascade settings.