Core Unified API
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:
| Method | Credential | Best for | Tools |
|---|---|---|---|
| Workspace API key | Your workspace API key | Your own code, coding agents and clients that send a header | Every Core Unified API tool |
| OAuth sign-in | OAuth access token (24 hours) | MCP clients that support OAuth, eg. Claude custom connectors | The 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:
| Location | Example |
|---|---|
| Authorization header | Authorization: Bearer <workspace-api-key> |
x-api-key header | x-api-key: <workspace-api-key> |
| URL parameter | https://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 aDeprecation: trueheader (and aSunsetheader once a date is set). Move the key into theAuthorizationheader.
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:
- Gets
401 Unauthorizedfrom/mcpwith aWWW-Authenticateheader such asBearer resource_metadata="https://mcp-api.unified.to/.well-known/oauth-protected-resource/mcp", scope="mcp:read mcp:write". - Reads the protected-resource metadata (RFC 9728), which names the authorization server, then reads that server's metadata (RFC 8414).
- Identifies itself with a client ID metadata document, or registers with dynamic client registration (RFC 7591). Clients are public: there is no client secret.
- Runs the authorization-code flow with PKCE (
S256only). The user signs in to Unified.to and picks a workspace they are an admin of. - 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.
| Scope | Grants |
|---|---|
mcp:read | Read-only tools (list and get) |
mcp:write | Tools that create, update, delete or trigger |
offline_access | A 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
connectionparameter is ignored; to reach a connection's tools, generate a URL withget_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.
| Path | Description |
|---|---|
/.well-known/oauth-protected-resource/mcp | The 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-server | The authorization server metadata (RFC 8414) |
/oauth/authorize | Authorization endpoint |
/oauth/token | Token endpoint (authorization_code and refresh_token grants) |
/oauth/register | Dynamic 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
| Response | Cause |
|---|---|
401 + WWW-Authenticate | No credential, or the credential is invalid, expired, revoked, from another region, or an OAuth token for another resource |
403 IP address rejected | A workspace API key used from an address outside the workspace IP allowlist |
Tool result with isError | The 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
| Region | Streamable HTTP |
|---|---|
| US | https://mcp-api.unified.to/mcp |
| EU | https://mcp-api-eu.unified.to/mcp |
| AU | https://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:initializereturns anmcp-session-idheader. 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 returns404 Session not found, so start a new one withinitialize.DELETE /mcpends a session. 2026-07-28: sendMCP-Protocol-Version: 2026-07-28on 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
| Tool | Description |
|---|---|
search_docs | Search the API documentation at docs.unified.to and provide an answer to a query or question. |
Skills
| Tool | Description |
|---|---|
list_unified_skills | List the Agent Skills the server serves: name, description and skill:// URI. Optional query filters by name or description |
get_unified_skill | Return one skill's full SKILL.md, by name (e.g. unified-crm) or skill:// URI |
See Agent Skills below.
Connections
| Tool | Description |
|---|---|
list_unified_connections | List the connections in your workspace |
get_unified_connection | Retrieve a single connection by ID |
create_unified_connection | Create a connection |
update_unified_connection | Update a connection |
remove_unified_connection | Delete a connection |
create_unified_connection_reauth | Create a re-authorization token for a connection, so its end-customer can re-authorize it |
get_unified_connection_mcp_url | Generate a connection-scoped MCP remote URL (see below) |
Webhooks
| Tool | Description |
|---|---|
list_unified_webhooks | List webhooks |
get_unified_webhook | Retrieve a webhook by ID |
create_unified_webhook | Create a webhook |
update_unified_webhook | Update a webhook |
remove_unified_webhook | Delete a webhook |
update_unified_webhook_trigger | Trigger a webhook |
Integrations
| Tool | Description |
|---|---|
list_unified_integrations | List the available integrations and their supported capabilities |
activate_unified_integration | Activate an integration in one environment, or change the settings of one already active there |
deactivate_unified_integration | Deactivate 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
| Tool | Description |
|---|---|
list_unified_issues | List issues / tickets raised against your workspace |
get_unified_issue | Retrieve a single issue by ID |
API calls
| Tool | Description |
|---|---|
list_unified_apicalls | List recent API-call logs |
get_unified_apicall | Retrieve a single API-call log by ID |
Environments
| Tool | Description |
|---|---|
list_unified_environments | List authentication environments |
create_unified_environment | Create an environment |
remove_unified_environment | Delete an environment |
Notifications
| Tool | Description |
|---|---|
list_unified_notifications | List your workspace's event notifications |
Secrets managers
| Tool | Description |
|---|---|
list_unified_secretsmanagers | List the secrets managers connected to your workspace |
get_unified_secretsmanager | Retrieve a secrets manager by ID |
create_unified_secretsmanager | Connect a secrets manager |
remove_unified_secretsmanager | Remove a secrets manager |
list_unified_secretsmanager_instructions | List the setup instructions for each secrets manager type |
list_unified_secretsmanager_secrets | List the secrets in a secrets manager |
Without credentials
A coding agent can see what the server offers before it has a key:
- A
tools/listrequest with no credential returns the Core Unified API tools above, with their input and output schemas. No session orinitializeis needed. Every other method without a credential gets401, which is how OAuth-capable clients find the sign-in. /mcp?integration_type=<type>serves that integration's full tool catalog, on every method includinginitialize, eg.https://mcp-api.unified.to/mcp?integration_type=hubspot. An unknown type returns404./mcp?signup=trueserves the Core tools on every method and addssignup_unified_workspace, which is callable without a credential. See Agent Signup.list_unified_integrationscan be called with no credential. It then returns the public catalog: thetype,name,categories,created_atandlogo_urlof every integration. It accepts thelimit,offset,updated_gte,categories,typeandtypesfilters and ignores the rest. Send a singletools/callto/mcp, with no session orinitialize, 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.
| Tools | readOnlyHint | destructiveHint | idempotentHint | openWorldHint |
|---|---|---|---|---|
list_*, get_* (except get_unified_connection_mcp_url), search_docs | true | false | true | true |
create_unified_* (connection, connection re-authorization, webhook, environment, secrets manager) | false | false | false | true |
update_unified_connection, update_unified_webhook, update_unified_webhook_resume, remove_unified_*, activate_unified_integration, deactivate_unified_integration | false | true | true | true |
update_unified_webhook_trigger | false | true | false | true |
get_unified_connection_mcp_url, signup_unified_workspace | false | false | false | false |
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:
| Skill | What it covers |
|---|---|
unified-quickstart | Get started: activate integrations, embed the Authorization component, make a first API call |
unified-mcp-core | Manage your workspace from an agent through this server in Core Unified API mode |
unified-mcp-connection | Give an AI agent one end-customer connection's tools through this server in connection mode |
unified-accounting-invoicing | Invoicing, billing and bookkeeping (Accounting API) |
unified-assessment | Assessment and background-check products that plug into ATSs (Assessment API) |
unified-ats-jobboard | Candidate sourcing, recruiting and job boards (ATS API) |
unified-auth-signin | "Sign in with" Google, Microsoft and other OAuth2 or SAML providers (Authentication API) |
unified-calendar | Scheduling, calendars and events (Calendar API) |
unified-crm | CRM and sales automation (CRM API) |
unified-ecommerce | Products, catalogs and inventory (Commerce API) |
unified-enterprise-search-rag | Enterprise search and RAG over documents (Storage and KMS APIs) |
unified-hris | HR, people data and payroll (HRIS API) |
unified-messaging | Chat, bots and notifications (Messaging API) |
unified-payments | Payments, subscriptions and payouts (Payment API) |
unified-ticketing | Helpdesk 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": {}
}
}
}
| Method | What it returns |
|---|---|
skills/list | Every skill: its uri, its SKILL.md frontmatter, and a resources array with each file's digest (sha256) and size |
skills/get | One skill's entry, given its uri. An unknown URI returns error -32602 |
resources/list | Each skill's SKILL.md as a resource |
resources/read | A 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
| Parameter | Required | Description |
|---|---|---|
connection_id | yes | The ID of the connection to generate an MCP remote URL for |
mode | no | Authentication 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 |
permissions | no | Comma-separated permission scopes to limit the tools the URL exposes (e.g. crm_contact_read,crm_company_read) |
tools | no | Comma-separated tool IDs or wildcard patterns to limit which tools the URL exposes (e.g. list_*,*invoices*) |
aliases | no | Custom description aliases (key:alt1,alt2;key2:alt3) to improve tool matching (e.g. employee:user;employees:users) |
defer_tools | no | Defer tool loading to reduce context usage — all or a comma-separated list of tool IDs. Only takes effect on GET /tools |
hide_sensitive | no | When true, strips PII and other sensitive fields from tool responses before they reach the LLM |
include_external_tools | no | When 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:
dcwas 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:
mode | Generated URL | Sharing |
|---|---|---|
user | …/mcp, with a connection-scoped token as the Authorization header | Uses 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 header | Uses 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:
apiis the default, for backwards compatibility. Passmode: "user"whenever the URL will leave your own servers. - OAuth sign-in:
useris the default, andapireturns an error. AnapiURL would hand the model your OAuth access token, which grants access to the whole workspace. It also wouldn't work, because an OAuth token ignoresconnectionand 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."
}
| Field | Description |
|---|---|
recommended.url | The MCP URL without the credential. In api mode it still carries connection, and in both modes any options you passed |
recommended.headers | The Authorization header to send with it |
mcp_url | The 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 getsundefined— readrecommended(ormcp_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:682e20be9ca303793060370fmode:userpermissions:crm_contact_read,crm_company_readhide_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.