Cerber
All guides
Guides

Cerber MCP for Telegram

Connect an MCP client, find a familiar phrase in one shared chat and trace the answer back to the original message.

Before you start

  • An MCP-compatible client
  • An account with a saved chat and permission to share it
  • Your Cerber archive password
On this page

Start with one account and one question

Pick a chat you can open in Telegram and a phrase you know it contains. This gives you a way to check the first result before you share more accounts.

  1. Open the developer connection form in Cerber. Give the connection a name you will recognise later in AI Access.
  2. Choose the accounts or departments this client needs. Select a duration that fits the work. Your role and the selected accounts limit what the client can access.
  3. Choose a mode below, review the selection and create the connection. Keep the tab with the one-time credentials open until setup is complete.

Choose where decryption happens

ModeWhere it runsWhat to configure
CloudCerber opens the permitted archive on its server.Use a client with remote HTTP MCP support. Copy the URL and Authorization header issued for this connection.
LocalA bridge decrypts the permitted archive on your computer. It must be running when the client requests data.Use the bridge instructions, archive URL and token from the setup screen. Enter the archive password in the bridge on your computer.

A local bridge still contacts Cerber to get the archive. The AI client may send retrieved content to its own cloud provider.

Choose where the archive will be decrypted before you issue the connection.

Add the connection to your client

For a remote connector that supports OAuth, enter the server address below, open the Cerber consent screen and review the requested permissions. For a manual developer connection, use the URL and Bearer header exactly as shown in its configuration.

  1. Cloud with a stored archive password: Cerber uses the password saved for that connection. With the header option, supply X-Vault-Password through your client’s protected configuration.
  2. Local: start the bridge using the instructions for your OS, then connect the client to that bridge. Use the locally issued configuration for this mode.
  3. Let your MCP client initialise the connection and request tools/list. Use a secret store for credentials. Return to the original setup tab if you already have a configuration open.
https://admin.getcerber.com/mcp

A Developer token issued for MCP and a REST API key created under API keys are separate credentials. Keep tokens and archive passwords out of prompts, screenshots and support messages.

Archive tool reference

The cloud server advertises the tools this connection may call through tools/list, including the exact input schemas. The archive Developer connection grants archive reading within its selected accounts. For a scoped grant, the relevant archive:read permission or tool-level permission must be present. Use the account and chat identifiers returned by the tools.

ToolInputResult
list_accounts{}Visible accounts and archive status. A visible account can still have an empty archive.
list_chatsOptional account, folder, unreadOnly, includeUnsavedchats with identifiers and coverage. historyFrom is the oldest saved date. Check historyComplete before interpreting older results.
search_messagesRequired query. Optional account, chat, after, before, sender, limit (1–200)hits with msgId, matchedIn and a snippet where available. partial signals an unfinished search.
get_chat_messagesRequired account and chat. Optional after, before, limit (1–500)messages in chronological order, count, more, nextBefore and nextAfter.
get_message_historyRequired account, chat and integer msgIdArchived versions of a message, when available, and its current version.
get_mediaRequired account, chat and integer msgIdAttachment facts and available content. A message without an attachment returns a tool error.
list_topicsRequired account and chatTopics recorded for a forum group. Use a returned topic ID to narrow message retrieval.
list_chat_membersRequired account and group chatRecorded membership, changes and details of any gaps in the snapshot.
list_foldersOptional accountRecorded folder names and chat counts. Newer archives may return an empty list.

Read one known message

After initialisation, call list_accounts with {}. Choose your account, use list_chats to find a saved chat, then replace both placeholders and the example search term. This JSON-RPC request is for a client that has already authenticated.

{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "search_messages",
    "arguments": {
      "account": "<account>",
      "chat": "<chat>",
      "query": "catalogue",
      "limit": 5
    }
  }
}

Search matches text and captions without case sensitivity. It can also match sender names, filenames, extracted document text and voice transcripts when available.

Check the result against Telegram

The archive tool returns text content in the MCP result. Below are selected fields from an illustrative decoded result. Compare the message ID, date and wording with the chat. If partial is true, narrow the time range or chat before drawing a conclusion.

{
  "hits": [
    {
      "msgId": 1842,
      "date": "2026-11-02T10:30:00Z",
      "matchedIn": "text",
      "snippet": "The catalogue cover is approved."
    }
  ],
  "scanned": 12,
  "total": 12,
  "partial": false
}

For surrounding messages, call get_chat_messages. To page backwards, pass nextBefore as before. To move forwards, pass nextAfter as after. A null cursor means that end of the available history has been reached.

Read the error before changing permissions

SignalMeaningNext step
401The credential was refused.Check the URL, the selected connection, its expiry and whether it was revoked.
JSON-RPC −32001 / −32002The archive password is wrong or missing.Check the password setting for this connection. Re-enter it through the protected setup screen.
JSON-RPC −32602A tool name or argument is invalid.Compare the request with tools/list. Check required fields and the limit range.
result.isError = trueThe tool could not serve this request, for example because the chat name is ambiguous.Read the tool message. Select an exact chat ID from list_chats and retry within the existing grant.
hits = []The search returned no matches.Check the spelling, account, saved date range and partial flag. Try a word you can verify in Telegram.

Check the result

Your client has read a known message from an allowed chat, and its date and ID match the original. Listing tools alone only tests the connection.