Integrate Using Cursor / Claude Code (MCP Server)

Connect AI development tools to RiskOS™ using the MCP Server to access documentation, inspect workflows, and retrieve API schemas.

Overview

The RiskOS™ MCP Server connects AI development tools like Cursor and Claude Code to your RiskOS™ account. Use it to:

  • Access the embedded RiskOS™ documentation set from your assistant.
  • Retrieve the current RiskOS™ OpenAPI specification and API schemas.
  • Check your account configuration, including use cases and workflows.
  • Guide integration work with RiskOS™-specific prompts.

Quickstart

Connect your AI development tool to the RiskOS™ MCP Server in four steps. Each step links to more detailed information in the following sections.

  1. Generate an MCP Server Key. In the RiskOS™ Dashboard, go to Developer Workbench > API & SDK Keys, create a key, and copy the token. See MCP keys.

  2. Add the server to your client. Configure your MCP client with the Sandbox base URL https://mcp.riskos.socure.com/sandbox and your key as a bearer token. See Client configuration examples.

  3. Run your first prompt. Start a session in your client and ask a question such as "What use cases are configured for my account?"

  4. Confirm the response. The assistant calls the list_usecases tool and returns your account's use cases. If your client cannot connect, see Troubleshooting.

    Example response:

    Your account has the following use cases configured:
    - consumer_onboarding (Consumer Onboarding)
    - business_onboarding (Business Onboarding)
    - account_takeover (Account Takeover)

Key features

  • Embedded RiskOS™ documentation access:
    Agents can retrieve the full RiskOS™ documentation set: concepts, fields, workflows, and API behavior.
  • Retrieve the latest API specification:
    Retrieve the current RiskOS™ OpenAPI specification for code generation, validation, or starting a new integration. You can also browse the API Reference directly.
  • Check RiskOS™ configuration (workflows):
    List the use cases and workflows configured in your RiskOS™ account to confirm setup and reference workflow identifiers programmatically.
  • Use RiskOS™-specific prompts:
    The server includes prompts tailored for RiskOS™ development, helping agents provide accurate, implementation-ready guidance.
📘

Note:

MCP Server access uses MCP Server Keys for authentication, including for organizations that sign in to RiskOS™ using Single Sign-On (SSO). See MCP keys.


How it works

The RiskOS™ integration ecosystem uses a hybrid architecture of Logic and Data to provide AI assistants with both procedural expertise and real-time environment context.

High impact: the RiskOS™ Integration Skill

The RiskOS™ Integration Skill is a critical feature, acting as the "operating manual" for your assistant to integrate with RiskOS™. It defines standard integration patterns to ensure your agent follows best practices for integration in a guided path rather than guessing integration steps.

  • Instructional Logic: Teaches agents to handle evaluation decisions from RiskOS™ (Accept, Reject, Review).
  • Task Automation: Guides assistants through multi-step integration sequences like managing API Keys or setting up webhooks.
  • Expert Mode Reasoning: Ensures integration code generation is seamless and manages error-handling effectively.

Install from here RiskOS™ Integration Skill

RiskOS™ MCP Server (the "Data Layer")

The RiskOS™ MCP Server provides an interface to your environment, acting as the dynamic data source for all development tasks.

  • Real-time Retrieval: Fetch the latest documentation, API schemas, and workflow metadata directly from your account.
  • Account Discovery: Programmatically inspect your organization's specific solutions and active workflows.

Component comparison

FeatureRiskOS™ Agent Skill (Logic)RiskOS™ MCP Server (Data)
RoleProcedural logic and expert instructions.Standardized interface for platform data.
Primary GoalTeaches the agent how to implement.Shows the agent what is configured.
CapabilitiesDecision patterns and error handling.Live docs, API schemas, and workflows.
Data ScopeStatic logic and reference artifacts.Dynamic platform state.
📘

Note:

The RiskOS™ MCP Server provides documentation, schemas, workflow metadata, and webhook management. It does not execute transactions or evaluations.

flowchart LR

    subgraph Client["Your environment"]
        A["AI assistant"]
        B["RiskOS™ Skill"]
        C["MCP client"]
    end

    subgraph RiskOS["RiskOS™ platform"]
        D["RiskOS™ MCP server"]
        E["Documentation"]
        F["OpenAPI spec"]
        G["Workflows"]
    end

    A --> C
    C --> D

    D --> E
    D --> F
    D --> G

    B -.->|enhances| A

MCP keys

RiskOS™ supports MCP Server Keys for authenticating to the RiskOS™ MCP Server. MCP Server Keys provide a secure, streamlined authentication method and enable MCP Server access for all customers, including organizations that use Single Sign-On (SSO).

⚠️

Warning:

Username and password authentication for the MCP Server is no longer supported after July 21, 2026.

Manage MCP server keys

