The MCP server lives at:
https://mcp.trustdata.tech/mcp/
Most agents connect with OAuth: you sign in to TrustData in the browser and approve access. Use an API token for scripts, CI, or a client that doesn't support OAuth.
# Plugin: MCP server + TrustData skill in one step
claude plugin marketplace add trstdata/trustdata-integrations
claude plugin install trustdata@trustdata
# Or the MCP server on its own
claude mcp add --transport http trustdata https://mcp.trustdata.tech/mcp/
Settings → Connectors → Add custom connector
Name: TrustData
URL: https://mcp.trustdata.tech/mcp/
// ~/.cursor/mcp.json
{
"mcpServers": {
"trustdata": {
"url": "https://mcp.trustdata.tech/mcp/"
}
}
}
Settings → Connectors → Add MCP server
URL: https://mcp.trustdata.tech/mcp/
Auth: OAuth
On the first tool call (in Claude Code, run /mcp and pick trustdata), your browser opens TrustData:
The connection now appears in Settings → Connected apps, where you can revoke it at any time. Access tokens refresh automatically; if the agent goes unused for 30 days, you'll be asked to sign in again.
read:geo_visibility, read:seo_keywords, read:recommendations and write:recommendations. Select all scopes ticks everything.td_live_… token. This is the only time it's shown. Store it in a password manager.read:metrics) and recent signals (read:alerts), so add those two scopes to the preset.After you issue the token, the dashboard shows a Connect an agent panel with ready-made snippets. You can also use these:
claude mcp add --transport http trustdata https://mcp.trustdata.tech/mcp/ \
--header "Authorization: Bearer td_live_YOUR_TOKEN"
// ~/.cursor/mcp.json
{
"mcpServers": {
"trustdata": {
"url": "https://mcp.trustdata.tech/mcp/",
"headers": { "Authorization": "Bearer td_live_YOUR_TOKEN" }
}
}
}
// ~/.gemini/settings.json
{
"mcpServers": {
"trustdata": {
"httpUrl": "https://mcp.trustdata.tech/mcp/",
"headers": {
"Authorization": "Bearer td_live_YOUR_TOKEN"
}
}
}
}
export TRUSTDATA_TOKEN=td_live_YOUR_TOKEN # or: trustdata login --token td_live_…
trustdata actions list --mine # what this token can call
trustdata properties list
Transport: Streamable HTTP
URL: https://mcp.trustdata.tech/mcp/
Header: Authorization: Bearer td_live_YOUR_TOKEN
The dashboard snippet may show https://app.trustdata.tech/mcp/. That address accepts API tokens too.
Restart the agent. You should see a trustdata connection in its MCP or tools panel.
Ask your agent something that exercises a tool:
"List my TrustData properties and the metrics and dimensions I can report on."
The agent calls list_properties and list_fields. If you see your properties and a list of fields (sessions, spend, session__channel_group, keyword__text, …), you're connected. Only what your scopes reach is listed, so nothing it names will be refused.
The real value is letting the agent drive an end-to-end loop. Open the SEO × GEO playbook and paste it as a system prompt. The agent will diagnose, propose hypotheses, and record trackable recommendations in one conversation.
Every token and OAuth connection gets the rate tier of your plan, automatically:
| Rate tier | Cap |
|---|---|
| Measure | 30 requests/min |
| Optimize | 300 requests/min |
| Prove | 3,000 requests/min |
See pricing for which plan carries which tier. Each call reads at most 400 days and returns at most 10,000 rows.
Errors come back as [CODE] message, and the message says how to fix the call.
| Error | Cause | Fix |
|---|---|---|
401 | No token, a revoked or expired token, or an OAuth session that needs a new sign-in | Issue a new token in Developer, or reconnect the client and sign in again. |
403 SCOPE_DENIED | The grant is missing the scope the tool needs. The message names it. | Tokens can't be edited: issue a replacement with the scope, then revoke the old one. For OAuth, reconnect and approve the scope. |
422 INVALID_ARGUMENT | A malformed argument, a property or prompt ID outside your workspace, or a hypothesis under 20 characters | Fetch IDs with list_properties / list_brand_prompts. Write hypotheses as "If we X, then Y because Z". |
422 WINDOW_TOO_LARGE | Date range over 400 days | Narrow the range. |
422 DIMENSION_NOT_ALLOWED | A dimension the dataset doesn't carry, or one your scopes don't allow (country needs read:geo, for example) | Pick dimensions from list_fields. |
422 QUERY_TOO_LARGE | The query would scan too many rows | Narrow the dates, add a filter, or use fewer dimensions. |
429 RATE_LIMITED | Over your plan's rate cap | Wait for the retry window, or batch fewer calls. |
| Agent doesn't see TrustData tools | The grant covers none of them, or the client wasn't restarted | Grant the scopes you need, then reconnect. |