Core Unified API

Updated:

The Unified MCP Server has two personalities:

  • Connection mode — point it at a single end-customer connection and it exposes that connection's integration-specific tools (CRM contacts, accounting invoices, HRIS employees, and so on).
  • Core Unified API mode — authenticate with only a workspace API key (no connection ID) and it exposes the Core Unified API management tools for your own workspace configuration data.

This page covers Core Unified API mode.

Note: Core Unified API mode operates on your workspace configuration data (connections, webhooks, integrations, API-call logs, issues, environments). It does not read or write your end-customers' data inside their connections — use a per-connection URL for that (see get_unified_connection_mcp_url).

Authentication

Core Unified API mode accepts two kinds of credential:

MethodCredentialBest forTools
Workspace API keyYour workspace API keyYour own code, coding agents and clients that send a headerEvery Core Unified API tool
OAuth sign-inOAuth access token (24 hours)MCP clients that support OAuth, eg. Claude custom connectorsThe Core Unified API tools the granted scopes allow

The other authentication options do not reach the Core tools. Adding ?connection=<id> to a workspace API key, or using a connection-scoped token, switches the server to connection mode, and an enterprise-managed (ema_) token only gets integration data tools.

You can list the Core tools without any credential. See Without credentials.

Workspace API key

Send a Unified.to workspace API key with no connection parameter. This is option 2 in Authentication. An AI agent without an account can get a key itself with Agent Signup.

The key may be supplied in any of these places. When more than one is present, the first one wins:

LocationExample
Authorization headerAuthorization: Bearer <workspace-api-key>
x-api-key headerx-api-key: <workspace-api-key>
URL parameterhttps://mcp-api.unified.to/mcp?token=<workspace-api-key>

All other options must be passed as URL parameters.

Deprecated: authenticating with ?token= still works, but responses to a request that authenticates that way now carry a Deprecation: true header (and a Sunset header once a date is set). Move the key into the Authorization header.

Warning: A workspace API key grants access to all of your connections and your entire Unified.to account. Treat it as a secret and never expose it in a shareable URL. To hand out access to a single connection, generate a connection-scoped URL with get_unified_connection_mcp_url.

If your workspace has an IP allowlist, a workspace API key used from an address that is not on it gets 403 IP address rejected.

OAuth sign-in

An MCP client that supports OAuth can sign in to Unified.to itself, so you never paste an API key into it. Add the bare MCP URL for your region, eg. https://mcp-api.unified.to/mcp, with no credential. The client then:

  1. Gets 401 Unauthorized from /mcp with a WWW-Authenticate header such as Bearer resource_metadata="https://mcp-api.unified.to/.well-known/oauth-protected-resource/mcp", scope="mcp:read mcp:write".
  2. Reads the protected-resource metadata (RFC 9728), which names the authorization server, then reads that server's metadata (RFC 8414).
  3. Identifies itself with a client ID metadata document, or registers with dynamic client registration (RFC 7591). Clients are public: there is no client secret.
  4. Runs the authorization-code flow with PKCE (S256 only). The user signs in to Unified.to and picks a workspace they are an admin of.
  5. Exchanges the code at the token endpoint and sends the access token as Authorization: Bearer <access-token> on every request.

The access token lasts 24 hours. Request offline_access to also get a refresh token: each refresh returns a new refresh token and retires the old one, and reusing a retired refresh token revokes the whole grant.

ScopeGrants
mcp:readRead-only tools (list and get)
mcp:writeTools that create, update, delete or trigger
offline_accessA refresh token, so the client can renew access without signing in again

If the client requests no access scope, it gets both mcp:read and mcp:write. Scopes filter tools/list as well as the call itself: a token with only mcp:read is never offered a write tool.

