mcp-techTrend
trends-mcp
韩语文档:README.ko.md
一个单一的 MCP 服务器,可从七个来源获取学术 + 代码 + 医疗器械监管趋势数据,并生成报纸风格的简报——内置了针对特定领域的调优功能。
来源 | 工具 | 说明 |
arXiv |
| 按类别轮询,防止小类别被大类别淹没 |
PubMed |
| 通过 |
HF Daily Papers |
| 按社区点赞数排序(替代已停用的 PwC API) |
GitHub |
| 热门页面抓取 + 带 |
Hugging Face |
| 模型 / 数据集 / 空间,热门或最新 |
openFDA 510(k) |
| 器械许可 |
openFDA Recalls |
| 带分类过滤的召回事件 |
(聚合器) |
| 多源并行调用 |
trends_briefing 是核心工具:调用“weekly news” / “周报”即可获取涵盖所有已启用来源的报纸格式简报,并由 LLM 自动翻译成用户的对话语言。
为什么会有这个项目
大多数学术 / 代码 / 监管 MCP 服务器都是单一来源的。本项目不仅支持多源,而且具备领域感知能力:无论是追踪医学影像 AI 的研究人员、关注 ML 论文的机器学习工程师,还是监控 CVE 和热门仓库的安全分析师,只需通过 python configure.py 配置一次,trends_briefing 就会成为他们专属的“周一早报”。
其核心优势:
报纸格式及翻译提示 — LLM 会自动将源文本(论文摘要、召回原因等)翻译成您的对话语言,同时完整保留标识符、URL 和度量值。
arXiv 按类别轮询 — 当
cs.HC(约 50 篇/周)与cs.LG(约 1500 篇/周)同时被追踪时,前者不会被后者淹没。TTL 缓存 + 并发请求合并 — 重复调用和并行简报不会对上游 API 造成压力。
无需 Token。所有七个来源均可匿名工作;Token 仅用于提高各来源的速率限制上限。
沙盒安全的 Python 启动器。通过在 Python 中设置环境变量后再交给服务器,绕过了
claude_desktop_config.json中env块(在某些 macOS 构建版本中会截断包含空格的值)的限制。
Related MCP server: mcp-ai-news-server
安装
git clone https://github.com/salwks/mcp-techTrend.git
cd mcp-techTrend
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt通过编辑 ~/Library/Application Support/Claude/claude_desktop_config.json 连接到 Claude Desktop:
{
"mcpServers": {
"trends": {
"command": "/path/to/trends-mcp/.venv/bin/python",
"args": ["/path/to/trends-mcp/run.py"]
}
}
}⚠️
args指向run.py(启动器),而非trends_mcp.py。 启动器会在服务器启动前设置特定领域的环境变量。
重启 Claude Desktop。trends 服务器应显示 11 个工具。
配置
单一事实来源:run.py。 有两种编辑方式:
A. 交互式 TUI — configure.py(推荐)
python configure.py═══ trends-mcp 설정 ═══
[1] Active sources (7/7 enabled)
[2] arXiv categories (4 entries · 13 papers/wk)
[3] PubMed query
[4] API tokens (0/4 set)
[5] Show current config
[6] Save and restart
[7] Quit without saving使用数字切换来源,通过 set 1 7 设置 arXiv 权重,使用 preset medical-imaging 应用预设,通过 [6] 保存。保存操作会备份至 run.py.bak,写入新的 SETTINGS 块(基于 AST,不会触及非配置代码),并运行 pkill -f trends_mcp,以便 Claude Desktop 在下次调用时以新配置重启服务器。
TUI 菜单标签为韩语;命令和预设为英语。 TUI 本身的国际化(i18n)在 v0.2 路线图中。
单次运行模式:
python configure.py --show # print current config
python configure.py --restart # pkill stale MCP processesB. 直接编辑 — run.py SETTINGS 块
TRENDS_ENABLED_SOURCES = "" # "" = all
TRENDS_ARXIV_CATEGORIES = "cs.LG:5,cs.CV:3,cs.CL:3,cs.AI:2"
TRENDS_DEFAULT_PUBMED_QUERY = "(deep learning OR AI) AND (medical OR clinical)"
# GITHUB_TOKEN = "ghp_..." # raises 60 → 5,000 req/h
# HF_TOKEN = "hf_..."
# NCBI_API_KEY = "..." # raises 3 → 10 req/s for PubMed
# OPENFDA_API_KEY = "..." # raises 240 → 120,000 req/day保存后重启 Claude Desktop(或运行 pkill -f trends_mcp)。
预设
# AI/ML researcher (default)
TRENDS_ARXIV_CATEGORIES = "cs.LG:5,cs.CV:3,cs.CL:3,cs.AI:2"
# Medical imaging / clinical AI
TRENDS_ARXIV_CATEGORIES = "eess.IV:5,cs.CV:3,cs.HC:2,q-bio.QM:2"
# Robotics
TRENDS_ARXIV_CATEGORIES = "cs.RO:5,cs.AI:3,cs.LG:2,cs.CV:2"
# HCI / UX
TRENDS_ARXIV_CATEGORIES = "cs.HC:5,cs.CY:3,cs.AI:2,cs.SI:2"
# Security
TRENDS_ARXIV_CATEGORIES = "cs.CR:5,cs.LG:2,cs.NI:2"
# Computational biology
TRENDS_ARXIV_CATEGORIES = "q-bio.QM:4,q-bio.GN:3,q-bio.BM:3,stat.AP:2"常见的 arXiv 类别(完整参考:ARXIV_CATEGORIES.md):
代码 | 领域 | 每周论文数(约) |
| 人工智能 | 500–800 |
| 机器学习 | 1,500–2,000 (最大) |
| 计算机视觉 | 1,000–1,500 |
| 自然语言处理 | 500–800 |
| 人机交互 / UX | 50–100 |
| 机器人学 | 100–200 |
| 安全 | ~200 |
| 图像/视频处理(医学影像) | 100–200 |
| 定量生物学 | 50–100 |
来源白名单
TRENDS_ENABLED_SOURCES = "arxiv,github,huggingface,paperswithcode"
# → fda_510k, fda_recalls, pubmed tools won't appear in the tool list at all留空 / "*" / "all" = 启用所有。禁用的来源不会注册其工具,因此聊天工具列表本身会缩减。trends_digest 和 trends_briefing 仍会注册,并优雅地跳过已禁用的来源。
工具
工具 | 用途 |
| 按提交日期获取某类别的最新论文 |
| 关键词 / 字段语法搜索 ( |
| PubMed 搜索(MeSH 术语、字段标签)— 通过 efetch 获取摘要 |
| HF Daily Papers,按社区点赞数排序 |
| 浏览 github.com/trending (HTML 抓取) |
| GitHub 搜索 API; |
| HF Hub 模型 / 数据集 / 空间 |
| 最近的 FDA 510(k) 许可 |
| 最近的 FDA 医疗器械召回(分类过滤) |
| 给定主题的多源要点摘要 |
| 多源报纸简报;主题可选 |
所有搜索工具均接受 days=N 进行最近 N 天的过滤。trends_briefing 将结果分为 🎓 研究 / 💻 代码与模型 / 🏥 监管部分。
trends_digest vs trends_briefing
|
| |
主题 | 必填 | 可选(“最新动态”模式) |
来源范围 | 可配置子集(默认 4 个) | 所有已启用来源 |
格式 | 要点摘要 | 分组报纸格式 |
用例 | 主题深度挖掘 | 定期周报 |
缓存
每个进程内的内存 TTL 缓存封装了每个 HTTP 响应。并发的相同请求通过每个键的 asyncio.Lock 进行合并 — N 个并行调用者仅触发一次上游请求。
TTL 组 | 时长 | 工具 |
热门 | 5 分钟 |
|
默认 | 10 分钟 |
|
静态 | 1 小时 |
|
最多 256 条目;存满时驱逐最旧的。无法禁用 — TTL 时间足够短,陈旧度在可控范围内。
已知限制
GitHub Trending 是 HTML 抓取 — 不存在官方 API。布局更改可能会导致其失效。稳定的热门替代方案:带
days=7和sort=stars的github_search。HF
trendingScore未公开文档。API 接口可能会发生变化。HF Daily Papers 每天涵盖约 50 篇精选论文,并非 arXiv 的全部。它是一个“讨论热点”源,而非详尽列表。
arXiv 没有原生的热门功能 — 我们通过按类别平衡的最新提交源进行近似。
openFDA
classification字段有时即使在最近分类的召回中也会返回None(上游数据滞后)。搜索索引也存在滞后。
路线图 (TODO)
v0.2: TUI 菜单和简报章节标题的国际化 (i18n)
通过 RSS 获取 bioRxiv / medRxiv
Semantic Scholar (引用图谱)
openFDA 不良事件 (MAUDE)
EU EUDAMED 抓取
PMDA (日本医疗器械)
MFDS (韩国医疗器械)
用于 CI 的 Mock 测试套件
许可证
Available Tools
16 toolsarxiv_recentARead-only
Fetch recent arXiv papers in a category, sorted by submission date (newest first). days filters by published date.
Common categories: cs.AI (general AI), cs.LG (machine learning), cs.CV (computer vision), cs.CL (NLP), cs.HC (HCI / UX), cs.RO (robotics), cs.NE (neural networks), stat.ML (statistical ML), eess.IV (image/video processing — medical imaging lives here), eess.SP (signal processing), q-bio.QM (quantitative biology).
Inputs: category (required), days, max_results, response_format. Returns: result
arxiv_searchARead-onlyIdempotent
Search arXiv. Plain keywords work (auto-prefixed all:); for advanced queries use arXiv field syntax: ti: (title), au: (author), abs: (abstract), cat: (category, e.g. cat:eess.IV). days cuts off results older than N days (published field). When days is set, results are sorted by submission date instead of relevance.
Inputs: query (required), days, max_results, sort_by, +1 more. Returns: result
fda_510k_recentARead-onlyIdempotent
Recent FDA 510(k) clearances via openFDA. Date filter is always applied. openFDA uses token-exact matching on string fields — for partial name matches use wildcards (e.g. device_name:mammo* not device_name:mammography).
Inputs: query, days, max_results, response_format. Returns: result
fda_recalls_recentARead-onlyIdempotent
Recent FDA medical device recalls via openFDA. Optionally filter by class (1=most serious, 3=least). Note: openFDA query syntax uses token-exact matching on string fields — for partial matches use wildcards (e.g. product_description:mammog*).
Inputs: query, days, class_level, max_results, +1 more. Returns: result
github_searchARead-onlyIdempotent
Search GitHub repositories by keyword via the official Search API. USE THIS WHEN: user has a specific topic ('medical imaging 리포', 'mammography GitHub'). days filters by repository created_at (treats it as 'repos created in the last N days') — pair with sort=stars for a stable trending-substitute. USE github_trending INSTEAD WHEN: no specific topic, just browsing.
Inputs: query (required), language, days, sort, +2 more. Returns: result
github_trendingARead-only
Browse github.com/trending — the public 'what's hot now' feed. USE THIS WHEN: user wants to browse trending repos with no specific topic in mind ('파이썬 트렌딩 보여줘', 'GitHub 핫한 거'). USE github_search INSTEAD WHEN: user has a specific topic/keyword. Note: this is HTML scraping (no official API), so layout changes can break it.
Inputs: language, since, max_results, response_format. Returns: result
huggingface_trendingARead-only
Browse Hugging Face Hub. kind selects models / datasets / spaces (default models). sort: trending / downloads / likes / recent. days filters by lastModified — CAUTION: this catches old entries with recent edits, not just newly published ones. For 'truly new' discovery prefer sort='recent' + days=N.
Inputs: kind, sort, query, tag, +3 more. Returns: result
paperswithcode_trendingARead-only
Daily curated AI papers feed (now backed by Hugging Face's daily_papers — Papers with Code API was sunset after the 2024 HF acquisition). Empty query returns the newest curated papers. Search is client-side filtering over the daily-papers stream.
Inputs: query, days, sort_by, max_results, +1 more. Returns: result
pubmed_searchARead-onlyIdempotent
Search PubMed for biomedical publications. Plain keywords work; for advanced queries use MeSH and field tags: mammography[MeSH], smith[Author], 2025[PDat]. Combine with AND/OR. days filters by publication date (PDat field).
Inputs: query (required), days, max_results, response_format. Returns: result
trends_briefingARead-only
Newspaper-style weekly briefing across all enabled sources. Topic is optional — without it, each source shows its 'what's new' feed. Use this when the user asks for '주간 뉴스' / '주간 트렌드' / 'weekly news' / 'briefing' style output.
PRESENTATION RULES — follow strictly:
PRESERVE STRUCTURE EXACTLY. The output is already organized into three groups (🎓 연구 동향 / 💻 코드 / 모델 / 🏥 규제 / 의료기기) and seven distinct source sections (arXiv, PubMed, Papers with Code, GitHub, Hugging Face, FDA 510(k), FDA Recalls). Do NOT merge sections (e.g. don't combine arXiv + PubMed into one 'papers' list). Do NOT reorder sections or items within a section. Do NOT change emoji or section headers.
TRANSLATE INLINE TEXT ONLY. Translate paper titles, abstracts, descriptions, and recall reasons into the user's current conversation language. Keep section headers, group titles, emoji, and metadata labels in their original form.
PRESERVE VERBATIM: proper nouns, author names, journal names, repository names (e.g. 'mattpocock/skills'), arXiv IDs, PMIDs, k_numbers, URLs, dates, and metric values (stars, downloads, etc.).
NO SUMMARIZATION at the briefing level. Render every item the tool returned. The user wants the full feed, not your synthesis.
ITEM-LEVEL DEPTH. For each paper, repo, model, or recall, preserve enough of the upstream abstract/description to convey what's new and why it matters — typically 2–4 sentences (around 150–300 chars of translated content per item). Do NOT collapse to a single headline-length sentence; the user wants to grasp each item without clicking through. Carry the problem → method → result/contribution structure when present in the source abstract.
Inputs: days, per_source_limit, topic, arxiv_categories, +1 more. Returns: result
trends_digestARead-only
One-shot multi-source digest for a topic. Calls sources in parallel; partial failures don't break the report.
PRESENTATION RULES — follow strictly:
PRESERVE SECTION STRUCTURE. The output has separate per-source sections (📌 arXiv, 📌 PubMed, 📌 GitHub, etc.). Do NOT merge them.
TRANSLATE INLINE TEXT into the user's conversation language; keep section headers and emoji as-is.
PRESERVE VERBATIM: proper nouns, IDs (PMID, k_number, arXiv IDs), URLs, repository names, metric values.
Render every item — no summarization at the digest level.
Inputs: topic (required), sources, per_source_limit, days. Returns: result
trends_get_configARead-onlyIdempotent
Show current trends-mcp configuration: enabled sources, arXiv categories, PubMed default query, and which optional rate-limit tokens are set. Token VALUES are never returned (only whether they are configured). Use this to confirm state before or after a trends_set_* call.
Inputs: no named parameters. Returns: object
trends_set_arxiv_categoriesAIdempotent
Set the default arXiv categories used by trends_briefing. Pass a list of entries; each entry is 'code' (e.g. 'cs.HC') or 'code:weight' (e.g. 'cs.HC:5'). Weight = papers per briefing per category (default 3). Example: ['cs.LG:5', 'cs.CV:3', 'cs.CL:2']. See ARXIV_CATEGORIES.md for the full list of valid codes.
Inputs: categories (required). Returns: result
trends_set_enabled_sourcesAIdempotent
Set which sources are enabled. Pass a list like ['arxiv', 'github']. Valid: arxiv, github, huggingface, paperswithcode, pubmed, fda_510k, fda_recalls. Pass ['*'] or ['all'] to enable all. Disabled sources' tools won't appear in the tool list at all (requires restart to take effect).
Inputs: sources (required). Returns: result
trends_set_pubmed_queryAIdempotent
Set the default PubMed query used by trends_briefing when no topic is provided. Use PubMed syntax: MeSH terms, [Title/Abstract] tags, AND/OR/NOT. [Title/Abstract] tags keep matches precise. Example: '(deep learning) AND (radiology[Title/Abstract])'.
Inputs: query (required). Returns: result
trends_set_tokenAIdempotent
Set or clear an optional rate-limit booster token. trends-mcp ONLY needs read access — when creating these tokens use the MINIMAL scope:
github: NO scope at all (just authentication for rate limit). Do NOT use a token with 'repo' scope here.
hf: read access only.
ncbi / openfda: API keys (no scope concept). Pass empty string for value to remove a token. Provider must be one of: github, hf, ncbi, openfda.
Inputs: provider (required), value (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each tool targets a distinct source or operation (e.g., arXiv search vs. recent, FDA 510k vs. recalls, GitHub search vs. trending). Even config tools are clearly separated. No ambiguity between tools.
All tools follow a consistent pattern: source_action (e.g., arxiv_recent, github_search) for data tools, and trends_verb for configuration tools. Lowercase with underscores throughout.
16 tools is well-scoped for a multi-source trend aggregation server. Each tool covers a specific need across multiple sources and configuration, without bloat.
The tool set covers all necessary operations for the domain: retrieval (recent, search, trending) per source, aggregation (briefing, digest), and full configuration (sources, categories, tokens). No obvious gaps.
Maintenance
Related MCP Connectors
Managed cloud RSS and Atom feed reader with a remote Model Context Protocol (MCP) endpoint. Zero server setup required — enables AI agents like Claude to instantly subscribe to feeds, search full-text articles, extract readable content, and access curated AI editions ("Your Newspaper") over secure streamable HTTP.
One MCP server for all web data. Scrape, search, crawl, and AI research in one install.
RSS & Atom feed manager with full-text search, AI curation, and remote MCP endpoint.
Unified 15-tool SEO, SERP, clean Markdown & GEO (LLM citation Share-of-Voice) MCP server.
Related MCP Servers
- AlicenseAqualityDmaintenanceA personalized news briefing MCP server that filters information from RSS, Reddit, and Hacker News based on user-defined interests and preferences. It also includes stock monitoring and alerting features.29Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server that fetches and filters AI-related news from 20+ RSS feeds with scheduled notifications and email digests.1MIT
- FlicenseNot gradedqualityDmaintenanceLocal MCP server that ingests and normalizes recent AI, tech, and research news from multiple sources, exposing tools for media agents to query and retrieve article content on demand.-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that fetches, dedupes, and scores women's-health & FemTech research and industry news, designed to feed GitHub Agentic Workflows and an auto-updating Astro + RSS site.MIT