**MCP server** · [API](https://to.co/en-us/docs/api?format=md)

# The to.co MCP server

Let an AI assistant look up published business records on to.co, and keep your own business profile up to date. Looking businesses up is free and needs no sign-in.

[Connect your assistant](#connect) · [Tools](#tools)

- Server URL: `https://mcp.to.co/mcp`
- Transport: Streamable HTTP (MCP protocol revisions 2026-07-28, 2025-11-25)

<a id="connect"></a>
## Connect your assistant

Add the server URL to your assistant. Lookups work straight away. To let it manage your own businesses, sign in to to.co when it asks, as described under Sign-in.

### Claude (claude.ai and the desktop app)

1. Open Settings, then Connectors, and choose Add custom connector.
2. Name it to.co and enter https://mcp.to.co/mcp as the URL.
3. Leave the client ID and secret empty. Lookups work at once; to let Claude work on your own businesses, sign in to to.co and choose Allow when it asks.

### Claude Code

1. Run this in a terminal, then run /mcp in Claude Code and choose toco to sign in when you want the companies and locations tools.

```sh
claude mcp add --transport http toco https://mcp.to.co/mcp
```

### Cursor

1. Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project). Cursor asks you to sign in to to.co when the companies or locations tool first needs it.

```json
{
  "mcpServers": {
    "toco": {
      "url": "https://mcp.to.co/mcp"
    }
  }
}
```

### VS Code

1. Add this to .vscode/mcp.json, then start the server from the MCP view. VS Code asks you to sign in to to.co when the companies or locations tool first needs it.

```json
{
  "servers": {
    "toco": {
      "type": "http",
      "url": "https://mcp.to.co/mcp"
    }
  }
}
```

### ChatGPT

1. In Settings, open Apps and connectors and turn on developer mode under Advanced.
2. Create a connector with https://mcp.to.co/mcp as the server URL and OAuth as the authentication.

### Windsurf

1. Add this to ~/.codeium/windsurf/mcp_config.json. The Authorization header, with an agent token, is needed only for the companies and locations tools; leave it out for lookups.

```json
{
  "mcpServers": {
    "toco": {
      "serverUrl": "https://mcp.to.co/mcp",
      "headers": {
        "Authorization": "Bearer toco_at_…"
      }
    }
  }
}
```

### Any other client

1. Use Streamable HTTP at https://mcp.to.co/mcp.
2. For the companies and locations tools, sign in with OAuth (the server advertises https://my.to.co in its protected resource metadata) or send Authorization: Bearer with an agent token.

## Sign-in

The identity and help tools need no sign-in. The companies and locations tools work on the businesses your account owns, so the assistant has to act as you. There are two ways.

Sign in with to.co (OAuth). When the assistant first uses the companies or locations tool, the server answers that it needs sign-in, and the assistant opens a to.co page where you sign in and see what it is asking for: reading your businesses, and changing their public profile. You can untick changes. It then gets a token that lasts an hour and renews itself; you can disconnect it at any time on the Sign-in and security page. This works in assistants that support MCP sign-in (OAuth).

Or use an agent token, for scripts and assistants without MCP sign-in. Create one on the Sign-in and security page in my.to.co. It lasts 90 days, starts with toco_at_, can do everything the companies and locations tools do, and you can revoke it there. Send it as Authorization: Bearer toco_at_…. Treat it like a password: tokens are refused from web pages. Either way, the server checks ownership on every call: another account’s business reads as not found.

[Manage connected apps and tokens](https://my.to.co/account/security)

<a id="business"></a>
## Each business's own server

Every published business on to.co also has its own MCP server, at its own address with /mcp on the end, for example https://mybusiness.uk.to.co/mcp. It is a separate server from mcp.to.co, with tools of its own about that one business: what it publishes on its page (who it is, how to reach it, when and where it is open, and what it lets assistants do), messages where the business takes them, and tools for its owner. None of them looks up another business, and none takes an address. Asking about the business is free and needs no sign-in. Each business's server is documented on its own address, at /mcp/docs, in the reader's language. The business's page links to it, and its llms.txt and a Link header (rel="service-desc") point at its server card, /.well-known/mcp.json.

To connect, add the business's address, ending in /mcp, to your assistant as a custom connector or MCP server. Sign-in works as described under Sign-in, and the connection is for that business only: a token for another business, or for mcp.to.co, is refused. The owner finds the address in my.to.co, on the business's AI assistants tab.

Looking a business up costs nothing, signed in or not: each caller (a token, or an IP address without one) may make 600 lookups an hour on each business's server. A call that needs sign-in is paid for by whoever makes it. The owner's account uses the business's monthly API credits, on every plan. Anyone else has an allowance of their own across every business: 60 calls an hour and 500 a month. Past the month's 500, a business their own account has on to.co pays from its monthly API credits; without one, calls are refused until the 1st. Refusals are HTTP 429: credits_exhausted when the business's month is used up, allowance_exhausted for the person's month, and rate_limited with Retry-After for an hour.

On Pro and Grow, the owner can let assistants send the business a message with the messages tool, once the person the assistant acts for has seen it and asked for it to be sent, with their own name and contact details. It is off until the owner switches it on.

<a id="tools"></a>
## Tools

Every connection has the four tools below; signed-in accounts also get tools for documents, trading partners and messages. Each takes an action argument that says what to do, plus the arguments that action needs. Argument and result field names are snake_case, like the to.co API. Every result is JSON, returned as structured content with a matching output schema. Opening hours keep their stored form: day (0 for Sunday to 6 for Saturday) or date (YYYY-MM-DD), open, open_time and close_time in 24-hour HH:mm, with a closing time earlier than the opening time running past midnight.

### `identity` — Look up a business identity

Look up published business identities on to.co. Anyone can call it; no sign-in needed. Records are the public projection: never internal keys or account details.

- `resolve` (anyone, read-only): The business at a to.co address.
  - `host` (string, required): A to.co address, e.g. mybusiness.uk.to.co or mybusiness-bristol.biz.to.co
- `website` (anyone, read-only): The businesses whose website is on this hostname. A website can belong to more than one business, so this returns a list.
  - `website` (string, required): The business's own website, e.g. mybusiness.com or https://www.mybusiness.com/
- `search` (anyone, read-only): Businesses whose name matches, newest first.
  - `query` (string, required): Part of the business name, at least 2 characters
  - `limit` (integer): Maximum results, 1-25 (default 10)

Example call:

```json
{
  "name": "identity",
  "arguments": {
    "action": "resolve",
    "host": "mybusiness.uk.to.co"
  }
}
```

### `companies` — Manage your businesses

Read and update the businesses the connected account owns, drafts included. Needs the person to sign in (OAuth) or an agent token; only the owning account can read or change a record.

- `list` (sign-in, scope `companies:read`, read-only): Every business the account owns, with its record key and publish status.
- `get` (sign-in, scope `companies:read`, read-only): One business the account owns, by record key.
  - `domain` (string, required): The record key of a company you own, as returned by companies list (the `domain` field)
- `update` (sign-in, scope `companies:write`, changes data): Change profile fields and publish the page again. Fields you leave out keep their value; an empty string or null clears one. A registered company takes its official name from the company register, so its name cannot be changed; set informal_name instead.
  - `domain` (string, required): The record key of a company you own, as returned by companies list (the `domain` field)
  - `name` (string): The name of a business that is not registered. Refused for a registered company
  - `informal_name` (string): A shorter everyday name. An empty string or null clears it
  - `description` (string): What the business does, up to 2000 characters. An empty string or null clears it
  - `website_url` (string): The business website, a full https:// URL. An empty string or null clears it
  - `email` (string): A public contact email. A new address is shown on the page only after its owner confirms it from a link emailed to it; the old one stays until then. An empty string or null clears it
  - `phones` (object): Phone numbers by kind; kinds you leave out keep their value. Whether to.co verified a number is read-only
  - `links` (object): Links shown as actions on the page; links you leave out keep their value
  - `keywords` (string): Search keywords, up to 1000 characters. An empty string or null clears it
  - `category` (string): The business category shown on the page, e.g. Bakery. An empty string or null clears it
  - `vat_registration_number` (string): An optional VAT, GST or other tax registration number for the company's home country. Up to 100 characters; upper-cased, and anything but letters and digits removed. Where the country has a rule (the EU, the UK, Switzerland, Norway, Australia, New Zealand, Canada, India) its format and check digit are checked and a number that fails is refused; EU and UK numbers are saved with their country prefix. An empty string or null clears it
  - `contact_preferences` (object): How the business prefers to be contacted by to.co: true or false for email, sms, post and tel
  - `social_links` (object): Social profiles by network (linkedin, x, instagram, facebook, youtube, tiktok, pinterest, vimeo, snapchat, clubhouse): a profile link, or a handle for x and instagram. An empty string or null removes one

Example call:

```json
{
  "name": "companies",
  "arguments": {
    "action": "list"
  }
}
```

### `locations` — Manage your trading locations

Read the locations of a business the connected account owns, and set the description, opening hours, phone numbers and social profiles of its trading locations. These changes keep a location verified. The registered office comes from the company register and cannot be changed here; moving an address needs new proof, in the to.co app.

- `list` (sign-in, scope `companies:read`, read-only): Every location of a business you own, with its record key, kind (registered or trading), hours, phones and profiles.
  - `domain` (string, required): The record key of a company you own, as returned by companies list (the `domain` field)
- `update` (sign-in, scope `companies:write`, changes data): Set the description, opening hours, special hours, phone numbers or social profiles of a trading location and publish the page again. Hours replace the current ones; fields you leave out keep their value. Phone numbers are saved as international numbers; the answer's checks say what was changed, and a value that cannot be accepted is refused, naming the field.
  - `domain` (string, required): The record key of a company you own, as returned by companies list (the `domain` field)
  - `location` (string, required): The record key of a trading location, as returned by locations list (the `domain` field)
  - `description` (string): What this location offers: its own services, products and benefits, in plain words (no name, address, phone, email, links or prices; they are checked and removed). An empty string or null clears it
  - `normal_hours` (array): Weekly opening hours, replacing the current ones: one entry per slot, up to 4 a day; a day with no entry or open false is closed. [] or null clears them
  - `special_hours` (array): Holiday and closure hours that replace the weekly hours on their date, replacing the current list. [] or null clears them
  - `phones` (object): Phone numbers by kind; kinds you leave out keep their value. Whether to.co verified a number is read-only
  - `social_links` (object): Social profiles by network (linkedin, x, instagram, facebook, youtube, tiktok, pinterest, vimeo, snapchat, clubhouse): a profile link, or a handle for x and instagram. An empty string or null removes one

Example call:

```json
{
  "name": "locations",
  "arguments": {
    "action": "list",
    "domain": "yxpx6pdx.uk.to.co"
  }
}
```

### `help` — Connection and usage help

Check this connection and read the usage guide.

- `whoami` (anyone, read-only): Whether this connection is signed in, and which tools and actions it can use.
- `guide` (anyone, read-only): The usage guide as Markdown (also the resource toco://guide).

Example call:

```json
{
  "name": "help",
  "arguments": {
    "action": "whoami"
  }
}
```

## Resources

- `toco://guide` (text/markdown): How to look businesses up and keep your own profile current, with examples.
- `toco://identity/{host}` (application/json): The published record at a to.co address, as JSON. Example: toco://identity/mybusiness.uk.to.co

## Prompts

- `look_up_business`: Find a business on to.co by its to.co address, website or name, and summarize its record. Arguments: `business`.
- `review_my_profile`: Read a business you own and suggest clearer wording for its public profile. Changes nothing until you confirm. Arguments: `domain`.

## Errors

A call the assistant can fix comes back as a tool result marked as an error, starting with a stable code and saying what to change:

- `invalid_arguments`: An argument is missing, out of range or unknown (field names are snake_case), or the action is unknown.
- `not_found`: No published business matches, or no business or location you own has that record key.
- `unauthenticated`: The action needs sign-in (only seen with clients that do not act on the HTTP 401 below).
- `insufficient_scope`: The connection was not allowed this action, for example a change when only reading was allowed.

A companies or locations call without sign-in gets HTTP 401 with a WWW-Authenticate header pointing at the server’s protected resource metadata, which is how the assistant knows to start sign-in. An action outside what you allowed gets HTTP 403 with error=insufficient_scope and the scope to ask for. An invalid, expired or revoked token gets HTTP 401 before any tool runs; it is never treated as no token. Too many requests get HTTP 429 with a Retry-After header.

## Limits

- 120 requests a minute per agent token, or per IP address without one.
- Request bodies up to 1024 KB.
- Search returns up to 25 businesses per call.

## Discovery

- Server card: https://mcp.to.co/.well-known/mcp.json
- MCP Registry entry (co.to/mcp): https://mcp.to.co/server.json
- Protected resource metadata (RFC 9728): https://mcp.to.co/.well-known/oauth-protected-resource
- Authorization server metadata (RFC 8414): https://my.to.co/.well-known/oauth-authorization-server

## Data and privacy

Lookups return only published records, the same facts as the business’s public page. The server logs which tool and action ran, whether it worked, and how long it took, with no arguments and no record content. When you connect an assistant, to.co keeps a record of the connection (the app’s name, what you allowed, when it was made and last used), which stays as a security record after you disconnect it.

## Next steps

- [Read the launch post](https://to.co/en-us/blog/mcp-server)
- [Get started](https://my.to.co/claim)