An OAuth token:

  • serves the Core Unified API tools for the workspace picked at sign-in. A connection parameter is ignored; to reach a connection's tools, generate a URL with get_unified_connection_mcp_url.
  • is bound to the MCP server it was requested for (RFC 8707 resource), and is not accepted as a REST API key.
  • belongs to the region whose host issued it, like every other credential.
  • is not held to the workspace IP allowlist, because MCP clients call from their provider's addresses.

OAuth discovery

Every region serves these from its own host. Read the values from the documents rather than hard-coding them, since they follow the hostname you connect to.

PathDescription
/.well-known/oauth-protected-resource/mcpThe MCP server as an OAuth protected resource (RFC 9728). Also served at /mcp/.well-known/oauth-protected-resource/mcp and /mcp/.well-known/oauth-protected-resource
/.well-known/oauth-authorization-serverThe authorization server metadata (RFC 8414)
/oauth/authorizeAuthorization endpoint
/oauth/tokenToken endpoint (authorization_code and refresh_token grants)
/oauth/registerDynamic client registration endpoint

The protected-resource metadata also lists the enterprise-managed scopes (crm.read, ats.write, …). Those are issued only to enterprise-managed tokens and never reach the Core tools; an OAuth sign-in that requests them simply does not receive them.

Authentication errors

ResponseCause
401 + WWW-AuthenticateNo credential, or the credential is invalid, expired, revoked, from another region, or an OAuth token for another resource
403 IP address rejectedA workspace API key used from an address outside the workspace IP allowlist
Tool result with isErrorThe call needs a scope the OAuth token was not granted

A tools/list request without a credential lists the Core tools instead of answering 401, and so does a call of list_unified_integrations (see Without credentials).

Endpoints

RegionStreamable HTTP
UShttps://mcp-api.unified.to/mcp
EUhttps://mcp-api-eu.unified.to/mcp
AUhttps://mcp-api-au.unified.to/mcp

Use the host for the region your workspace lives in. Regions no longer resolve across one another: each deployment sees only its own region's database, so a credential presented to another region's host resolves to "not found".

The MCP server runs as part of the Unified API, so each region's API host also serves it at /mcp (api.unified.to, api-eu.unified.to, api-au.unified.to). The mcp-api* hosts in the table are aliases of the same deployments.

Transport

Streamable HTTP at /mcp is the only transport. The SSE transport has been removed. Migrating is a one-word URL edit — change /sse to /mcp and keep the same host, authentication and query parameters.

The server supports MCP protocol revisions 2024-11-05 through 2025-11-25, and the stateless 2026-07-28 revision:

  • Up to 2025-11-25: initialize returns an mcp-session-id header. Send it on later requests. Any server in the region can serve the session, and it expires after 5 minutes without a request; a request for an expired session returns 404 Session not found, so start a new one with initialize. DELETE /mcp ends a session.
  • 2026-07-28: send MCP-Protocol-Version: 2026-07-28 on every request. There is no session.

From revision 2025-06-18 on, tool results carry structuredContent (a list result is wrapped as { "results": [...] }), and the Unified API tools advertise an outputSchema describing it. The schema is lenient: no field is required, and every value may be null. On every revision, the text content is the same object as compact JSON, so a client that reads only the text sees the same shape. See Tool Results & Code Execution.

GET and POST on /sse and /sse/messages return HTTP 410:

{
    "error": "gone",
    "message": "The SSE transport has been removed. Use the Streamable HTTP endpoint at /mcp with the same authentication and query parameters. See https://docs.unified.to/mcp/core."
}

Client configuration

Send your workspace API key in the Authorization header, not in the URL. Where a client can read environment variables, the examples take the key from UNIFIED_API_KEY so it stays out of config files you might commit. Swap in your region's host from Endpoints.

Claude Code

Install the Unified.to plugin. It bundles the Core MCP server with our Agent Skills and prompts you for the API key, which it keeps in secure storage:

/plugin marketplace add https://docs.unified.to/.claude-plugin/marketplace.json
/plugin install unified@unified-to

Or add only the MCP server:

