MCTL
Privacy

Privacy and data handling

What this service stores, for how long, who can access it, and how to remove it. See /security for the threat model.

Claude, ChatGPT, and other MCP users

When you connect MCTL to Claude, ChatGPT, or another MCP client, the following data flows apply:

AI use of your messages

Your chats contain messages written by other people, who have not agreed to anything with this service. Telegram's terms forbid using Telegram data to train AI models without consent, so the rules here are narrow:

Data inventory

WhereContentsWhyRetention
users table Telegram user ID, display name, and username Resolves your identity for per-user storage isolation Account deletion clears the display name, username, and last-seen time and removes related user-scoped rows by database cascade where configured. The Telegram user ID, access tier, and the time of the delete are kept, so a later sign-in is matched to the same row and an authorization code issued before the delete cannot be redeemed after it.
client_notification_prefs table One row per category you explicitly decided (product_updates, maintenance, security), with the state, the time you decided, and which surface you used. No row is written for a default you never changed. Records consent per category, so operational notices are never counted as marketing consent Removed by account deletion. A preference grants no Telegram or MCP access.
client_bot_reachability table Whether the login bot may currently start a chat with you (unknown, reachable, blocked, cannot_initiate), when that was observed and from which delivery, /start, or sign-in permission. No message content and no Telegram API response body. Learned only from the outcome of a message actually sent to you, your /start, or a sign-in permission Telegram reports; no message is ever sent merely to test reachability Removed by account deletion
telegram_accounts table AES-256-GCM ciphertext of your MTProto session blob using a per-user derived key, plus account metadata and feature/send flags Required to make Telegram API calls on your behalf Until disconnect or deletion, which erase it and ask Telegram to end the session. A newer sign-in also erases the session it replaced and asks Telegram to end it. A session revoked for a TTL or because Telegram rejected the key is only erased.
incoming_events and conversation_messages Communication Agent event metadata and third-party Telegram message bodies. Message bodies are AES-256-GCM encrypted before storage. Durable ingestion, deduplication, queue recovery, conversation context, and owner takeover handling Encrypted bodies/context: AGENT_RETENTION_DAYS, default 30 days. Event metadata remains as a deduplication tombstone until account deletion. Setting retention to 0 keeps content indefinitely.
agent_actions Proposed reply/action payloads, policy decision and reasons, approval state, and execution metadata. Sensitive payload text is encrypted at rest. Server-side policy enforcement, human approval, and exactly-once-oriented execution bookkeeping Encrypted draft/send content and approval capabilities: AGENT_RETENTION_DAYS, default 30 days. Old inactive pre-send actions are denied before content is cleared; executing actions retain recovery data until terminal. Lifecycle metadata remains until account deletion.
audit_logs table Tool/action name, redacted peer reference, status, and a redacted error string. No message body, phone number, bearer token, or session bytes. Operational visibility, abuse detection, and user-visible audit history Default 90 days via AUDIT_RETENTION_DAYS; 0 keeps rows indefinitely. Account deletion does not remove these rows: they stay until that window ends. They are not encrypted.
Process memory Plaintext Telegram messages, decrypted agent content, tool arguments, and tool results while a request, listener update, policy evaluation, or queue job is being processed Required to fulfill the request or agent workflow Released after processing; the running process/operator can access it while present
Process stdout (Loki) Structured JSON log lines from slog, with message/body/payload and credential keys redacted Operator debugging Per the platform's Loki retention (typically 14–30 days)
job_leads Job leads the Communication Agent records from your conversations: company, role, recruiter name and Telegram ID, compensation, status, and other details. Encrypted with your per-user key, except the status. Tracking the leads the agent handles for you 90 days after the lead was last updated, or until account deletion if that comes first (AGENT_LEAD_RETENTION_DAYS).
oauth_refresh_tokens A hash of each refresh token, the client's ID, name and redirect address, your Telegram ID and username, the granted scope, and issue, expiry and revocation times Keeps your MCP client connected Revoked by account deletion. The row is removed after the token expires.
local_bridge_devices Device ID and label, registration and last-seen times, and revocation details Local Bridge device management Revoked by account deletion, and the row is kept as a revoked record
worker_token_revocations Your Telegram ID, token ID, revocation time and reason Makes sure a revoked worker token stays refused Kept after account deletion
user_acquisition The sign-up record described under Sign-up attribution Learning how people find the service Removed by account deletion
Database backups Copies of the database, including the tables above Disaster recovery 14 days. Data deleted from the database can stay in a backup until then.