Create, view, rotate, and delete MCP Server Keys from Developer Workbench > API & SDK Keys in the RiskOS™ Dashboard. For the full key-management workflow, see the canonical Manage API & SDK Keys page.


Install and configure

The RiskOS™ MCP Server exposes a simple HTTP interface compatible with any MCP-enabled client, including VS Code, Cursor, and other AI-driven development tools. Once configured, your AI assistant can automatically access RiskOS™ documentation, API schemas, and development guidance.

The MCP Server provides separate endpoints for the Sandbox and Production environments. Use the Sandbox endpoint for testing and integration, and the Production endpoint for live traffic. Authenticate to either environment with your MCP Server Key.

SettingDescriptionValue
ProtocolAll MCP requests are sent over standard HTTP.HTTP
Base URL — SandboxEndpoint for the Sandbox environment, used for testing and integration.https://mcp.riskos.socure.com/sandbox
Base URL — ProductionEndpoint for the Production environment, used for live traffic.https://mcp.riskos.socure.com/prod
AuthenticationToken-based authentication using an MCP Server Key.Authorization: Bearer YOUR_MCP_SERVER_KEY

Install the RiskOS™ Skill (recommended)

Before you configure your client, install the RiskOS™ Integration Skill. The MCP server provides live data, and the Skill gives your assistant the "Expert Mode" logic for building integrations, handling errors, and following Socure best practices. Installing it requires Node.js v20.18.1+.

ClientHow to install
Claude DesktopClone or download the repo to ~/.claude/skills/riskos-integration-skill/, or run npx skills add socure-inc/riskos-integration-skill -g.
Claude Code (CLI)Run npx skills add socure-inc/riskos-integration-skill.
CursorGo to Cursor Settings > Rules, Skills, Subagents and add a new Rule from GitHub with the Remote URL https://github.com/socure-inc/riskos-integration-skill.git, or run npx skills add socure-inc/riskos-integration-skill (installs to .cursor/skills/).
VS CodeRun npx skills add socure-inc/riskos-integration-skill -g.

Client configuration examples

📘

Note:

  • Client configuration steps may differ slightly depending on the tool you are using.
  • The RiskOS™ MCP Server has been tested with:
    • Claude Desktop app
    • Claude Code (CLI)
    • Cursor
    • VS Code
  • Refer to your specific MCP client’s documentation for details on where to define the base URL and authentication headers.

Claude Desktop

Claude uses a static configuration for MCP servers. Because Claude does not support interactive credential prompts, you must provide your MCP Server Key directly in the server configuration.

Prerequisites

  • Node.js v20.18.1+: Required for the mcp-remote transport layer.

Configure the MCP server

  1. Copy your MCP Server Key from Developer Workbench > API & SDK Keys in the RiskOS™ Dashboard. If you don't have one yet, see MCP keys to create one.

  2. In Claude Desktop, go to Settings > Developer and click Edit Config. This will take you to the Claude Desktop config file in your filesystem claude_desktop_config.json.

  3. Paste the following configuration into the mcpServers object. Replace YOUR_MCP_SERVER_KEY with the token from Step 1.

    {
      "mcpServers": {
        "socure-dev-assist": {
          "command": "npx",
          "args": [
            "-y",
            "mcp-remote",
            "https://mcp.riskos.socure.com/sandbox",
            "--header",
            "Authorization: Bearer YOUR_MCP_SERVER_KEY"
          ]
        }
      }
    }

    Note: This example connects to the Sandbox environment. To connect to Production, use https://mcp.riskos.socure.com/prod.

  4. Restart Claude to apply the configuration.

  5. Once connected, start a new session with Claude to call RiskOS™ MCP tools using natural-language prompts.


Available tools

The RiskOS™ MCP Server provides the following tools for retrieving documentation, exploring workflows, and supporting integration development. The Environment column shows where each tool is available.

ToolDescriptionEnvironment
ask_docsGeneral RiskOS™ documentation, feature explanations, and API guidance (not account-specific).Sandbox, Production
add_webhookCreate and configure a new webhook endpoint for this account.Sandbox, Production
update_webhookModify an existing webhook configuration for this account.Sandbox, Production
list_webhooksRetrieve all webhooks currently configured in this account.Sandbox, Production
list_eventsRetrieve webhook events available for RiskOS™ in general.Sandbox, Production
list_testcasesRetrieve test cases configured in this account to help with API Integration.Sandbox only
list_usecasesRetrieve use cases configured for this account.Sandbox, Production
list_workflowsRetrieve workflows configured for this account.Sandbox, Production
integration_checklistView integration steps configured for this account to help integrate with RiskOS™. These steps are specific to the customer’s workflow.Sandbox only

Example usage:

  • What fields are required for Consumer Onboarding?
  • Which workflows are available for Business Onboarding?
  • What steps do I need to complete to integrate Verify Plus?

