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.nottingham.edu.cn/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.nottingham.edu.cn/mcp"
}
}
}Windsurf (mcp_config.json)
mcp_config.json){
"mcpServers": {
"OneTrust Developer Portal": {
"serverUrl": "https://developer-onetrust-com.ezproxy.nottingham.edu.cn/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.