MCP server
The MCP server gives your agents the same view our hosted fraud manager has: decisions, device and account histories, and the review queue with recommendations and evidence. A coding agent can use it to check your integration (“why was this sign-up denied?”), and your own fraud agent can use it to work the queue.
A key with mcp:read gets the read-only tools. A key with mcp:write also gets the casework tools: it can decide cases, add notes, label decisions, and change your allow, hold, and block lists, the same things a person does in the console. Rules and keys stay in the console and the API.
Connect
Section titled “Connect”The server speaks MCP’s streamable HTTP transport at https://mcp.opencontext.com/mcp. Use a secret key with the mcp:read scope, or mcp:write to let the agent work cases. The key picks your account and environment: a sandbox key sees sandbox data only, and no tool takes an account or environment argument.
{ "mcpServers": { "fraud": { "type": "http", "url": "https://mcp.opencontext.com/mcp", "headers": { "Authorization": "Bearer oc_test_…" } } }}With Claude Code:
claude mcp add --transport http fraud https://mcp.opencontext.com/mcp --header "Authorization: Bearer $MCP_KEY"Public tools (no key)
Section titled “Public tools (no key)”Connect without a key, or before you have one, and the server offers three tools that hold no account data. A coding agent can use them to learn OpenContext and plan an integration:
| Tool | Returns |
|---|---|
search_docs |
The best matching pages of these docs, in Markdown, with their links. |
get_integration_plan |
Step-by-step integration for one event type (signup, login, checkout, …), with the pages to read. |
explain_reason_code |
What a reason code means, or the whole catalog. |
claude mcp add --transport http fraud https://mcp.opencontext.com/mcpCalls without a key are limited per IP address. Keyed servers get these tools too.
| Tool | Returns |
|---|---|
search_decisions |
Recent decisions, newest first, narrowed by device, account, IP, event type, recommendation, or a decision or request ID. |
get_decision |
One decision in full, with the fraud manager’s recommendation if it made one. |
get_device_history |
A device’s decisions, linked accounts, outcomes, locations, networks, and agents. |
get_account_history |
The same for an account, with its linked devices. |
list_review_items |
The open review queue (30 days), each item with its recommendation. |
explain_review_item |
One review item with the recommendation, its evidence for and against, and the device and account timelines. |
list_cases |
Open cases (30 days): linked review items grouped by what they share, each with the fraud manager’s call and how many items wait. |
get_case |
One case with its story, evidence, links, and every item. An email or phone link is matched privately; its value is never shown. |
list_entries |
Allow, hold, and block list entries in force. |
get_savings |
Money saved over a period (month, last_month, 30d, 90d, or 365d): confirmed and awaiting, the return on your plan, by integration point and week, the largest saves, and fraud that got through. Amounts are in minor units of your reporting currency, with a formatted copy. |
Casework tools (mcp:write)
Section titled “Casework tools (mcp:write)”| Tool | Does |
|---|---|
decide_case |
Reports one outcome on every waiting item of a case: approve (the fraud manager’s call), good, fraud, or abuse, with an optional note. |
add_case_note |
Adds a note to the case timeline for your team. |
label_decision |
Labels one decision: approve, good, fraud, or abuse, with an optional outcome type. |
add_list_entry |
Blocks, holds, or allows a device, account, IP or range, email domain, or agent family, for 1 to 365 days or until removed. |
remove_list_entry |
Ends a list entry now. |
Every change is made as the key: the console shows it on the case timeline and in the audit log as an agent named by the key ID, and each outcome can be withdrawn like any other. Labels from an agent help the fraud manager learn but count for less than a person’s when it earns autonomy. Use a sandbox key while you try a workflow.
Good prompts to try
Section titled “Good prompts to try”- “Find decisions for account cust_1842 this week and explain the denies.”
- “List open review items and group them by the fraud manager’s recommendation.”
- “Show the history of the device on decision dec_01M8YGM5XC012R9ZCQKTSX9RR7.”
- With
mcp:write: “Work the open cases. Approve the fraud manager’s call where it is high confidence and nothing argues against it, block the shared device for 30 days, and leave the rest with a note.”
- Tools read from the query store, which trails live decisions by a few seconds.
- Give the key only the scope it needs.
mcp:readcannot change anything;mcp:writecan label and change lists but never makes decisions, changes rules, or touches keys. - Each key may make 5 calls a second (bursts of 20) with up to 4 running at once; past that a call gets
429 rate_limitedwithRetry-After. Each query stops after 30 seconds.