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

# De to.co MCP-server

Laat een AI-assistent gepubliceerde bedrijfsprofielen op to.co opzoeken en je eigen bedrijfsprofiel actueel houden. Bedrijven opzoeken is gratis en vereist geen inlog.

[Koppel je assistent](#connect) · [Tools](#tools)

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

<a id="connect"></a>
## Koppel je assistent

Voeg de server-URL toe aan je assistent. Opzoeken werkt meteen. Wil je dat hij je eigen bedrijven beheert, log dan in bij to.co wanneer hij daarom vraagt, zoals beschreven onder Inloggen.

### 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.

## Inloggen

De tools identity en help vereisen geen inlog. De tools companies en locations werken met de bedrijven die je account bezit, dus de assistent moet namens jou handelen. Dat kan op twee manieren.

Inloggen met to.co (OAuth). Wanneer de assistent voor het eerst de tool companies of locations gebruikt, antwoordt de server dat inloggen nodig is, en opent de assistent een to.co-pagina waar je inlogt en ziet wat hij vraagt: je bedrijven lezen en hun openbare profiel wijzigen. Je kunt het wijzigen uitvinken. Daarna krijgt hij een token dat een uur geldig is en zichzelf vernieuwt; je kunt de koppeling altijd verbreken op de pagina Inloggen en beveiliging. Dit werkt in assistenten die inloggen via MCP (OAuth) ondersteunen.

Of gebruik een agenttoken, voor scripts en assistenten zonder inloggen via MCP. Maak er een aan op de pagina Inloggen en beveiliging in my.to.co. Het is 90 dagen geldig, begint met toco_at_, kan alles wat de tools companies en locations kunnen, en je kunt het daar intrekken. Stuur het mee als Authorization: Bearer toco_at_…. Behandel het als een wachtwoord: tokens worden geweigerd vanaf webpagina’s. Hoe dan ook controleert de server bij elke aanroep het eigendom: een bedrijf van een ander account geeft ‘niet gevonden’.

[Gekoppelde apps en tokens beheren](https://my.to.co/account/security)

<a id="business"></a>
## De eigen server van elk bedrijf

Elk gepubliceerd bedrijf op to.co heeft ook een eigen MCP-server, op zijn eigen adres met /mcp erachter, bijvoorbeeld https://mybusiness.uk.to.co/mcp. Het is een aparte server, los van mcp.to.co, met eigen tools over dat ene bedrijf: wat het op zijn pagina publiceert (wie het is, hoe je het bereikt, wanneer en waar het open is, en wat het assistenten laat doen), berichten waar het bedrijf die aanneemt, en tools voor de eigenaar. Geen ervan zoekt een ander bedrijf op, en geen ervan neemt een adres aan. Vragen over het bedrijf is gratis en kan zonder in te loggen. De server van elk bedrijf is gedocumenteerd op zijn eigen adres, op /mcp/docs, in de taal van de lezer. De pagina van het bedrijf linkt ernaar, en zijn llms.txt en een Link-header (rel="service-desc") wijzen naar zijn serverkaart, /.well-known/mcp.json.

Voeg om verbinding te maken het adres van het bedrijf, eindigend op /mcp, in je assistent toe als eigen connector of MCP-server. Inloggen werkt zoals beschreven onder Inloggen, en de verbinding geldt alleen voor dat bedrijf: een token voor een ander bedrijf, of voor mcp.to.co, wordt geweigerd. De eigenaar vindt het adres in my.to.co, op het tabblad AI-assistenten van het bedrijf.

Een bedrijf opzoeken kost niets, ingelogd of niet: elke aanroeper (een token, of zonder token een IP-adres) mag 600 keer per uur opzoeken op de server van elk bedrijf. Wie een aanroep doet waarvoor inloggen nodig is, betaalt die. Het account van de eigenaar gebruikt de maandelijkse API-tegoeden van het bedrijf, bij elk abonnement. Iedereen anders heeft een eigen tegoed voor alle bedrijven samen: 60 aanroepen per uur en 500 per maand. Na de 500 van de maand betaalt een bedrijf van hun eigen account op to.co uit zijn maandelijkse API-tegoeden; zonder bedrijf worden aanroepen tot de 1e geweigerd. Weigeringen zijn HTTP 429: credits_exhausted als de maand van het bedrijf op is, allowance_exhausted voor de maand van de persoon, en rate_limited met Retry-After voor een uur.

Bij Pro en Grow kan de eigenaar assistenten het bedrijf een bericht laten sturen met de tool messages, nadat de persoon voor wie de assistent handelt het heeft gezien en heeft gevraagd het te versturen, met de eigen naam en contactgegevens. Het staat uit tot de eigenaar het aanzet.

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

Elke verbinding heeft de vier tools hieronder; ingelogde accounts krijgen ook tools voor documenten, handelspartners en berichten. Elke tool krijgt een argument action dat zegt wat er moet gebeuren, plus de argumenten die die actie nodig heeft. Namen van argumenten en resultaatvelden zijn in snake_case, net als in de to.co-API. Elk resultaat is JSON, teruggegeven als gestructureerde inhoud met een bijpassend output-schema. Openingstijden behouden hun opgeslagen vorm: day (0 voor zondag tot 6 voor zaterdag) of date (YYYY-MM-DD), open, open_time en close_time in 24-uursnotatie HH:mm, waarbij een sluitingstijd vóór de openingstijd betekent dat de openingstijd na middernacht doorloopt.

### `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` (iedereen, alleen lezen): The business at a to.co address.
  - `host` (string, verplicht): A to.co address, e.g. mybusiness.uk.to.co or mybusiness-bristol.biz.to.co
- `website` (iedereen, alleen lezen): The businesses whose website is on this hostname. A website can belong to more than one business, so this returns a list.
  - `website` (string, verplicht): The business's own website, e.g. mybusiness.com or https://www.mybusiness.com/
- `search` (iedereen, alleen lezen): Businesses whose name matches, newest first.
  - `query` (string, verplicht): Part of the business name, at least 2 characters
  - `limit` (integer): Maximum results, 1-25 (default 10)

Voorbeeldaanroep:

```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` (inloggen, scope `companies:read`, alleen lezen): Every business the account owns, with its record key and publish status.
- `get` (inloggen, scope `companies:read`, alleen lezen): One business the account owns, by record key.
  - `domain` (string, verplicht): The record key of a company you own, as returned by companies list (the `domain` field)
- `update` (inloggen, scope `companies:write`, wijzigt gegevens): 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, verplicht): 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

Voorbeeldaanroep:

```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` (inloggen, scope `companies:read`, alleen lezen): Every location of a business you own, with its record key, kind (registered or trading), hours, phones and profiles.
  - `domain` (string, verplicht): The record key of a company you own, as returned by companies list (the `domain` field)
- `update` (inloggen, scope `companies:write`, wijzigt gegevens): 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, verplicht): The record key of a company you own, as returned by companies list (the `domain` field)
  - `location` (string, verplicht): 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