Advanced usage:

  • Use the list_usecases tool to retrieve the list of available use cases.
  • Use the list_workflows tool to identify active workflows. If there are no workflows - remind me to activate one in the RiskOS™ Dashboard.

Try it: sample questions

After you connect, try prompts like these to confirm your assistant can reach the MCP Server and to explore your account.

GoalPromptTool called
Confirm your connection"What use cases are configured for my account?"list_usecases
Find active workflows"Which workflows are active for Consumer Onboarding?"list_workflows
Plan an integration"What steps do I need to complete to integrate Verify Plus?"integration_checklist
Get test data"List the sandbox test cases for the consumer_onboarding use case so I can test my integration."list_testcases
Set up webhooks"List my webhooks, then add one for https://example.com/riskos-webhook for the events I should use."list_webhooks, list_events, add_webhook
Learn how a feature works"How does a RiskOS™ workflow evaluate a request?"ask_docs

Prompt modes

Prompts guide how the assistant reasons, not what data it can access. They do not call MCP tools directly.

These modes help the assistant produce higher-quality explanations or integration-level code depending on your task.

PromptDescription
documentationSwitches the assistant into “RiskOS™ documentation expert” mode. Best for conceptual explanations, workflow overviews, and clarifying platform behavior.
integrationSwitches the assistant into “RiskOS™ integration engineer” mode. Best for generating code samples, request payloads, API calls, and step-by-step implementation guidance.

Example usage:

  • documentation: Explain how a RiskOS™ workflow evaluates a request.
  • integration: Generate a Python example for calling the Evaluation API.

Resources

Resources expose static, machine-readable artifacts suitable for code generation, schema validation, and IDE integration.

ResourceDescription
riskos_openapi_specReturns the complete RiskOS™ OpenAPI specification, including endpoints, schemas, and workflow representations. Useful for generating typed clients or validating request/response structures. Also available in the API Reference.

Example usage:

  • riskos_openapi_spec: Return the schema for /api/evaluation/{eval_id}.
  • riskos_openapi_spec: Extract all workflow-related paths and schema objects.
  • Download and save the RiskOS™ OpenAPI specification into riskos_openapi.json using the riskos_openapi_spec resource.

Build your own agent

If your team builds its own AI agent instead of using Cursor, Claude Code, or another MCP client, you can connect to the RiskOS™ MCP Server programmatically. This section shows a minimal Python agent (about 80 lines) that:

  1. Opens an MCP session with your MCP Server Key.
  2. Lists the RiskOS™ tools and passes them to an LLM.
  3. Runs a tool-calling loop, executing each tool the LLM requests through MCP.

The example is available for Claude (Anthropic SDK) and OpenAI. The pattern works with any LLM that supports tool calling.

📘

Note:

Use the Sandbox endpoint while you develop. See Install and configure.

Install dependencies

pip install "mcp>=1.9,<2" anthropic python-dotenv
📘

Note:

These examples use the MCP Python SDK 1.x. Version 2.x of the SDK renamed streamablehttp_client and inputSchema, so pin the version as shown.

Configure your environment

Create a .env file in your project. Do not commit this file to source control.

RISKOS_MCP_KEY=YOUR_MCP_SERVER_KEY
RISKOS_MCP_URL=https://mcp.riskos.socure.com/sandbox
ANTHROPIC_API_KEY=YOUR_ANTHROPIC_API_KEY
OPENAI_API_KEY=YOUR_OPENAI_API_KEY

Include only the LLM key for the provider you use.

Build the agent

The MCP Server uses HTTP transport and authenticates with your MCP Server Key as a bearer token. No OAuth token exchange is required.

The MCP Server advertises tools in MCP format, but each LLM provider expects its own tool shape. The conversion function in each example maps a tool's name and description across and uses its inputSchema as the provider's parameter schema.

The agent loop sends the conversation to the LLM. When the LLM requests tool calls, the agent runs them through MCP, appends the results, and asks the LLM again until it returns a final answer. If a tool fails, for example because no workflow is active, the error is returned to the LLM instead of stopping the agent.

import asyncio
import os

from anthropic import AsyncAnthropic
from dotenv import load_dotenv
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
from mcp.shared.exceptions import McpError

load_dotenv()

MCP_URL = os.environ["RISKOS_MCP_URL"]
HEADERS = {"Authorization": f"Bearer {os.environ['RISKOS_MCP_KEY']}"}
MODEL = "claude-sonnet-5-5"

llm = AsyncAnthropic()


def mcp_tools_to_claude(tools):
    return [
        {
            "name": tool.name,
            "description": tool.description or "",
            "input_schema": tool.inputSchema or {"type": "object", "properties": {}},
        }
        for tool in tools
    ]


