khadinakbaronline/telegram-channel-scraper-mcp

GitHub: khadinakbaronline/telegram-channel-scraper-mcp

基于MCP协议的Telegram公开频道抓取服务器,无需账号即可在AI助手中直接提取频道消息、邮箱线索和关联频道信息。

Stars: 1 | Forks: 0

# Telegram 频道抓取 MCP 服务器 一个 MCP(模型上下文协议)服务器,可让 Claude、Cursor 以及任何兼容 MCP 的 AI 抓取公开的 Telegram 频道——**无需 Telegram 账号,无需电话号码,无需 API 密钥**。 由 [khadinakbar/telegram-channel-scraper](https://apify.com/khadinakbar/telegram-channel-scraper) Apify actor 驱动。 [![Apify Actor](https://img.shields.io/badge/Apify-Actor-brightgreen)](https://apify.com/khadinakbar/telegram-channel-scraper) [![npm](https://img.shields.io/npm/v/telegram-channel-scraper-mcp-server)](https://www.npmjs.com/package/telegram-channel-scraper-mcp-server) ## 工具 | 工具 | 描述 | |------|-------------| | `telegram_scrape_messages` | 从一个或多个公开频道抓取消息 | | `telegram_get_channel_info` | 获取订阅者数量、标题、认证状态 | | `telegram_discover_related_channels` | 通过转发消息分析发现相关频道 | | `telegram_extract_leads` | 提取电子邮件地址和链接以进行潜在客户开发 | ## 前置条件 1. 免费的 [Apify 账号](https://apify.com)(免费套餐无需信用卡) 2. 从 [console.apify.com/account/integrations](https://console.apify.com/account/integrations) 获取你的 Apify API token ## 安装说明 ### 选项 1:托管 MCP —— 零配置(推荐) 使用 Apify 托管的 MCP endpoint —— 无需安装,无需 npm,只需将此 URL 添加到你的 MCP 客户端: ``` https://mcp.apify.com/?tools=actors,docs,get-actor-run,get-actor-run-list,khadinakbar/telegram-channel-scraper ``` **Claude Desktop** (`~/Library/Application Support/Claude/claude_desktop_config.json`): ``` { "mcpServers": { "telegram-scraper": { "type": "http", "url": "https://mcp.apify.com/?tools=actors,docs,get-actor-run,get-actor-run-list,khadinakbar/telegram-channel-scraper", "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" } } } } ``` ### 选项 2:npm / npx(本地安装) 添加到你的 `claude_desktop_config.json`: ``` { "mcpServers": { "telegram-scraper": { "command": "npx", "args": ["-y", "telegram-channel-scraper-mcp-server"], "env": { "APIFY_TOKEN": "your_apify_token_here" } } } } ``` 配置文件位置: - **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json` - **Windows**: `%APPDATA%\Claude\claude_desktop_config.json` ### Cursor / VS Code / 其他 MCP 客户端 ``` { "mcpServers": { "telegram-scraper": { "command": "npx", "args": ["-y", "telegram-channel-scraper-mcp-server"], "env": { "APIFY_TOKEN": "your_apify_token_here" } } } } ``` ### 手动安装 ``` npm install -g telegram-channel-scraper-mcp-server APIFY_TOKEN=your_token telegram-channel-scraper-mcp ``` ## 使用示例 连接后,自然地向 Claude 提问: ``` "Scrape the last 100 messages from @telegram" "How many subscribers does @durov have?" "Find email addresses in @somebusinesschannel" "What channels are related to @cryptonews?" "Extract leads from @marketingchannel and @salesdeals" ``` ## 工具参考 ### telegram_scrape_messages 从公开的 Telegram 频道抓取消息。 | 参数 | 类型 | 默认值 | 描述 | |-----------|------|---------|-------------| | `channels` | string[] | 必填 | 不带 @ 的频道用户名(例如 `["telegram"]`) | | `max_messages` | number | 50 | 每个频道的最大消息数(1–1000) | | `include_media` | boolean | false | 包含媒体 URL | | `include_reactions` | boolean | false | 包含表情回应计数 | | `extract_emails` | boolean | true | 从文本中提取电子邮件地址 | | `extract_links` | boolean | true | 从文本中提取 URL | | `since_last_run` | boolean | false | 增量模式 —— 仅获取新消息 | | `response_format` | string | "markdown" | `"markdown"` 或 `"json"` | ### telegram_get_channel_info 获取频道的元数据。 | 参数 | 类型 | 默认值 | 描述 | |-----------|------|---------|-------------| | `channel` | string | 必填 | 不带 @ 的频道用户名 | | `response_format` | string | "markdown" | `"markdown"` 或 `"json"` | ### telegram_discover_related_channels 通过转发消息分析,发现与你设置的种子频道相关的频道。 | 参数 | 类型 | 默认值 | 描述 | |-----------|------|---------|-------------| | `channels` | string[] | 必填 | 种子频道(最多 5 个) | | `max_messages` | number | 100 | 每个种子频道要扫描的消息数 | | `response_format` | string | "markdown" | `"markdown"` 或 `"json"` | ### telegram_extract_leads 提取电子邮件和链接以进行潜在客户开发。 | 参数 | 类型 | 默认值 | 描述 | |-----------|------|---------|-------------| | `channels` | string[] | 必填 | 要扫描的频道(最多 10 个) | | `max_messages` | number | 200 | 每个频道要扫描的消息数 | | `response_format` | string | "markdown" | `"markdown"` 或 `"json"` | ## 定价 通过底层的 actor 使用 Apify 的按事件计费模式: - **Actor 启动**:每次运行 $0.003 - **每条消息**:$0.002 - **每个频道信息**:$0.001 抓取 100 条消息大约需要 **$0.20**。Apify 的免费套餐包含每月 $5 的额度。 ## 隐私与法律 本 MCP 服务器仅通过公开的网页预览(`t.me/s/channel`)访问**公开的** Telegram 频道。它不会访问私密频道、私信,也不需要任何 Telegram 凭证。 ## Khadin 的更多抓取工具 | 工具 | 描述 | |------|-------------| | [YouTube 频道电子邮件抓取工具](https://apify.com/khadinakbar/youtube-channel-email-extractor) | 从 YouTube 频道提取联系电子邮件 | | [Google Maps 潜在客户抓取工具](https://apify.com/khadinakbar/google-maps-leads-scraper) | 从 Maps 抓取 B2B 潜在客户和联系信息 | | [B2B 潜在客户发现工具](https://apify.com/khadinakbar/b2b-lead-finder-enrichment) | 按行业/地点查找并丰富 B2B 潜在客户信息 | | [Meta 广告库抓取工具](https://apify.com/khadinakbar/meta-ad-library-scraper) | 监控竞争对手的 Facebook/Instagram 广告 | | [Reddit 抓取工具](https://apify.com/khadinakbar/reddit-posts-comments-scraper) | 从 subreddit 抓取帖子和评论 | | [AI 品牌监控工具](https://apify.com/khadinakbar/ai-search-brand-monitor) | 跟踪你的品牌在各种 AI 搜索引擎中的提及情况 | | [Instagram 标签抓取工具](https://apify.com/khadinakbar/instagram-hashtag-scraper) | 按标签抓取帖子 | | [LinkedIn 档案电子邮件抓取工具](https://apify.com/khadinakbar/linkedin-profile-email-scraper) | 从 LinkedIn 档案中提取电子邮件 | | [Google News 抓取工具](https://apify.com/khadinakbar/google-news-scraper) | 抓取任意查询的 Google News 结果 | | [Twitter/X 档案抓取工具](https://apify.com/khadinakbar/twitter-profile-followers-scraper) | 抓取 Twitter 档案和粉丝列表 | [查看所有 actor →](https://apify.com/khadinakbar) ## 许可证 MIT — 详见 [LICENSE](LICENSE) ## 链接 - [Apify Actor](https://apify.com/khadinakbar/telegram-channel-scraper) - [托管 MCP URL](https://mcp.apify.com/?tools=actors,docs,get-actor-run,get-actor-run-list,khadinakbar/telegram-channel-scraper) - [npm 包](https://www.npmjs.com/package/telegram-channel-scraper-mcp-server) - [报告问题](https://github.com/khadinakbaronline/telegram-channel-scraper-mcp/issues) - [Apify 平台](https://apify.com)
标签:AI集成, Apify, BSD, Claude, Cursor, CVE检测, ESC4, GNU通用公共许可证, MCP, MITM代理, Model Context Protocol, Node.js, npm, OSINT, Telegram, URL抓取, 公开频道, 实时处理, 提取潜在客户, 数据抓取, 数据挖掘, 无需登录, 暗色界面, 潜在客户开发, 社交媒体监控, 线索生成, 自定义脚本, 获取邮箱