Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

Tgcli MCP server

by kfastov/tgcliMIT licenceAudited 8 Oct 2026 · source 3cc5b904b81a

npm @kfastov/tgcli 2.2.3streamable-http★ 43
!CAUTIONGrade B · 89/100 · 8 Oct 2026 · 3cc5b90
43GitHub stars

Is it safe? With care — CAUTION, grade B (89/100). It exposes 38 tools: 37 read, 1 write and 0 destructive. The audit recorded 9 findings (0 critical, 0 high, 3 medium, 6 low). Maintainer's description: Telegram user console client and archiver

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Tgcli MCP server (kfastov/tgcli)”. Retrieved 8 Oct 2026. https://modelsatlas.com/mcp/kfastov/tgcli

Trust audit

Audit 0.4.1 · full source read 8 Oct 2026

Trust score89/100!CAUTION B
0 critical0 high3 medium6 low0 info

9 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemDeclared2 observations
  • NetworkDeclared4 observations
  • ShellDeclared1 observation
  • DependenciesNot pinnedSome ranges float
  • SecretsNone foundNo keys in source

“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.

Five audit layers

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS
L1 Static sourceSecrets, path traversal, supply chainWARN 7 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS 1 finding
L3 InventoryDeclared tools match the sourceWARN 1 finding
L4 SandboxRun in isolation and watch behaviourSKIPPED

Provenance & runtime

Who published it, and what the audit could and could not run

Provenance

  • Repository owner kfastovUser accountAccount type recorded when we read the repository.
  • PackagePublished on npm@kfastov/tgcli at version 2.2.3
  • LicenceMITFrom the repository, as read at the audited commit.
  • Last push17 days agoActivity of the repository when we read it.
  • Source commit read3cc5b904b81aThe audit covers exactly this commit, read on 8 Oct 2026.

Runtime

  • Sandbox runNot run yetThis audit read the source only; it did not execute the server.
  • Tool inventory38 declaredRead from the source and classed read, write or destructive.

Every value here is read from the record's own repository and audit.Suggest a correction

Findings (9)

Sorted by severity

MEDIUMNetwork egressnet.raw_ip · core/control-client.js:75
F-04 Network egressCWE-200 · CWE-319Layer L1
return `http://127.0.0.1:${control.port}${pathname}`;
Why
No further detail recorded for this rule.
Fix
—
MEDIUMNetwork egressnet.raw_ip · core/control-server.js:89
F-04 Network egressCWE-200 · CWE-319Layer L1
url = new URL(req.url ?? '', 'http://127.0.0.1');
Why
No further detail recorded for this rule.
Fix
—
MEDIUMAuth / authzmcp.remote_no_auth
F-10 Auth / authzCWE-287 · CWE-862Layer L3
streamable-http
Why
a network transport with no auth environment variable found
Fix
require a token
LOWFilesystem / pathfs.traversal · tests/folders.test.js:550
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
await expect(tc.joinChatlist('https://t.me/addlist/abc/../../evil')).rejects.toThrow('Invalid chatlist link');
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · README.md:70
F-04 Network egressCWE-200 · CWE-319Layer L1
By default the server binds to `http://127.0.0.1:8080/mcp`. To change it:
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · tests/control-client.test.js:81
F-04 Network egressCWE-200 · CWE-319Layer L1
expect(url).toBe('http://127.0.0.1:8765/control/ping');
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · tests/control-client.test.js:108
F-04 Network egressCWE-200 · CWE-319Layer L1
expect(url).toBe('http://127.0.0.1:8765/control/backfill');
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@modelcontextprotocol/sdk, @mtcute/core, @mtcute/node, better-sqlite3, commander, qrcode, vitest
Why
7 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWPrompt injectionprompt.transfer_instruction · AGENTS.md:26
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- Add coverage when extending `telegram-client.js` or `message-sync-service.js` by mocking MTProto responses to validate session reuse and message archiving.
Why
an instruction to move sensitive data to an outside destination
Fix
remove; a skill never needs the user's secrets off the machine

Tools it exposes

38 declared in source · 0 destructive