async def call_tool(session, block):
    try:
        result = await session.call_tool(block.name, block.input)
        text = "\n".join(c.text for c in result.content if c.type == "text")
        is_error = bool(result.isError)
    except McpError as error:
        text, is_error = str(error), True
    return {
        "type": "tool_result",
        "tool_use_id": block.id,
        "content": text,
        "is_error": is_error,
    }


async def run_agent(question: str) -> str:
    async with streamablehttp_client(MCP_URL, headers=HEADERS) as (read, write, _):
        async with ClientSession(read, write) as session:
            await session.initialize()

            tools = mcp_tools_to_claude((await session.list_tools()).tools)
            messages = [{"role": "user", "content": question}]

            while True:
                response = await llm.messages.create(
                    model=MODEL,
                    max_tokens=1024,
                    system="You are a RiskOS integration assistant. Use the available tools to answer.",
                    messages=messages,
                    tools=tools,
                )
                messages.append({"role": "assistant", "content": response.content})

                if response.stop_reason != "tool_use":
                    return "".join(b.text for b in response.content if b.type == "text")

                results = [
                    await call_tool(session, block)
                    for block in response.content
                    if block.type == "tool_use"
                ]
                messages.append({"role": "user", "content": results})


if __name__ == "__main__":
    print(asyncio.run(run_agent("What use cases are configured for my account?")))

Run it

python agent.py

The agent calls list_usecases and prints the use cases configured for your account.

Adapt the example to your stack

  • Use a different LLM. Any model with tool calling works. Change only the tool conversion function to match the provider's tool schema.
  • Keep the session open. Reuse one ClientSession across turns instead of reconnecting for each question.
  • Use the Production endpoint when you are ready. Change RISKOS_MCP_URL to https://mcp.riskos.socure.com/prod. Note that list_testcases and integration_checklist are Sandbox only.
  • Use the TypeScript SDK. The MCP TypeScript SDK supports the same flow.
⚠️

Warning:

Keep your MCP Server Key on the server side. Do not expose it in browser code or pass it to the LLM. See Security best practices.


Troubleshooting

Use the following table to resolve common connection issues.

SymptomLikely causeResolution
401 Unauthorized, or the client reports an invalid tokenThe MCP Server Key is inactive, mistyped, or revoked.Confirm the key status is Active in Developer Workbench > API & SDK Keys, and that the full token is set as the bearer token.
The client connects to the wrong environmentThe configuration uses the wrong base URL.Use https://mcp.riskos.socure.com/sandbox for Sandbox or https://mcp.riskos.socure.com/prod for Production.
The server fails to start, or mcp-remote errors on launchNode.js is older than the required version.Install Node.js v20.18.1 or later, then restart your client.
The assistant does not list any RiskOS™ toolsThe client has not loaded the server, or the session predates setup.Restart your MCP client and start a new session. Confirm the server appears in your client's MCP server list.
list_testcases or integration_checklist returns nothingThese tools are available in the Sandbox environment only.Connect to the Sandbox endpoint (https://mcp.riskos.socure.com/sandbox) to use these tools.
The assistant returns no workflowsNo workflows are active for the account.Activate a workflow in the RiskOS™ Dashboard, then retry.

Security best practices

The RiskOS™ MCP Server is designed for secure development assistance. The following best practices help ensure credentials and environments remain protected.

Protect your MCP Server Key
  • Never hard-code your MCP Server Key in source code, scripts, or documentation.
  • Use your MCP client’s secure input or secrets mechanism to supply the key at runtime.
  • Do not paste your MCP Server Key directly into AI prompts or chat messages.
Limit key exposure
  • Configure MCP clients on trusted developer machines only.
  • Avoid sharing MCP configuration files that reference your MCP Server Key.
  • If a key is exposed, deactivate it immediately in Developer Workbench > API & SDK Keys and generate a new one.
Understand data access boundaries

The MCP server can access:

  • RiskOS™ documentation
  • API schemas
  • Workflow and use case metadata
  • Webhook configuration (create and modify)

The server does not:

  • Access customer PII
  • Retrieve evaluation results
  • Execute transactions or evaluations
Treat AI output as advisory
  • Code, payloads, and guidance generated by AI assistants should be reviewed before use.
  • Do not assume generated examples are production-ready without validation.
  • Always verify required fields, workflow IDs, and API behavior against official RiskOS™ documentation.
Secure your development environment
  • Keep your MCP client, editor, and dependencies up to date.
  • Follow your organization’s standard security policies for developer tools and credentials.
  • Remove MCP configurations from machines or projects that no longer require access.

Next steps

  • Install the RiskOS™ Integration Skill to give your assistant guided, best-practice integration logic.
  • Explore the RiskOS™ API Reference to see the endpoints the MCP Server exposes.
  • Move from Sandbox to Production by switching your client's base URL from /sandbox to /prod.

Did this page help you?