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

ziweiai-mcp-server

v0.1.0

Published

MCP server for ZiweiAI reports (list reports, get content, payment links). Use in Cursor, Claude Desktop, etc.

Readme

紫微 AI MCP Server

For English see README.md.

紫微 AI 的 MCP(Model Context Protocol)服务端,用于在 Cursor、Claude Desktop 等 MCP 客户端中列出已购报告、获取润色后的报告内容及支付链接。

仓库地址: https://github.com/Timmy9527/agentziwei

前置条件

  1. MCP API Key:登录 ziweiai.com.cn,进入 我的报告,在页面上方找到 MCP 集成,点击 生成 MCP API Key。复制 Key(仅显示一次)。
  2. 报告:请先在网站购买报告;MCP 仅可查询已购报告并获取其内容。

安装与构建

cd mcp-server
npm install
npm run build

环境变量

| 变量 | 必填 | 说明 | |------|------|------| | ZIWEIAI_MCP_API_KEY | 是 | 在网站获取的 MCP API Key。 | | ZIWEIAI_API_BASE | 否 | 接口基础 URL(默认:https://ziweiai.com.cn)。 |

运行

export ZIWEIAI_MCP_API_KEY="你的 Key"
node dist/index.js

或使用 tsx 直接运行源码(无需先 build):

ZIWEIAI_MCP_API_KEY="你的 Key" npx tsx src/index.ts

Cursor 配置

在 Cursor 的 MCP 配置中(如 ~/.cursor/mcp.json 或项目 MCP 配置)添加:

{
  "mcpServers": {
    "ziweiai": {
      "command": "node",
      "args": ["/本机路径/agentziwei/mcp-server/dist/index.js"],
      "env": {
        "ZIWEIAI_MCP_API_KEY": "你的 MCP API Key"
      }
    }
  }
}

/本机路径/agentziwei 替换为实际克隆的仓库路径,将 你的 MCP API Key 替换为上述获取的 Key。

工具说明

  • list_my_reports:列出当前账号下已购买的报告。
  • list_report_types:列出报告类型代码(ming, ln, lc, ll, lr, cp, dh)及含义。
  • get_report_content:获取指定报告的润色后内容(需传入与生成报告一致的参数及 language)。
  • get_payment_link:获取某报告类型的购买页面链接(查询参数:paper)。

列表报告接口(GET/POST /api/mcp/reports)

  • 鉴权:请求头 X-MCP-API-Key 为您的 MCP API Key。
  • 查询参数(可选):format=human(返回可读字段)、lang=zhlang=en(format=human 时默认 en)。不传 format 则返回原始数组。
  • format=human 时:每项包含 reportTypequeryInforeportPath,与网站「我的报告」页展示一致。原始数据中的 binddate 为拼接字符串;异常或空值会安全处理,不会抛错。

支付说明

支付均在网站完成。MCP 仅可列出已购报告、获取其润色内容,以及获取未购报告类型的支付链接。