0xDanielLopez/tweetfeed-mcp

GitHub: 0xDanielLopez/tweetfeed-mcp

一个部署在 Cloudflare Worker 上的 MCP 服务器,为 AI agent 提供对公开 IOC 威胁情报数据的编程化查询能力。

Stars: 0 | Forks: 0

# tweetfeed-mcp **[tweetfeed.live](https://tweetfeed.live) 的 Model Context Protocol (MCP) 服务器。** 将公开的 IOC feed(由 infosec 社区在 Twitter/X 上共享的 URL、domain、IP、SHA256/MD5 哈希值) 作为 MCP 工具公开,以便 AI agent 能够以编程方式查询威胁情报。 - **Endpoint**:`https://mcp.tweetfeed.live/`(HTTP JSON-RPC 2.0,POST) - **Protocol version**:2025-11-25(已协商;旧客户端会自动回退) - **Auth**:无(所有 IOC 数据均为 CC0) - **License(数据)**:CC0-1.0 · **License(代码)**:MIT ## 工具 | 名称 | 用途 | |---|---| | `query_iocs` | 按时间窗口(today/week/month)查询 IOC,带有可选的 user、tag 和 type 过滤器。 | | `check_url` | 检查 feed 中是否出现特定的 URL。 | | `check_ip` | 检查 feed 中是否出现 IPv4/IPv6 地址。 | | `check_hash` | 检查 feed 中是否出现 MD5 或 SHA-256 哈希值(自动检测 type)。 | | `list_recent_iocs` | 列出自指定日期以来添加的 IOC,带有可选的 type/tag 过滤器。 | | `get_tag_info` | tag 的窗口聚合数据以及最近的 IOC(开头的 `#` 可选)。 | | `get_trending` | 特定窗口(today/week/month/year)的热门 tag 和 IOC 类型分布。 | | `enrich_ioc` | 对特定 IOC(自动检测 type:url/domain/ip/md5/sha256)在过去 365 天内进行精确查找,并在可用时提供 AI/外部验证/网络上下文;如果未找到,则回退到 30 天的子字符串扫描。 | | `get_campaigns` | 过去 7 天内由 AI 聚类的活动分组,带有可选的 brand 和最低置信度过滤器。 | | `get_trends` | 31 天的 IOC 趋势分析:按类型划分的每日数量、逐周环比的热门变动 tag、最常被滥用的 TLD、新增与复现比率、生产者集中度。 | ## 与 Claude Desktop / Claude.ai / 其他 MCP client 配合使用 ``` { "mcpServers": { "tweetfeed": { "url": "https://mcp.tweetfeed.live/" } } } ``` 或者通过 Claude Code CLI: ``` claude mcp add tweetfeed https://mcp.tweetfeed.live/ ``` ## 快速测试 ``` curl -sX POST https://mcp.tweetfeed.live/ \ -H 'content-type: application/json' \ -d '{"jsonrpc":"2.0","method":"tools/list","id":1}' | jq . # Example tool call: curl -sX POST https://mcp.tweetfeed.live/ \ -H 'content-type: application/json' \ -d '{"jsonrpc":"2.0","method":"tools/call","id":2, "params":{"name":"query_iocs", "arguments":{"time":"today","tag":"phishing","type":"url","limit":5}}}' | jq . ``` ## 开发 ``` npm install npm run dev # wrangler dev on http://localhost:8787 MCP_URL=http://localhost:8787 npm test ``` ## 部署 ``` npm run deploy # wrangler deploy (routes mcp.tweetfeed.live/*) MCP_URL=https://mcp.tweetfeed.live npm test ```
标签:MCP服务, Serverless, 威胁情报, 安全数据分析, 开发者工具, 数据可视化, 暗色界面, 程序员工具, 自动化攻击, 高对比度