claude mcp add --transport http unified-core https://mcp-api.unified.to/mcp \
    --header "Authorization: Bearer $UNIFIED_API_KEY"

Codex

codex mcp add unified-core --url https://mcp-api.unified.to/mcp --bearer-token-env-var UNIFIED_API_KEY

Or in ~/.codex/config.toml:

[mcp_servers.unified-core]
url = "https://mcp-api.unified.to/mcp"
bearer_token_env_var = "UNIFIED_API_KEY"

Cursor

Add to Cursor (US host), or add this to .cursor/mcp.json in your project or ~/.cursor/mcp.json:

{
    "mcpServers": {
        "unified-core": {
            "url": "https://mcp-api.unified.to/mcp",
            "headers": {
                "Authorization": "Bearer ${env:UNIFIED_API_KEY}"
            }
        }
    }
}

VS Code (GitHub Copilot)

Add this to .vscode/mcp.json. VS Code prompts for the key the first time the server starts:

{
    "inputs": [
        {
            "type": "promptString",
            "id": "unified-api-key",
            "description": "Unified.to workspace API key",
            "password": true
        }
    ],
    "servers": {
        "unified-core": {
            "type": "http",
            "url": "https://mcp-api.unified.to/mcp",
            "headers": {
                "Authorization": "Bearer ${input:unified-api-key}"
            }
        }
    }
}

Clients that sign in with OAuth

A client that supports OAuth for MCP servers (for example, a Claude custom connector) needs no key. Add https://mcp-api.unified.to/mcp, or your region's host, with no credential, and the client takes you through OAuth sign-in to pick a workspace.

Other clients

Any client that speaks Streamable HTTP and supports custom headers:

{
    "mcpServers": {
        "unified-core": {
            "type": "http",
            "url": "https://mcp-api.unified.to/mcp",
            "headers": {
                "Authorization": "Bearer <workspace-api-key>"
            }
        }
    }
}

Via mcp-remote (for clients that only speak stdio):

{
    "mcpServers": {
        "unified-core": {
            "command": "npx",
            "args": ["-y", "mcp-remote", "https://mcp-api.unified.to/mcp", "--header", "Authorization:${AUTH_HEADER}"],
            "env": {
                "AUTH_HEADER": "Bearer <workspace-api-key>"
            }
        }
    }
}

Tools

Core Unified API mode exposes the following tools. See Tool annotations for how each one is marked.

Search API Docs

ToolDescription
search_docsSearch the API documentation at docs.unified.to and provide an answer to a query or question.

Skills

ToolDescription
list_unified_skillsList the Agent Skills the server serves: name, description and skill:// URI. Optional query filters by name or description
get_unified_skillReturn one skill's full SKILL.md, by name (e.g. unified-crm) or skill:// URI

See Agent Skills below.

Connections

ToolDescription
list_unified_connectionsList the connections in your workspace
get_unified_connectionRetrieve a single connection by ID
create_unified_connectionCreate a connection
update_unified_connectionUpdate a connection
remove_unified_connectionDelete a connection
create_unified_connection_reauthCreate a re-authorization token for a connection, so its end-customer can re-authorize it
get_unified_connection_mcp_urlGenerate a connection-scoped MCP remote URL (see below)

Webhooks

ToolDescription
list_unified_webhooksList webhooks
get_unified_webhookRetrieve a webhook by ID
create_unified_webhookCreate a webhook
update_unified_webhookUpdate a webhook
remove_unified_webhookDelete a webhook
update_unified_webhook_triggerTrigger a webhook

Integrations

ToolDescription
list_unified_integrationsList the available integrations and their supported capabilities
activate_unified_integrationActivate an integration in one environment, or change the settings of one already active there
deactivate_unified_integrationDeactivate an integration in one environment. Its connections in that environment stop working until it's activated again