This table covers the main stores, not every internal table.

What is NOT stored in logs or audit history

Important

When Communication Agent is enabled, message content is stored in encrypted agent tables as described above. The previous “message text is never written to disk” guarantee applies only to ordinary read-tool responses and audit/logging paths, not to the durable agent workflow.

Website analytics

To learn how many people visit tg.mctl.ai and where they come from, the public content pages (home, docs, demo, security, privacy, terms, platforms, assistants, Local Bridge docs, and product updates) load Umami, an open-source analytics tool that we host ourselves at stats.mctl.ai. No analytics data is sent to a third party. Umami itself sets no cookies (this service sets one separate sign-up attribution cookie, described below). For each page view it records the page address (including campaign parameters such as utm_source), the referring site, browser, operating system, device type, screen size, language, and country, region, and city derived from your IP address. Your IP address and user agent are used to compute an anonymous visitor identifier; the IP address itself is not stored.

The sign-in, consent, connect, and account-management pages under /oauth, /telegram/connect, and /local-bridge/activate do not load Umami, and no Telegram data, tool call, token, or account identifier is ever sent to it. Page-view records are deleted automatically 2 years after they were recorded.

Sign-up attribution

When you create your account, the connect screen asks “How did you hear about us?”. The answer is optional, and you pick it from a fixed list. One record is stored with your answer, if you gave one, the type of AI client you connected from (for example Claude or ChatGPT), and the time. The service sets no cookie for this and stores no IP address, user agent, or other fingerprint for it. The record is deleted when you delete your account.

The record of an account created earlier may also hold the campaign parameters (utm_source, utm_medium, utm_campaign, utm_content, utm_term), referring host name and landing page path that a first-party cookie, mctl_acq, carried at sign-up. That cookie is no longer set.

Communication Agent controls

Self-service controls

You can remove account access and inspect what was recorded without operator involvement. Disconnect and delete require a connection granted account:manage; read-only connections, worker tokens, and Local Bridge device credentials are refused with 403, and the refusal is recorded in your audit log. On tg.mctl.ai, you can still disconnect from the manage page after signing in with Telegram.

POST   /api/account/disconnect   # end Telegram session; OAuth grant kept
DELETE /api/account              # delete account/session row and user-scoped data; revoke OAuth refresh tokens, worker tokens, and Local Bridge devices
GET    /api/account              # connection status + feature/send flags
GET    /api/account/audit        # newest-first audit rows (limit, before)
GET    /api/account/audit/verify # recompute the audit hash chain

Notification preferences are part of the same self-service surface:

GET    /api/account/notifications   # resolved preference per category
PUT    /api/account/notifications   # change one or more categories

They can also be changed in the browser at /telegram/connect/manage after signing in with Telegram, which submits a plain HTML form and needs no JavaScript. Reading or changing them through the API, and turning one on in the browser, requires a connection granted account:manage; after signing in with Telegram you can always turn notifications off there. Product updates stay off until you turn them on; maintenance and security are classified as operational notices and are never treated as marketing consent.

Equivalent MCP tools include disconnect_telegram_account, delete_telegram_account, get_my_audit_log, get_my_notification_preferences, and set_my_notification_preferences. All of them except get_my_audit_log require account:manage and are listed only to connections granted it. Disconnect/delete also tear down the in-memory MTProto client so a concurrent request cannot continue using a revoked session.

Who can access your data

Third parties

Contact

This service is operated by Dmitrii Mashkov.

General support: [email protected]. Privacy inquiries: [email protected]. For security or vulnerability reports, see /security. Code is open source at github.com/mctlhq/mctl-telegram.