MCP connector
Connect Horizon to Claude, Claude Code, ChatGPT or GitHub Copilot through Horizon's MCP connector. Its five tools, who can use it, what it counts against your API allowance, what waits for your approval or is left out, how to cut one app off or turn the connector off, and what each refusal means.
Horizon’s MCP connector lets an AI assistant that speaks the Model Context Protocol (Claude, Claude Code, ChatGPT or GitHub Copilot) read and change your Horizon data through the App API, as you, after you sign in.
You add it to your assistant as a custom connector. The server URL is the same for every client:
https://mcp.horizonplatform.ai/mcpBefore you start
- You must be an owner or admin of the organization. Members with any other role can sign in, but every tool,
searchincluded, answers that their role cannot use the connector yet. See Troubleshooting. - The connector must be on for the organization. It is on unless an owner or admin turns off Allow AI apps to connect to this organization. See Turn the connector off.
- The connection acts as you. Whatever the assistant does through Horizon is done as the member who signed in, in the organization picked on the consent screen, with what an owner or admin may do.
- Each client signs in separately. Connecting Claude and Claude Code gives you two connections, each listed on its own under Connected apps.
Connect a client
Every client follows the same pattern: add the server URL, sign in to Horizon, and pick the organization on the consent screen. The consent screen shows an organization picker; pick the organization the assistant should work in. To work in another organization, disconnect and connect again.
For Claude on the web and in the desktop app.
On a Pro or Max plan, go to Customize > Connectors, select + Add, then Add custom connector.
On a Team or Enterprise plan, an owner of the Claude organization adds the connector instead: Organization settings > Connectors, select Add, hover over Custom and select Web. Members then connect it from Customize > Connectors.
Enter
Horizonas the name andhttps://mcp.horizonplatform.ai/mcpas the server URL, then select Continue.Horizon’s connector page says you’re not connected yet. Select Connect, sign in to Horizon, pick the organization on the consent screen, and select Allow.
In a chat, select + at the lower left, then Connectors, and make sure Horizon is switched on.
Add the server:
bashclaude mcp add --transport http horizon https://mcp.horizonplatform.ai/mcpSign in. Either run
/mcpin a Claude Code session and choosehorizon, or run:bashclaude mcp login horizonA browser opens. Sign in to Horizon, pick the organization on the consent screen, and allow access.
Back in Claude Code,
/mcplistshorizonas connected.
For ChatGPT on the web. OpenAI offers custom connectors on the plans its help article Connecting custom MCP servers in ChatGPT lists, and your workspace’s permissions decide whether you can add one.
- In ChatGPT, open Plugins, select Add, then Add custom MCP server.
- Enter
Horizonas the name. Under Connection, keep Server URL and enterhttps://mcp.horizonplatform.ai/mcp. Leave Authentication set to OAuth. - Read the note about custom MCP servers, tick I understand and want to continue, then select Create as a plugin.
- Sign in to Horizon, pick the organization on the consent screen, and select Allow.
- In a new chat, add Horizon from the + menu.
If Add custom MCP server is missing, your plan or workspace doesn’t allow custom servers yet; OpenAI’s help article above says which do.
ChatGPT treats execute, ask_agent and upload_file as write actions and asks you to confirm their calls.
For GitHub Copilot in VS Code.
Run MCP: Add Server from the Command Palette.
Choose HTTP (HTTP or Server-Sent Events), enter
https://mcp.horizonplatform.ai/mcp, and enterhorizonas the server ID.Choose Copilot Global to add Horizon for every workspace, or the workspace-root
.mcp.jsonwhen VS Code offers it to add it for one workspace.To add it by hand instead, put this in
~/.copilot/mcp-config.json, or in.mcp.jsonat the workspace root:json{ "mcpServers": { "horizon": { "type": "http", "url": "https://mcp.horizonplatform.ai/mcp", "tools": ["*"] } } }In a Copilot chat session, ask for something that needs Horizon. When VS Code asks you to sign in, or offers Authenticate in the session’s server actions, sign in to Horizon, pick the organization on the consent screen, and allow access.
The five tools
| Tool | What it does | Counted against your API allowance |
|---|---|---|
search | Finds the Horizon API operations a script can call, with each one’s method, path, query parameters and body shape. It reads the API description only, never your data | No |
execute | Runs a short JavaScript script the assistant writes against the Horizon API, as you, and returns its logs and return value | Yes: each request the script makes |
get_usage | Shows how much of the organization’s API allowance is used and how much is left. If Horizon is not enforcing API limits for your organization, it says so | No |
ask_agent | Hands a job to a Horizon agent (the Operator, unless the assistant names another agent you can start in Operator) and returns its reply. The run is a new Operator conversation of yours, marked MCP in your Operator history, so you can follow it in Horizon | Starting a run is one request. Reading a run’s reply is not counted |
upload_file | Sends content too big for a script, such as a canvas’s HTML, to Horizon in parts of at most 64 KiB, up to 5 MiB in all, for a script to publish. An upload lasts an hour and can be used once | Yes: each part is one request |
The assistant usually calls search first to find the operations it needs, then execute to run them. A script reaches nothing but Horizon’s API, and only the operations search lists.
ask_agent suits a job too big for a few API calls. The agent runs inside Horizon and spends the organization’s tokens, not its API allowance. The tool waits a short while for the reply. If the agent is still working, it returns the run’s id and the assistant reads the reply later. At a zero token balance it says so, with the link to buy tokens.
What counts against your API allowance
The connector’s requests are ordinary App API requests, so they count against the organization’s API allowance like any other key’s:
- Each request an
executescript makes counts, whether it reads or writes. - Each part sent with
upload_fileis one request. - Starting an
ask_agentrun is one request. The agent’s own work spends the organization’s tokens instead. search,get_usageand reading anask_agentrun’s reply are not counted.- A request refused with
401,403,413or429, for a plan limit, or because the organization has no tokens left to start anask_agentrun, is not counted. A400,404,409or server error still counts.
The allowance is a number of requests a minute and a day, set by your organization’s API tier: 10 a minute and 100 a day on Free. The tiers, and what a refused request looks like, are in Rate limits. Owners, admins and billing admins raise the allowance by buying a tier on System > Plan and Tokens; see Buy, switch or cancel a tier.
- Over the day’s allowance, an
executerun stops, and the assistant gets Horizon’s message with its link to upgrade. - Over the minute’s allowance, the script waits out the minute when the wait fits in the run, and otherwise stops.
What waits for your approval
Some requests made through the connector wait for a person before they happen. Instead of running one, Horizon holds it and the assistant tells you it is waiting for approval:
- Email sends, such as an email to a contact. The email goes from your own Gmail connection.
- Deletes and archives of any record. Creating and updating records is not held.
- Canvas publishes: a new canvas, a new version of one, or a change to who can open one. See Canvases.
A hold is addressed to the member the connection acts as, so the approval is yours to make.
- In Horizon on the web, open Approvals (the assistant gives you the link). Requests from the connector are in its Outside apps section. Approve or decline the held request there.
- Ask the assistant to carry on. It runs the same request again with the approval, and Horizon does it.
An approval works once, and only for the request it was given for: the assistant cannot use it to do something different. Once you approve, the assistant has 24 hours to use it. The Horizon iOS app does not list these requests, so approve them on the web.
Horizon refuses a request at once, rather than hold it, when it could not go ahead:
- Your organization has Operator switched off. The Outside apps section shows only while Operator is on, so nobody could approve the request.
- You could not approve that kind of request yourself.
- For an email, you have no Gmail connection, or it cannot send. A Gmail that cannot send is refused with
422 MAILBOX_CANNOT_SEND. To allow sending, open Connections in Horizon, open the Gmail connection, select Approve additional permissions, then Continue to Google, and allow Horizon to send email. Then ask the assistant to try again.
Canvases
On any plan, the assistant can list your organization’s canvases and read each one’s details and HTML. It sees the canvases you see on the Canvases page, and no others.
Publishing a canvas needs a paid API tier (API 1K or above, or custom limits). On Free the request is refused before anything is uploaded, and nobody is asked. On a paid tier:
- The assistant sends the page with
upload_file, then publishes it from a script. - Horizon holds the publish for your approval. On its card in Approvals, select Preview the page to see the page with its scripts and links switched off.
- Approve, then ask the assistant to carry on. Horizon publishes the page.
What the connector does not offer
Some App API operations are left out of the connector, even though a key you create in Settings can call them. search does not list them and execute refuses them:
- Finance writes: capturing bills, categorizing, matching, excluding and un-excluding bank transactions and confirming their suggested categories, bank rules, reconciliations, creating and posting journal entries, completing close tasks and closing periods. Reading a period’s close readiness is left out too, because reading it creates the period’s close checklist.
- Sends to customers: sending an invoice and sending a collections reminder.
- Turning a quote into an invoice.
- Reading a contact’s captured emails.
- Changing who is in the organization: adding a member, changing a member’s role and removing a member. Listing and reading members still works.
- Migration loading: the routes that load records from a data migration.
To do these through the API, use a key you create yourself; see App API.
Manage connected apps
Owners and admins manage the connector under Connected apps, at the top of the API Keys tab in Settings. A connection’s key is managed by its sign-in, so it is not in the list of API keys below.
Connected apps
Each app a member connected to the organization has a row:
| Column | Shows |
|---|---|
| App | The app that connected |
| Connected by | The member the connection acts as |
| Connected | The date the member connected it |
| Last used | The date it last made a request, or Never |
| Status | Connected or Revoked |
- Revoke, on a connected app, cuts that app off for that member. The first call after it may say Horizon did not accept the sign-in; then every call answers that the connection was revoked. Signing in again does not reconnect it; selecting Remove does.
- Remove, on a revoked app, deletes the revoked connection, so that member can connect the app again by signing in.
Disconnecting or removing Horizon in the client also ends its access.
Turn the connector off
The switch above the list, Allow AI apps to connect to this organization, is on unless an owner or admin turns it off.
- Off stops every connected app at once and refuses new connections. Every call answers that an admin has turned off the connector.
- On again lets them work, without anyone reconnecting.
Troubleshooting
When a tool cannot run, it answers with one of these messages:
| Message | What it means | What to do |
|---|---|---|
| This sign-in is not connected to a Horizon organization you belong to. Disconnect and reconnect the Horizon connector, and pick an organization on the consent screen. | No organization was picked on the consent screen, or you are not a member of the one that was | Disconnect, reconnect, and pick an organization you belong to |
| Horizon did not accept this sign-in. Disconnect and reconnect the Horizon connector, and pick an organization on the consent screen. | The sign-in has expired or is no longer valid, or the app was revoked a moment ago | Try once more. If it repeats, disconnect and reconnect. If the next message says the connection was revoked, follow that row instead |
| This connection was revoked in Horizon, so reconnecting won’t help. An owner or admin can remove it under Settings > API keys > Connected apps, and then it works again. Nothing was run. | An owner or admin revoked this app’s connection under Connected apps | Ask an owner or admin to select Remove on the revoked app under Connected apps, on the API Keys tab of Settings. The next call works again without reconnecting |
| An admin has turned off the Horizon connector for this organization. Nothing was run. | An owner or admin turned off Allow AI apps to connect to this organization | Ask an owner or admin to turn it back on. Reconnecting does not help, and once it is on the connection works again as it is |
| Your role in this organization cannot use the Horizon connector yet. Ask an owner or admin of the organization to do this, or to change your role. Nothing was run. | Only owners and admins can use the connector. Reconnecting does not help | Ask an owner or admin to do the job, or to make you an admin |
| The Horizon connector is not switched on yet. Nothing was run. | The connector is not available for use yet | Nothing on your side; try again once it is |
| Horizon could not be reached to start this call. Nothing was run. Try again in a moment. | A temporary failure between the connector and Horizon | Try again in a moment |
Security
- Your sign-in becomes a short-lived key. The connector exchanges your sign-in for an API key that lasts at most an hour, and stops reaching the organization’s records when you leave it.
- Scripts never see the key. The connector holds it and makes each request on the script’s behalf; the key is stripped from anything returned to the assistant.
- Each script runs alone. Every
executerun gets a fresh, isolated sandbox with no network access except Horizon’s API, and only the operationssearchlists. - Floods are refused. A sign-in that sends more than 600 requests a minute to the connector is answered with
429. - Nothing logs your key or sign-in token.