activate_unified_integration takes integration_type (e.g. hubspot), the env (Production, Sandbox or a custom environment such as dev), and optionally categories, permissions, auth_type and your own OAuth 2 client_id and client_secret. Settings you leave out keep their current values. For an OAuth 2 integration that has Unified.to's own credentials (has_unified_oauth2_credentials in list_unified_integrations), leave the credentials out on a first activation, or set use_unified_oauth_credentials to switch back to them. The console offers Unified.to's credentials only outside Production; register your own app for Production. Results never include secrets.

Both tools need a workspace admin's API key, and a key restricted to some environments can only change those. A key from Agent Signup stays an admin after a human claims the workspace.

Issues

ToolDescription
list_unified_issuesList issues / tickets raised against your workspace
get_unified_issueRetrieve a single issue by ID

API calls

ToolDescription
list_unified_apicallsList recent API-call logs
get_unified_apicallRetrieve a single API-call log by ID

Environments

ToolDescription
list_unified_environmentsList authentication environments
create_unified_environmentCreate an environment
remove_unified_environmentDelete an environment

Notifications

ToolDescription
list_unified_notificationsList your workspace's event notifications

Secrets managers

ToolDescription
list_unified_secretsmanagersList the secrets managers connected to your workspace
get_unified_secretsmanagerRetrieve a secrets manager by ID
create_unified_secretsmanagerConnect a secrets manager
remove_unified_secretsmanagerRemove a secrets manager
list_unified_secretsmanager_instructionsList the setup instructions for each secrets manager type
list_unified_secretsmanager_secretsList the secrets in a secrets manager

Without credentials

A coding agent can see what the server offers before it has a key:

  • A tools/list request with no credential returns the Core Unified API tools above, with their input and output schemas. No session or initialize is needed. Every other method without a credential gets 401, which is how OAuth-capable clients find the sign-in.
  • /mcp?integration_type=<type> serves that integration's full tool catalog, on every method including initialize, eg. https://mcp-api.unified.to/mcp?integration_type=hubspot. An unknown type returns 404.
  • /mcp?signup=true serves the Core tools on every method and adds signup_unified_workspace, which is callable without a credential. See Agent Signup.
  • list_unified_integrations can be called with no credential. It then returns the public catalog: the type, name, categories, created_at and logo_url of every integration. It accepts the limit, offset, updated_gte, categories, type and types filters and ignores the rest. Send a single tools/call to /mcp, with no session or initialize, or use the REST tool API:
    curl -X POST https://mcp-api.unified.to/tools/list_unified_integrations/call \
      -H "Content-Type: application/json" \
      -d '{"categories": ["crm"]}'
    

    Authenticate to get the full details (supported objects, methods, scopes) and your workspace's active integrations. The same list is published as JSON and CSV.

Calling any other tool from a preview returns an error result that asks the client to authenticate. The tools, permissions and include_external_tools options still apply. A request that presents a credential is always authenticated normally, so an invalid credential still gets 401.

GET /tools serves the same previews in the REST shape.

Tool annotations

Every tool, in Core and connection mode, sets all four MCP tool annotations explicitly as true or false. None are left to the spec defaults, which would treat an unmarked tool as destructive. Clients such as Claude, ChatGPT and Codex use them to decide when to ask before running a tool.

ToolsreadOnlyHintdestructiveHintidempotentHintopenWorldHint
list_*, get_* (except get_unified_connection_mcp_url), search_docstruefalsetruetrue
create_unified_* (connection, connection re-authorization, webhook, environment, secrets manager)falsefalsefalsetrue
update_unified_connection, update_unified_webhook, update_unified_webhook_resume, remove_unified_*, activate_unified_integration, deactivate_unified_integrationfalsetruetruetrue
update_unified_webhook_triggerfalsetruefalsetrue
get_unified_connection_mcp_url, signup_unified_workspacefalsefalsefalsefalse

