How to Connect Anthropic to Real-Time SaaS Data with Unified.to MCP Server

Updated:


August 28, 2025

Anthropic's Claude models can power sophisticated workflows — but most products still need access to live customer data from CRMs, ATSs, HRIS, or accounting systems. That usually means writing brittle glue code, normalizing APIs, and maintaining webhook jobs.

With Unified.to's MCP server, you can skip that complexity. Unified.to exposes 2154 SaaS integrations as real-time, callable tools that Claude can use directly — no custom integration logic required.

In this guide, we'll walk through how to connect Anthropic to Unified.to MCP so your application can give Claude real-time access to customer SaaS data and actions.

Authentication

Every tool call to the Unified.to MCP server needs a credential. Send it as a bearer token in the Authorization: Bearer {token} header (the x-api-key header also works). Passing the token as a URL parameter is deprecated.

Unified MCP documents five authentication options; this guide uses the two that fit a backend calling Anthropic:

  • Private (workspace key + connection)
    Use your Unified.to workspace API key and add a connection parameter. This should never be exposed publicly.
  • Connection-scoped token
    Generate a connection-scoped token with the Core MCP tool get_unified_connection_mcp_url and mode=user; use the returned recommended URL and send the token in the Authorization header. The token grants access to one connection only, never exposes your workspace API key and does not expire; delete the connection to revoke it. mode=api uses your workspace API key and must not be shared.

Integrating with Anthropic API

Model names change often; use a current model from your provider's model list.

Manual Tool Orchestration:

  1. Call Unified's /tools?type=openai endpoint, rename each tool's parameters to input_schema, and pass the tool list to Claude:
    import os
    
    import anthropic
    import requests
    
    UNIFIED_API_KEY = os.environ["UNIFIED_API_KEY"]
    CONNECTION_ID = os.environ["CONNECTION_ID"]
    # Regional host without a path: US https://mcp-api.unified.to, EU https://mcp-api-eu.unified.to, AU https://api-au.unified.to
    UNIFIED_MCP_URL = os.environ.get("UNIFIED_MCP_URL", "https://mcp-api.unified.to")
    
    openai_tools = requests.get(
        f"{UNIFIED_MCP_URL}/tools",
        headers={"Authorization": f"Bearer {UNIFIED_API_KEY}"},
        params={"type": "openai", "connection": CONNECTION_ID},
    ).json()
    # Anthropic takes the same JSON Schema under input_schema
    tools = [
        {"name": t["name"], "description": t["description"], "input_schema": t["parameters"]}
        for t in openai_tools
    ]
    
    client = anthropic.Anthropic()  # reads ANTHROPIC_API_KEY
    messages = [{"role": "user", "content": "List the candidates and then analyse the resumes from their applications."}]
    
    while True:
        resp = client.messages.create(
            model="claude-sonnet-5-5",
            max_tokens=4096,
            tools=tools,
            messages=messages,
        )
        if resp.stop_reason != "tool_use":
            break
        messages.append({"role": "assistant", "content": resp.content})
        results = []
        for block in resp.content:
            if block.type == "tool_use":
                result = requests.post(
                    f"{UNIFIED_MCP_URL}/tools/{block.name}/call",
                    headers={
                        "Authorization": f"Bearer {UNIFIED_API_KEY}",
                        "Content-Type": "application/json",
                    },
                    params={"connection": CONNECTION_ID},
                    json=block.input,
                )
                results.append({"type": "tool_result", "tool_use_id": block.id, "content": result.text})
        messages.append({"role": "user", "content": results})
    
    print("".join(b.text for b in resp.content if b.type == "text"))
    
  2. Claude will return a tool_use block:
    [
      {
        "type": "tool_use",
        "id": "toolu_...",
        "name": "list_candidates",
        "input": { "limit": "100" }
      }
    ]
    
  3. Call Unified's /tools/{id}/call endpoint with the arguments.
  4. Append Claude's response as an assistant message, then return the result as a tool_result block at the start of the next user message:
    [
      {
        "type": "tool_result",
        "tool_use_id": "toolu_...",
        "content": "..."
      }
    ]
    

Controlling Tool Access