37 read1 write0 destructive
ToolRiskWhat it does
listMessageSyncJobswriteLists tracked message sync jobs and their current status.
autoTagChannelsreadAuto-tags channels based on title, username, and cached metadata.
contactsAliasRemovereadRemoves alias for a contact.
contactsAliasSetreadSets an alias for a contact.
contactsGetreadReturns a contact profile from the local store.
contactsNotesSetreadSets notes for a contact.
contactsSearchreadSearches contacts/users with aliases, tags, and notes.
contactsTagsAddreadAdds tags to a contact.
contactsTagsRemovereadRemoves tags from a contact.
getChannelMetadatareadReturns cached metadata for a channel.
getSyncedMessageStatsreadReturns summary statistics for stored messages in a channel.
groupsInforeadFetches group information and metadata.
groupsInviteLinkGetreadGets the primary invite link for a group.
groupsInviteLinkRevokereadRevokes the primary invite link for a group.
groupsJoinreadJoins a group using an invite link or code.
groupsLeavereadLeaves a group chat or channel.
groupsListreadLists group chats and supergroups.
groupsMembersAddreadAdds members to a group.
groupsMembersRemovereadRemoves members from a group.
groupsRenamereadRenames a group chat or supergroup.
listActiveChannelsreadLists dialogs tracked in the local archive registry.
listChannelTagsreadList tags attached to a channel.
listChannelsreadLists available Telegram dialogs for the authenticated account, including unread message counts.
listTaggedChannelsreadList channels that carry a specific tag.
markChannelReadreadMarks a Telegram channel as read up to the specified message ID.
mediaDownloadreadDownloads media from a message to a local file.
messagesContextreadReturns surrounding messages for a target message.
messagesGetreadFetches a specific message from the archive or live Telegram API.
messagesListreadLists messages from the archive or live Telegram API.
messagesSearchreadSearches messages across the archive or live Telegram API.
messagesSendreadSends a text message to a channel or chat.
messagesSendFilereadSends a file with an optional caption.
refreshChannelMetadatareadFetches and caches extended metadata for channels.
scheduleMessageSyncreadSchedules a background job to archive channel messages locally.
searchChannelsreadSearches dialogs by title or username.
setChannelTagsreadAssign tags to a channel for later cross-channel search.
topicsListreadLists forum topics for a supergroup.
topicsSearchreadSearches forum topics by title.

Install

Package version 2.2.3 · audited commit 3cc5b90

Read the findings first. The most severe is Network egress (medium) at core/control-client.js.

One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 2.2.3. The audit covers commit 3cc5b90 only.

claude mcp add tgcli -- npx -y @kfastov/[email protected]

The command pins the package version recorded in the source (2.2.3); the audit covers commit 3cc5b904b81a. Transport: streamable-http. No environment variables required.

Audit history

  1. !CAUTION B 89 / 100

    First audit · 3cc5b904b81a

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION BMODELSATLASCAUTION · B
[![ModelsAtlas: CAUTION B](https://modelsatlas.com/mcp/kfastov/tgcli/badge.svg)](https://modelsatlas.com/mcp/kfastov/tgcli/)

The badge always shows the latest audit; a maintainer cannot pin an old verdict.

Other ratings

Cited, never blended into our score

No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.

Questions about Tgcli MCP server

What is the Tgcli MCP server?
Telegram user console client and archiver
What tools does Tgcli expose?
38 in total: 37 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Tgcli safe to connect to an agent?
With care. The audit graded it B (89/100) and found 9 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does Tgcli need?
No credential environment variables were found in its source, so it appears to need none.
How does Tgcli run?
It speaks streamable-http, so it runs as a service you connect to over the network. It is published on npm as @kfastov/tgcli at 2.2.3.
How current is this page?
The grade is for one exact copy of the source (3cc5b904b81a), read on 2026-10-08. The repository is watched and re-audited when it changes.

Sources

  • kfastov/tgcli on GitHub — the source we read, its licence, stars and activityObserved · 8 Oct 2026
  • ModelsAtlas trust audit — CAUTION verdict for commit 3cc5b904b81aObserved · 8 Oct 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.