npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

linker-report-mcp

v0.1.0

Published

MCP server for searching institutional research reports (华泰、天风等) via RAGFlow

Readme

linker-report-mcp

MCP server,用于检索机构研报(华泰期货、天风证券等)。通过 RAGFlow 向量数据库进行语义检索,支持按品种、日期、板块、来源等维度过滤。

工具

search_research_report

语义检索机构研报片段。返回与问题最相关的研报文本,每条结果含:

  • content — 研报正文片段
  • source — 报告全名(可溯源到具体机构、品种、日期)
  • score — 相关度分数

参数:

| 参数 | 必填 | 说明 | |------|------|------| | question | 是 | 检索问题,用于语义匹配 | | commodity | 否 | 品种过滤:液化石油气、甲醇、原油、聚丙烯、乙二醇、铝、铜等 | | date | 否 | 精确日期 YYYY-MM-DD | | start_date | 否 | 起始日期(与 end_date 配合) | | end_date | 否 | 结束日期(与 start_date 配合) | | sector | 否 | 板块:能源化工、黑色金属、有色金属、农产品、贵金属 | | source | 否 | 来源机构:华泰期货、天风证券 | | top_k | 否 | 返回片段数,默认 8 |

建议:尽量传 commodity 参数,可显著提高召回精度(score 从 0.5+ 提升到 0.8+)。

配置

{
  "mcpServers": {
    "linker-report": {
      "command": "npx",
      "args": ["-y", "linker-report-mcp@latest"],
      "env": {
        "RAGFLOW_API_BASE": "http://192.168.20.118:30080",
        "RAGFLOW_API_KEY": "ragflow-TlV2VxzljJgN11H8are6cDdugnsWk3PXWkWqrrv-_wk",
        "REPORT_KB_ID": "bbcca515025111f1bd0d961ef7d70cd5"
      }
    }
  }
}

环境变量

| 变量 | 必填 | 说明 | |------|------|------| | RAGFLOW_API_BASE | 是 | RAGFlow 服务地址 | | RAGFLOW_API_KEY | 是 | RAGFlow API Key | | REPORT_KB_ID | 是 | 机构研报知识库 ID |

知识库元数据

研报文档的 meta_fields:

| 字段 | 示例 | 说明 | |------|------|------| | commodity | 液化石油气 | 品种 | | date | 2026-03-13 | 研报发布日期 | | frequency | 日度 | 日度/周度/月度/季度 | | sector | 能源化工 | 板块 | | source | 华泰期货 | 来源机构 |

元数据由 ragflow_meta_cleaner.py 定时清洗维护(每2小时),从文件名自动提取。

本地开发

cd packages/linker-report-mcp
npm install
npm run build

# 测试
RAGFLOW_API_BASE=http://192.168.20.118:30080 \
RAGFLOW_API_KEY=ragflow-TlV2VxzljJgN11H8are6cDdugnsWk3PXWkWqrrv-_wk \
REPORT_KB_ID=bbcca515025111f1bd0d961ef7d70cd5 \
node dist/index.js

发布

npm version patch
npm run build
npm publish --access public