Unified.to MCP gives you granular control over how tools are exposed to Anthropic:

  • permissions → restrict available scopes.
  • tools → allowlist specific tool IDs.
  • aliases → adds extra descriptions to improve tool matching.
  • hide_sensitive=true → strips sensitive (PII) fields such as names, emails, phone numbers, addresses, date of birth, SSN/SIN and compensation, plus credential fields, from results.
  • include_external_tools=true → expose all vendor API endpoints, not just Unified.to's normalized models.

These options help you keep Anthropic outputs predictable and secure in production-grade workflows.

Sample Snippet

import Anthropic from '@anthropic-ai/sdk';
// Claude model
const model = 'claude-sonnet-5-5';
// Unified connection ID that the MCP server should use
const connection = process.env.CONNECTION_ID;
// Regional host without a path: US https://mcp-api.unified.to, EU https://mcp-api-eu.unified.to, AU https://api-au.unified.to
const UNIFIED_MCP_URL = process.env.UNIFIED_MCP_URL || 'https://mcp-api.unified.to';
// Set to true to expose the vendor's own API endpoints as tools
const includeExternal = false;
const message = 'List the candidates and then analyse the resumes from their applications.';
// Optional: list of specific tools that you want to use
const toolIds = ['get_messaging_message','list_messaging_message']

const params = new URLSearchParams({
    connection,
    include_external_tools: includeExternal ? 'true' : 'false',
});

if (toolIds.length > 0) {
    params.append('tools', toolIds.join(','));
}

const anthropic = new Anthropic({
    apiKey: process.env.ANTHROPIC_API_KEY,
});

const serverUrl = `${UNIFIED_MCP_URL}/mcp?${params.toString()}`;

const completion = await anthropic.beta.messages.create({
    model,
    max_tokens: 1024,
    messages: [
        {
            role: 'user',
            content: message,
        },
    ],
    stream: false,
    mcp_servers: [
        {
            type: 'url',
            url: serverUrl,
            name: 'unifiedMCP',
            // Anthropic calls the MCP server, so send a connection-scoped signed token
            // (one connection only); the workspace API key stays on your server
            authorization_token: process.env.UNIFIED_MCP_TOKEN,
        },
    ],
    tools: [{ type: 'mcp_toolset', mcp_server_name: 'unifiedMCP' }],
    betas: ['mcp-client-2025-11-20'],
});

console.log('response', JSON.stringify(completion, null, 2));

Coverage and Infrastructure

Unified.to MCP is built for real-world AI use cases:

  • 204,184 real-time tools (growing weekly)
  • 2154 integrations across 38 categories (ATS, CRM, HRIS, Accounting, Messaging, File Storage, and more)
  • No stored customer records: Unified.to stores no customer records; logs hold operational metadata only
  • Scoped security controls — permissions, aliases, and PII redaction
  • Multi-region deployment — US, EU, and AU data centers for compliance

Unified.to MCP works with major LLM providers, including OpenAI, Anthropic, Google Gemini and Cohere. That means you can build once and connect to any agent client.

Explore the MCP docs or book a demo

