Skip to main content
Origin’s Model Context Protocol (MCP) server lets you query your endpoint and agent observability data from any MCP client that supports remote servers — Claude (desktop and web), Claude Code, Cursor, Cline, and others. Ask natural-language questions about your AI agent activity, prompt usage, model spend, and endpoint behavior, and the LLM you’re using translates them into structured queries against your Origin tenant. This page covers what the server does, how to connect, sample prompts, common errors, and how to get support.

What the MCP server gives you

Origin’s MCP exposes read-only access to your analytics graph — the same data that powers the Origin console. From an MCP client you can answer questions like:
  • Which agents are running on which endpoints, and what models are they calling?
  • How much are we spending on each model, broken down by department or team?
  • What prompts fail most often, and where?
  • Which sessions had the longest tool-call chains yesterday?
The server is read-only. It cannot modify endpoints, agents, alerts, or any other Origin state.

Connect a client

The server is a remote MCP server. It speaks Streamable HTTP and uses OAuth 2.1 with Dynamic Client Registration, so any MCP client that supports remote HTTP servers with OAuth can connect. The first time you connect, your client opens a browser window so you can sign in to Origin. After that, your client refreshes tokens automatically.
You do not need to provision API keys, copy bearer tokens, or paste anything from the Origin console. The OAuth flow handles everything.
In the Claude apps, remote MCP servers are added as custom connectors. Custom connectors are available on Pro, Max, Team, and Enterprise plans.
Do not add Origin to claude_desktop_config.json. That file only supports local servers that Claude launches with a command. A url entry there will not connect, and depending on your Claude version it can stop the app from loading your other MCP servers.
Pro and Max plans
  1. Open Settings → Connectors.
  2. Click Add custom connector.
  3. Enter a name (for example, Origin) and the server URL: https://mcp.prod.originhq.com/mcp. Leave the Advanced settings OAuth fields blank.
  4. Click Add, then click Connect and sign in with your Origin account in the browser window that opens.
Team and Enterprise plans
  1. A Claude organization Owner adds the connector once in Organization settings → Connectors → Add custom connector, using the URL above.
  2. Each member then opens Settings → Connectors, finds Origin in the list, clicks Connect, and signs in with their own Origin account.
Once connected, enable Origin from the + (tools) menu in a chat if it isn’t already on, then ask a question.
Custom connectors connect from Anthropic’s cloud, not from your machine. This works with Origin’s production server, which is publicly reachable.

Tools exposed

Your client discovers these tools automatically once connected. You don’t call them yourself; the LLM picks the right one based on your question.

Schema and query tools

The LLM typically uses these in order: read the map, pull details for the entities it needs, check the query grammar, then run the query. analytics_query parameters (the LLM fills these in for you):
Queries that exceed your tenant’s cost budget are rejected with a suggestion to narrow the scope.

Conversation tools

Sample prompts

Once connected, you can ask questions in plain English. Examples to try:
  • “What models are my Claude Code agents calling this week, and on which endpoints?”
  • “Show me total token spend by department over the last 30 days, sorted highest first.”
  • “Which prompts are failing most often? Group by model and tool name.”
  • “Find the ten longest agent sessions yesterday and show me which tools each one called.”
  • “Compare prompt latency p50 and p95 across our models for the past two weeks.”
  • “Which endpoints had AI activity for the first time this week?”
  • “How many Claude Code sessions did each engineer run this week?”
  • “Show me MCP server connections by endpoint — which agents are connecting to which servers?”
For the best results, give the LLM enough specificity to compose a query: include a time range, a grouping dimension, and what you want to measure. If the LLM asks clarifying questions, answer them — it’s usually trying to disambiguate between similar fields.

Troubleshooting

First, check how you added it:
  • Claude desktop or web: Origin must be added under Settings → Connectors, not in claude_desktop_config.json. If you added a url entry to that file, remove it, fully quit and reopen Claude, and add Origin as a custom connector instead.
  • Cline: Make sure the transport is Streamable HTTP ("type": "streamableHttp"), not SSE.
  • All clients: Confirm the URL is exactly https://mcp.prod.originhq.com/mcp and that you completed sign-in.
If it still doesn’t work, fully quit and reopen the client and check its MCP logs for connection errors.
Your client needs to support OAuth for remote MCP servers. Make sure you’re on a recent version and update if needed. In Claude Code, run /mcp, select origin, and choose Authenticate to restart the sign-in flow.
On Team and Enterprise plans, only organization Owners can add custom connectors. Ask an Owner to add Origin in Organization settings → Connectors. Members can then connect from Settings → Connectors. Custom connectors aren’t available on the Free plan.
Your token may have expired and your client may not be refreshing it. Disconnect and reconnect the server in your client’s settings. If the problem persists, your Origin account may not have access to the tenant you’re trying to query — confirm in the Origin console that you can see the data there first.
The LLM composed a query the server couldn’t validate — usually a field referenced on the wrong entity, or a filter value of the wrong type. These come back as visible errors so the LLM can self-correct on the next turn. If it loops, ask the LLM to call analytics_describe_entities for the entities it’s querying and analytics_query_guide before retrying.
You asked for something that would scan more rows than your tenant’s per-query budget allows. The error message includes a suggestion — usually: narrow the time range, add a filter, or sample the result. Time-bound your question more tightly and try again.
The LLM may have applied a filter that doesn’t match anything. Ask it to show the query it ran and check the filters. Common culprits: a hostname filter with the wrong case, or a time range that excludes the data you care about. Some entities keep data for a limited time, so very old data may no longer be available.
Analytics queries scale with the data they scan. If a question consistently takes more than 10–20 seconds, try narrowing the time range or asking for an aggregate (counts, top-N) instead of raw rows.

Versioning and protocol

Discovery metadata is published at https://mcp.prod.originhq.com/.well-known/oauth-protected-resource for clients that need it. You should not need to configure this manually.

Data, privacy, and audit

Every tool call is recorded to Origin’s audit log with the calling user, the tool name, a hash and snapshot of the arguments, the row count, bytes scanned, elapsed time, and outcome. Audit records are scoped per tenant and retained for 30 days.
Queries run with your user identity — you can only see what your Origin role allows you to see in the console. See Access Control.

Get support

When reporting an issue, include your MCP client and version, the prompt you ran, and any error message the client returned. If the server returned a structured error, the message is usually enough to pinpoint the problem.