destructiveHint is true only for tools whose effect is hard to reverse: updates overwrite existing settings, removals delete, and a trigger sends a delivery that can't be recalled. Creating a Core object only adds to your workspace, so creates aren't destructive. get_unified_connection_mcp_url and signup_unified_workspace issue credentials, so they are not marked read-only and clients ask before running them. They run on the MCP server itself, so openWorldHint is false.

In connection mode, a list or get tool is read-only. Every other integration tool, including create, is destructive with openWorldHint: true, because it writes to the end-customer's system and can send messages or post transactions that can't be undone.

Agent Skills

In Core Unified API mode the server also serves Unified.to Agent Skills: step-by-step guides that teach a coding agent how to build with Unified.to. The skills are the same SKILL.md files published on this site; the server picks up changes within an hour.

The server serves these skills:

SkillWhat it covers
unified-quickstartGet started: activate integrations, embed the Authorization component, make a first API call
unified-mcp-coreManage your workspace from an agent through this server in Core Unified API mode
unified-mcp-connectionGive an AI agent one end-customer connection's tools through this server in connection mode
unified-accounting-invoicingInvoicing, billing and bookkeeping (Accounting API)
unified-assessmentAssessment and background-check products that plug into ATSs (Assessment API)
unified-ats-jobboardCandidate sourcing, recruiting and job boards (ATS API)
unified-auth-signin"Sign in with" Google, Microsoft and other OAuth2 or SAML providers (Authentication API)
unified-calendarScheduling, calendars and events (Calendar API)
unified-crmCRM and sales automation (CRM API)
unified-ecommerceProducts, catalogs and inventory (Commerce API)
unified-enterprise-search-ragEnterprise search and RAG over documents (Storage and KMS APIs)
unified-hrisHR, people data and payroll (HRIS API)
unified-messagingChat, bots and notifications (Messaging API)
unified-paymentsPayments, subscriptions and payouts (Payment API)
unified-ticketingHelpdesk and issue tracking (Ticketing API)

The skills directory has more, such as the guides to registering OAuth apps with each vendor; those are not served by the MCP server. All skills, the connection-mode guide included, are served only in Core Unified API mode, not on connection URLs or to enterprise-managed tokens.

MCP Skills extension

Clients that support the MCP Skills extension (io.modelcontextprotocol/skills) discover skills on their own. The server declares the extension, and the resources capability it requires, at initialize and server/discover:

{
    "capabilities": {
        "tools": {},
        "resources": {},
        "extensions": {
            "io.modelcontextprotocol/skills": {}
        }
    }
}
MethodWhat it returns
skills/listEvery skill: its uri, its SKILL.md frontmatter, and a resources array with each file's digest (sha256) and size
skills/getOne skill's entry, given its uri. An unknown URI returns error -32602
resources/listEach skill's SKILL.md as a resource
resources/readA skill's SKILL.md content (text/markdown)

Each skill is a single SKILL.md, addressed as skill://<name>/SKILL.md, for example skill://unified-quickstart/SKILL.md. Example skills/list result:

{
    "skills": [
        {
            "uri": "skill://unified-quickstart/SKILL.md",
            "frontmatter": {
                "name": "unified-quickstart",
                "description": "Add Unified.to integrations to an app: …",
                "license": "MIT",
                "metadata": {
                    "category": "quickstart",
                    "docs": "https://docs.unified.to/quick-start"
                }
            },
            "resources": [
                { "uri": "skill://unified-quickstart/SKILL.md", "digest": "sha256:…", "size": 6046 }
            ]
        }
    ]
}

Clients without the extension

Every other client reaches the same skills through two tools, list_unified_skills and get_unified_skill. The server's instructions tell the model to check for a matching skill before starting a build task.

Tip: To install skills locally instead, use the Claude Code plugin under Client configuration or npx skills add https://docs.unified.to. Skills installed that way work without the MCP server.

get_unified_connection_mcp_url

