MCP server · Audited from source
Tgcli MCP server
by kfastov/tgcliMIT licenceAudited 8 Oct 2026 · source 3cc5b904b81a
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
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
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
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS |
L1 Static source | Secrets, path traversal, supply chain | WARN 7 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 1 finding |
L3 Inventory | Declared tools match the source | WARN 1 finding |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
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/tgcliat 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
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
url = new URL(req.url ?? '', 'http://127.0.0.1');
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMAuth / authzmcp.remote_no_auth
streamable-http
- Why
- a network transport with no auth environment variable found
- Fix
- require a token
LOWFilesystem / pathfs.traversal · tests/folders.test.js:550
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
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
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
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
@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
- 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
| Tool | Risk | What it does |
|---|---|---|
listMessageSyncJobs | write | Lists tracked message sync jobs and their current status. |
autoTagChannels | read | Auto-tags channels based on title, username, and cached metadata. |
contactsAliasRemove | read | Removes alias for a contact. |
contactsAliasSet | read | Sets an alias for a contact. |
contactsGet | read | Returns a contact profile from the local store. |
contactsNotesSet | read | Sets notes for a contact. |
contactsSearch | read | Searches contacts/users with aliases, tags, and notes. |
contactsTagsAdd | read | Adds tags to a contact. |
contactsTagsRemove | read | Removes tags from a contact. |
getChannelMetadata | read | Returns cached metadata for a channel. |
getSyncedMessageStats | read | Returns summary statistics for stored messages in a channel. |
groupsInfo | read | Fetches group information and metadata. |
groupsInviteLinkGet | read | Gets the primary invite link for a group. |
groupsInviteLinkRevoke | read | Revokes the primary invite link for a group. |
groupsJoin | read | Joins a group using an invite link or code. |
groupsLeave | read | Leaves a group chat or channel. |
groupsList | read | Lists group chats and supergroups. |
groupsMembersAdd | read | Adds members to a group. |
groupsMembersRemove | read | Removes members from a group. |
groupsRename | read | Renames a group chat or supergroup. |
listActiveChannels | read | Lists dialogs tracked in the local archive registry. |
listChannelTags | read | List tags attached to a channel. |
listChannels | read | Lists available Telegram dialogs for the authenticated account, including unread message counts. |
listTaggedChannels | read | List channels that carry a specific tag. |
markChannelRead | read | Marks a Telegram channel as read up to the specified message ID. |
mediaDownload | read | Downloads media from a message to a local file. |
messagesContext | read | Returns surrounding messages for a target message. |
messagesGet | read | Fetches a specific message from the archive or live Telegram API. |
messagesList | read | Lists messages from the archive or live Telegram API. |
messagesSearch | read | Searches messages across the archive or live Telegram API. |
messagesSend | read | Sends a text message to a channel or chat. |
messagesSendFile | read | Sends a file with an optional caption. |
refreshChannelMetadata | read | Fetches and caches extended metadata for channels. |
scheduleMessageSync | read | Schedules a background job to archive channel messages locally. |
searchChannels | read | Searches dialogs by title or username. |
setChannelTags | read | Assign tags to a channel for later cross-channel search. |
topicsList | read | Lists forum topics for a supergroup. |
topicsSearch | read | Searches 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]
{
"mcpServers": {
"tgcli": {
"command": "npx",
"args": [
"-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
- !CAUTION B 89 / 100
First audit ·
3cc5b904b81a
README badge
For maintainers · updates on every re-audit
[](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?
What tools does Tgcli expose?
Is Tgcli safe to connect to an agent?
What credentials does Tgcli need?
How does Tgcli run?
How current is this page?
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.
- What is the Tgcli MCP server?
- What tools does Tgcli expose?
- Is Tgcli safe to connect to an agent?