Strona główna to.co

Serwer MCP to.co

Pozwól asystentowi AI wyszukiwać opublikowane wizytówki firm w to.co i aktualizować profil Twojej firmy. Wyszukiwanie firm jest bezpłatne i nie wymaga logowania.

Podłącz swojego asystenta Narzędzia

Adres URL serwera
https://mcp.to.co/mcp
Transport
Streamable HTTP (wersje protokołu MCP: 2026-07-28, 2025-11-25)

Podłącz swojego asystenta

Dodaj adres URL serwera w swoim asystencie. Wyszukiwanie działa od razu. Aby asystent mógł zarządzać Twoimi firmami, zaloguj się do to.co, gdy o to poprosi, zgodnie z opisem w sekcji „Logowanie”.

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.
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.
{
  "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.
{
  "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.
{
  "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.

Logowanie

Narzędzia identity i help nie wymagają logowania. Narzędzia companies i locations działają na firmach należących do Twojego konta, więc asystent musi działać w Twoim imieniu. Są na to dwa sposoby.

Logowanie przez to.co (OAuth). Gdy asystent po raz pierwszy użyje narzędzia companies lub locations, serwer odpowiada, że wymagane jest logowanie, a asystent otwiera stronę to.co, na której logujesz się i widzisz, o jakie uprawnienia prosi: odczyt Twoich firm i zmianę ich publicznego profilu. Możesz odznaczyć zmiany. Asystent otrzymuje wtedy token ważny godzinę, który sam się odnawia; możesz go odłączyć w dowolnej chwili na stronie „Logowanie i bezpieczeństwo”. Działa to w asystentach obsługujących logowanie MCP (OAuth).

Możesz też użyć tokenu agenta — dla skryptów i asystentów bez logowania MCP. Utwórz go na stronie „Logowanie i bezpieczeństwo” w my.to.co. Jest ważny 90 dni, zaczyna się od toco_at_, może wszystko, co narzędzia companies i locations, i możesz go tam unieważnić. Wysyłaj go jako Authorization: Bearer toco_at_…. Traktuj go jak hasło: tokeny wysyłane ze stron internetowych są odrzucane. W obu przypadkach serwer sprawdza własność przy każdym wywołaniu: firma należąca do innego konta jest traktowana jako nieznaleziona.

Zarządzaj połączonymi aplikacjami i tokenami

Własny serwer każdej firmy

Każda opublikowana firma na to.co ma też własny serwer MCP, pod własnym adresem z /mcp na końcu, na przykład https://mybusiness.uk.to.co/mcp. To osobny serwer, niezależny od mcp.to.co, z własnymi narzędziami dotyczącymi tylko tej jednej firmy: do tego, co publikuje na swojej stronie (kim jest, jak się z nią skontaktować, kiedy i gdzie jest otwarta oraz na co pozwala asystentom), do wiadomości tam, gdzie firma je przyjmuje, oraz narzędziami dla jej właściciela. Żadne z nich nie wyszukuje innej firmy i żadne nie przyjmuje adresu. Pytanie o firmę jest bezpłatne i nie wymaga logowania. Serwer każdej firmy jest opisany pod jej własnym adresem, w /mcp/docs, w języku czytelnika. Strona firmy zawiera do niego link, a jej llms.txt i nagłówek Link (rel="service-desc") wskazują jego kartę serwera, /.well-known/mcp.json.

Aby się połączyć, dodaj adres firmy, zakończony na /mcp, w swoim asystencie jako własny konektor lub serwer MCP. Logowanie działa tak, jak opisano w części Logowanie, a połączenie dotyczy tylko tej firmy: token innej firmy lub mcp.to.co zostanie odrzucony. Właściciel znajdzie adres w my.to.co, na karcie Asystenci AI firmy.

Wyszukanie firmy nic nie kosztuje, z logowaniem lub bez: każdy wywołujący (token lub, bez niego, adres IP) może wykonać 600 wyszukiwań na godzinę na serwerze każdej firmy. Za wywołanie wymagające logowania płaci ten, kto je wykonuje. Konto właściciela zużywa miesięczne kredyty API firmy, w każdym planie. Każdy inny ma własny limit dla wszystkich firm razem: 60 wywołań na godzinę i 500 na miesiąc. Po 500 w miesiącu płaci kredytami API firma z jego własnego konta na to.co; bez niej wywołania są odrzucane do 1. dnia miesiąca. Odmowy to HTTP 429: credits_exhausted, gdy miesiąc firmy się wyczerpał, allowance_exhausted dla miesiąca osoby i rate_limited z Retry-After dla godziny.

W planach Pro i Grow właściciel może pozwolić asystentom wysyłać firmie wiadomość narzędziem messages, gdy osoba, w której imieniu działa asystent, ją zobaczy i poprosi o wysłanie, z własnym imieniem i nazwiskiem oraz danymi kontaktowymi. Jest to wyłączone, dopóki właściciel tego nie włączy.

Narzędzia

Każde połączenie ma cztery narzędzia opisane poniżej; zalogowane konta mają też narzędzia do dokumentów, partnerów handlowych i wiadomości. Każde przyjmuje argument action, który określa, co zrobić, oraz argumenty potrzebne dla tej akcji. Nazwy pól argumentów i wyników są w formacie snake_case, tak jak w API to.co. Każdy wynik to JSON zwracany jako treść ustrukturyzowana z odpowiadającym jej schematem wyjściowym. Godziny otwarcia zachowują zapisaną postać: day (od 0 dla niedzieli do 6 dla soboty) lub date (YYYY-MM-DD), open, open_time i close_time w formacie 24-godzinnym HH:mm; godzina zamknięcia wcześniejsza niż godzina otwarcia oznacza otwarcie po północy.

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.

AkcjaCo robiArgumentyDostęp
resolveThe business at a to.co address.
  • host string, wymagany A to.co address, e.g. mybusiness.uk.to.co or mybusiness-bristol.biz.to.co
Każdy
Tylko odczyt
websiteThe businesses whose website is on this hostname. A website can belong to more than one business, so this returns a list.
  • website string, wymagany The business's own website, e.g. mybusiness.com or https://www.mybusiness.com/
Każdy
Tylko odczyt
searchBusinesses whose name matches, newest first.
  • query string, wymagany Part of the business name, at least 2 characters
  • limit integer Maximum results, 1-25 (default 10)
Każdy
Tylko odczyt

Przykładowe wywołanie

{
  "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.

AkcjaCo robiArgumentyDostęp
listEvery business the account owns, with its record key and publish status.BrakLogowanie, zakres companies:read
Tylko odczyt
getOne business the account owns, by record key.
  • domain string, wymagany The record key of a company you own, as returned by companies list (the `domain` field)
Logowanie, zakres companies:read
Tylko odczyt
updateChange 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, wymagany 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
Logowanie, zakres companies:write
Zmienia dane

Przykładowe wywołanie

{
  "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.

AkcjaCo robiArgumentyDostęp
listEvery location of a business you own, with its record key, kind (registered or trading), hours, phones and profiles.
  • domain string, wymagany The record key of a company you own, as returned by companies list (the `domain` field)
Logowanie, zakres companies:read
Tylko odczyt
updateSet 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, wymagany The record key of a company you own, as returned by companies list (the `domain` field)
  • location string, wymagany 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
Logowanie, zakres companies:write
Zmienia dane

Przykładowe wywołanie

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

help — Connection and usage help

Check this connection and read the usage guide.

AkcjaCo robiArgumentyDostęp
whoamiWhether this connection is signed in, and which tools and actions it can use.BrakKażdy
Tylko odczyt
guideThe usage guide as Markdown (also the resource toco://guide).BrakKażdy
Tylko odczyt

Przykładowe wywołanie

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

Zasoby

  • 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

Prompty

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

Błędy

Wywołanie, które asystent może poprawić, wraca jako wynik narzędzia oznaczony jako błąd, zaczynający się od stałego kodu i opisujący, co należy zmienić:

  • invalid_arguments — Brakuje argumentu, wykracza on poza zakres lub jest nieznany (nazwy pól są w formacie snake_case) albo akcja jest nieznana.
  • not_found — Żadna opublikowana firma nie pasuje albo żadna należąca do Ciebie firma lub lokalizacja nie ma takiego klucza rekordu.
  • unauthenticated — Akcja wymaga logowania (występuje tylko w klientach, które nie reagują na opisaną niżej odpowiedź HTTP 401).
  • insufficient_scope — Połączenie nie ma uprawnień do tej akcji, na przykład do zmiany, gdy zezwolono tylko na odczyt.

Wywołanie companies lub locations bez logowania otrzymuje HTTP 401 z nagłówkiem WWW-Authenticate wskazującym metadane chronionego zasobu serwera — dzięki temu asystent wie, że ma rozpocząć logowanie. Akcja wykraczająca poza udzielone uprawnienia otrzymuje HTTP 403 z error=insufficient_scope i zakresem, o który należy poprosić. Nieprawidłowy, wygasły lub unieważniony token otrzymuje HTTP 401, zanim uruchomi się jakiekolwiek narzędzie; nigdy nie jest traktowany jak brak tokenu. Zbyt wiele żądań otrzymuje HTTP 429 z nagłówkiem Retry-After.

Limity

  • Limit żądań na minutę: 120 na token agenta, a bez tokenu na adres IP.
  • Treść żądania do 1024 KB.
  • Maksymalna liczba firm zwracanych przez wyszukiwanie w jednym wywołaniu: 25.

Wykrywanie

Dane i prywatność

Wyszukiwanie zwraca tylko opublikowane wizytówki, z tymi samymi informacjami co publiczna strona firmy. Serwer zapisuje w logach, które narzędzie i akcja zostały uruchomione, czy się powiodły i jak długo trwały, bez argumentów i bez treści wizytówek. Gdy podłączasz asystenta, to.co przechowuje zapis połączenia (nazwę aplikacji, udzielone uprawnienia, datę utworzenia i ostatniego użycia), który pozostaje jako rejestr bezpieczeństwa po odłączeniu.

Dalsze kroki

Język