Share
All guidesAdvertising Report Metrics by IntegrationAmazon S3: Required IAM PermissionsATS to Vector DB: How to Power Talent Intelligence with Real-Time DataBuilding AI applications with Unified and LangbaseConcur & Concur (Company) — Connection GuideConfigure Greenhouse Native Candidate WebhooksConfigure Salesforce Meetings and Notes for UnifiedConnect Amazon Seller Central to Unified.toConnecting BambooHR via OAuth 2Connecting Google Workspace Integrations with a Service AccountCorrect WelcomeKit Scopes for Jungle IntegrationCreating Ads using the Unified Ads APICreating Walmart Items via UnifiedEnd-Users, Integrations, and ConnectionsEnriching Unified Objects with Custom MetadataEnterprise-managed authorization (EMA) with a static keyEnterprise-managed authorization (EMA) with a workspace secretEnterprise-managed authorization (EMA) with Microsoft Entra IDExtended observability — pushing API logs to ClickHouseExtended observability — pushing API logs to Grafana / LokiExtended Observability - Pushing API Logs to your Datadog InstanceFacebook Messenger Webhook SetupFireflies Integration GuideGetting started with WorkableHandling Delegated vs. Application Scopes in Microsoft IntegrationsHiBob & Unified: connection and time off guideHow long are logs retainedHow to access employees and usersHow to add API support for the Create Activity in CrelateHow to Associate a Connection ID with Your End-UserHow to build a Candidate Assessment product withHow to build a candidate sourcing or job board app with Unified.toHow to build a Discord support bot with Unified.to and LangbaseHow to Build a Fintech Application with Unified's Payments APIHow to Build an E-Commerce Product Integration with UnifiedHow to build an invoicing system with Unified.toHow to build Enterprise Search using RAGHow to configure Bullhorn Redirect URI for creating a connectionHow to configure webhooks in HubSpotHow to configure webhooks in Thrive LearningHow to configure webhooks in Toast for UnifiedHow to Connect Cohere to Real-Time SaaS Data with Unified.to MCP ServerHow to Connect Google Gemini to Real-Time SaaS Data with Unified.to MCP ServerHow to connect HiBob (Bob) to Unified with OAuth 2.0How to Connect LLMs to Real-Time SaaS Data with Unified.to MCP ServerHow to Connect OpenAI to Real-Time SaaS Data with Unified.to MCP ServerHow to Connect Zoom and Zoom PhoneHow to create a Connection In Microsoft TeamsHow to create a token-based connection in HighlevelHow to Create a Unified.to Connection to HighLevelHow to Create a Xero Connection in Unified.toHow to create and configure webhooksHow to create Connection with HubspotHow to customize portal URLs for Stripe and GoCardlessHow to filter webhook eventsHow-to Get a Private Support Channel for Your Unified IntegrationHow to get help fromHow to get your 8x8 Connect API Key and Account ID: Step-by-step guideHow to get your ADP Workforce Now Oauth2 client ID, Oauth2 client secret, Oauth2 PEM certificate and Oauth2 private key: Step-by-step guideHow to get your Amazon S3 AWS Region, AWS S3 Key and AWS S3 Secret: Step-by-step guideHow to get your Ashby API Key: Step-by-step guideHow to get your Brex API token: Step-by-step guideHow to get your Bullhorn OAuth2 Client ID, OAuth2 Client Secret, API Username and API Password: Step-by-step guideHow to get your Ceridian Dayforce Username, Password and Client Namespace: Step-by-step guideHow to get your Crelate API key: Step-by-step guideHow to get your Dashlane API Key: Step-by-step guideHow to get your Deel Access Token: Step-by-step guideHow to get your Dialpad API Key: Step-by-step guideHow to get your Discord OAuth 2 credentials and bot tokenHow to get your ELMO client ID and client secret: Step-by-step guideHow to get your Gainsight Client ID, Client Secret and Gainsight API Domain: Step-by-step guideHow to get your Greenhouse API Key and Job board token: Step-by-step guideHow to get your Helpscout API Key: Step-by-step guideHow to get your HiBob Service User ID and Service User Token: Step-by-step guideHow to get your HighLevel API Key and Location ID: Step-by-step guideHow to get your HubSpot developer key and OAuth 2 credentials (Legacy Apps)How to get your Humaans API Key: Step-by-step guideHow to get your iCIMS API Username, API Password and Customer ID: Step-by-step guideHow to get your JobDiva Client ID, Username/email and Password: Step-by-step guideHow to get your Jobvite API Key, API Key Secret and Email: Step-by-step guideHow to get your Lever API Key: Step-by-step guideHow to get your Loxo Agency slug, API Key and Agency ID: Step-by-step guideHow to get your Microsoft Active Directory / Entra ID Client ID, Client Secret and Tenant ID: Step-by-step guideHow to get your Microsoft Azure AD OAuth 2 credentialsHow to get your OAuth 2 credentials for GmailHow to get your OAuth 2 credentials for Microsoft Dynamics 365How to get your OAuth 2 credentials in PipeDriveHow to get your OpenAI API Key: Step-by-step guideHow to get your Paycom SID/Username and Token/Password: Step-by-step guideHow to get your PCRecruiter Username, Password, Database ID, App Key and App ID: Step-by-step guideHow to get your SAP SuccessFactors (OpenID Connect) Username, Password, Client ID, Client Secret, Dependency Name, IAS Host and API URL: Step-by-step guideHow to get your SAP SuccessFactors Username, Company ID, Password and API URL: Step-by-step guideHow to get your Shopify Admin API access token and Store ID: Step-by-step guideHow to get your Wayfair Client ID, Client Secret and Vendor Encrypted Key: Step-by-step guideHow to get your Workable API Token and Subdomain: Step-by-step guideHow to get your yotpo APP Key / Store ID and Secret Key: Step-by-step guideHow to Handle Attachments in Invoice, Bill and Credit MemoHow to migrate or import your integrations into Unified.toHow to obtain your GitHub OAuth2 credentialsHow to Power Claude with Live Customer Data Using Unified MCPHow to receive assessment orders from an ATS with Unified.toHow to register a Google developer app and get OAuth 2 credentialsHow to register a Salesforce developer app and get OAuth 2 credentialsHow to register a Slack developer account and get OAuth 2 credentialsHow to Register a Workday Developer App and Get OAUTH2 CredentialsHow to Register a Workday Developer App and Get OAUTH2/ SOAP CredentialsHow to Register a ZendeskSell Developer App and Get OAUTH2 CredentialsHow to Register a Zoho Developer App and Get OAUTH2 CredentialsHow to Register an ADP Developer App and Get OAUTH2 CredentialsHow to Register an Atlassian Developer App and Get OAUTH2 CredentialsHow to Register your Facebook OAuth2 ApplicationHow to Register your Google Ads OAuth2 ApplicationHow to Register your MetaAds OAuth2 applicationHow To Request & Write Raw Integration DataHow to Retrieve Microsoft Dynamics 365 Business Central CredentialsHow to set up a custom API URL with a CNAMEHow to set up a HiBob marketplace installHow to Set Up a Microsoft Teams Bot with UnifiedHow to set up and configure NotionHow to set up Google Business Profile API access and get OAuth 2 credentialsHow to Set Up LinkedIn Webhooks with UnifiedHow to set up native webhooks for QuickBooks Online with UnifiedHow to set up Slack webhooks using event subscriptionsHow to set up Telegram (bot) with Unified.toHow to set up your scopes in HubSpotHow to setup a Freshbooks developer appHow to setup a TikTok Shop applicationHow to Setup AWS Assume Role for AWS Secret ManagerHow to setup Oracle JD EdwardsHow to Setup Quickbooks DesktopHow to setup Sage 100 with Unified.toHow to test webhooks in the Synthetic Data (Sandbox) environmentHow to troubleshoot unhealthy connectionsHow to troubleshoot unhealthy webhooksHow to use SCIM with the Unified APIHow to use the Passthrough APIHow to Use Unified.to's Generative AI API with OpenAI and ClaudeHow to use User Provisioning and Verification with UnifiedHow virtual webhook retry and recovery worksIntegration set-up guide for LeverManaging custom validation rules in SalesforceNetSuite Authentication Setup for UnifiedNotice of Deprecation of Fields and Objects (Nov 2025)Oracle HCM / Taleo OAuth Credentials GuideRetrieval-Augmented Generation (RAG)SalesForce (External Client Apps) on Multiple OrganizationsSAML Single-Sign-OnScaling MCP Tools with Anthropic's (& OpenAI's) Defer LoadingSet Environments for your Unified.to WorkspaceSetting up a Slack Bot Connection with Unified.toSetting up OAuth 2 Credentials for Greenhouse's APIsTrello Connection Guide in UnifiedUnderstanding OAuth2 Authorization flowsUnderstanding Response Time Headers in the Unified APIUnified Assessment API: Embed Assessments Inside ATS PlatformsUnified's MCP ServerUnified MCP Server with LangChain and LangGraphUnlock real-time data with virtual webhooksUse Unified to sign in your users into your applicationVincere OAuth Setup Guide for UnifiedWorkable: Creating candidates and attaching them to jobsWorkday vs Workday Legacy — Why Unified.to Supports BothWorking with hierarchical tree data in Storage, Messaging, and KMS APIs
Are we missing anything? Let us know
Was this page helpful?