tg-manager
Local developer tool for structuring Telegram Saved Messages. Indexes accumulated notes and links, organizes with tags, identifies duplicate forwards, exports clean Markdown into Obsidian and Wiki vaults, and stages safe cleanup with mandatory local backups. Includes an embedded Model Context Protocol (MCP) server over stdio for compatible AI clients.
tg-manager operates as a local CLI tool and local stdio MCP server, not a public Telegram bot. It does not dispatch personal messages to third-party endpoints; integration with AI assistants (Claude, Cursor, Antigravity) runs strictly through local process pipes. Note: secrets scanning is heuristic and serves as an advisory check.
Problem & Purpose
Telegram Saved Messages easily becomes a cluttered archive of disparate notes. tg-manager converts it into an indexed knowledge base with tag search, Obsidian export, and AI assistant connectivity via local MCP.
Target Audience
Developers, researchers, and power users who store research links, code snippets, and ideas in Telegram Saved Messages.
capabilities
Key Features & Capabilities
Rich CLI experience built with Typer and Rich formatting
Fast local indexing and full-text search across Saved Messages
Tagging taxonomy and thematic note categorization
Duplicate forward and repeated link detection
Export pipeline to Markdown vaults compatible with Obsidian and Wiki engines
Safe deletion staging with automated pre-delete backups
Heuristic analysis for accidentally saved credentials and API tokens
Built-in MCP server over stdio for read-safe AI client integration
interface
Screenshots & Demonstrations
Demonstration material based on synthetic test data without real personal info.
architecture
Verified Tech Stack
CLI & Core
Telegram & AI Protocol
Testing & Automation
Role & Contribution
Solo project: created CLI architecture, Telethon client interactions, MCP stdio server handlers, and unit tests.