Voorbeeldaanroep:

```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` (iedereen, alleen lezen): Whether this connection is signed in, and which tools and actions it can use.
- `guide` (iedereen, alleen lezen): The usage guide as Markdown (also the resource toco://guide).

Voorbeeldaanroep:

```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. Argumenten: `business`.
- `review_my_profile`: Read a business you own and suggest clearer wording for its public profile. Changes nothing until you confirm. Argumenten: `domain`.

## Foutmeldingen

Een aanroep die de assistent zelf kan herstellen, komt terug als toolresultaat dat als fout is gemarkeerd, met een vaste code aan het begin en een uitleg van wat er moet veranderen:

- `invalid_arguments`: Een argument ontbreekt, valt buiten het bereik of is onbekend (veldnamen zijn in snake_case), of de actie is onbekend.
- `not_found`: Er is geen gepubliceerd bedrijf dat overeenkomt, of geen bedrijf of vestiging van jou met die recordsleutel.
- `unauthenticated`: De actie vereist inloggen (komt alleen voor bij clients die niet reageren op de HTTP 401 hieronder).
- `insufficient_scope`: De koppeling had geen toestemming voor deze actie, bijvoorbeeld een wijziging terwijl alleen lezen was toegestaan.

Een aanroep van companies of locations zonder inlog krijgt HTTP 401 met een WWW-Authenticate-header die verwijst naar de protected resource metadata van de server; zo weet de assistent dat hij het inloggen moet starten. Een actie buiten wat je hebt toegestaan krijgt HTTP 403 met error=insufficient_scope en de scope die moet worden aangevraagd. Een ongeldig, verlopen of ingetrokken token krijgt HTTP 401 voordat er een tool draait; het wordt nooit behandeld als geen token. Te veel verzoeken krijgen HTTP 429 met een Retry-After-header.

## Limieten

- 120 verzoeken per minuut per agenttoken, of per IP-adres zonder token.
- Request bodies tot 1024 KB.
- Zoeken geeft maximaal 25 bedrijven per aanroep terug.

## Discovery

- Server card: https://mcp.to.co/.well-known/mcp.json
- Vermelding in het MCP Registry (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

## Gegevens en privacy

Opzoekacties geven alleen gepubliceerde profielen terug, met dezelfde gegevens als de openbare pagina van het bedrijf. De server logt welke tool en actie zijn uitgevoerd, of dat is gelukt en hoe lang het duurde, zonder argumenten en zonder inhoud van het profiel. Als je een assistent koppelt, houdt to.co een registratie van de koppeling bij (de naam van de app, wat je hebt toegestaan, wanneer de koppeling is gemaakt en voor het laatst is gebruikt), die als beveiligingsregistratie bewaard blijft nadat je de koppeling hebt verbroken.

## Volgende stappen

- [Lees het lanceringsbericht](https://to.co/nl-nl/blog/mcp-server)
- [Aan de slag](https://my.to.co/claim)