This is the bridge from Core Unified API mode into connection mode: manage your connections with your workspace API key, then generate a ready-to-use MCP remote URL for any individual connection. The URL exposes that connection's integration-specific tools over Streamable HTTP (/mcp).

Parameters

ParameterRequiredDescription
connection_idyesThe ID of the connection to generate an MCP remote URL for
modenoAuthentication method for the generated URL: user or api. The default is api with a workspace API key and user with OAuth sign-in. See Modes
permissionsnoComma-separated permission scopes to limit the tools the URL exposes (e.g. crm_contact_read,crm_company_read)
toolsnoComma-separated tool IDs or wildcard patterns to limit which tools the URL exposes (e.g. list_*,*invoices*)
aliasesnoCustom description aliases (key:alt1,alt2;key2:alt3) to improve tool matching (e.g. employee:user;employees:users)
defer_toolsnoDefer tool loading to reduce context usage — all or a comma-separated list of tool IDs. Only takes effect on GET /tools
hide_sensitivenoWhen true, strips PII and other sensitive fields from tool responses before they reach the LLM
include_external_toolsnoWhen true, exposes the vendor's raw passthrough endpoints as additional callable MCP tools

Any option supplied is baked into the returned URLs as a query parameter. See Server options for the full behavior of each one.

Removed: dc was a region hint that nothing routed on. It is no longer accepted here and no longer appears in generated URLs. Pick the region with the hostname instead.

Modes

The mode parameter selects the authentication method embedded in the generated URL:

modeGenerated URLSharing
user…/mcp, with a connection-scoped token as the Authorization headerUses a connection-scoped signed token. Safe to share: it grants access only to that single connection and never exposes your workspace API key. Revoke it by deleting the connection.
api…/mcp?connection=<connectionId>, with your workspace API key as the Authorization headerUses your workspace API key, which grants full-account access. Do not share. Revoke it by rotating the workspace API key, which affects every URL that used it.

The default depends on how you signed in:

  • Workspace API key: api is the default, for backwards compatibility. Pass mode: "user" whenever the URL will leave your own servers.
  • OAuth sign-in: user is the default, and api returns an error. An api URL would hand the model your OAuth access token, which grants access to the whole workspace. It also wouldn't work, because an OAuth token ignores connection and expires after 24 hours.

Neither kind of URL expires on its own.

Response

{
    "connection_id": "682e20be9ca303793060370f",
    "integration_type": "hubspot",
    "mode": "user",
    "recommended": {
        "url": "https://mcp-api.unified.to/mcp",
        "headers": {
            "Authorization": "Bearer 682e20be9ca303793060370f-<nonce>-<signature>"
        }
    },
    "mcp_url": "https://mcp-api.unified.to/mcp?token=682e20be9ca303793060370f-<nonce>-<signature>",
    "note": "USER mode: a connection-scoped signed token that grants access only to this single connection. Preferred: use `recommended.url` and send the token via the Authorization header. The `mcp_url` form embeds the token in the URL and is deprecated."
}
FieldDescription
recommended.urlThe MCP URL without the credential. In api mode it still carries connection, and in both modes any options you passed
recommended.headersThe Authorization header to send with it
mcp_urlThe same URL with the credential in ?token=. Deprecated, since the credential can end up in logs and browser history

Breaking change: the response no longer contains sse_url. If your code reads that field, it now gets undefined — read recommended (or mcp_url) instead. The SSE transport it pointed at has been removed.

Example

Generate a shareable, read-only CRM URL for one connection by calling get_unified_connection_mcp_url with:

  • connection_id: 682e20be9ca303793060370f
  • mode: user
  • permissions: crm_contact_read,crm_company_read
  • hide_sensitive: true

Give an MCP client recommended.url with recommended.headers. It only exposes the read-only CRM tools for that connection, with PII stripped from responses. For a client that can't send headers, use mcp_url instead.

Are we missing anything? Let us know
Was this page helpful?