Skip to main content
Glama

smppw-mcp

私募排排网(simuwang.com)MCP Server。提供 9 个结构化工具,将基金/公司查询、排行榜分页、净值与产品要素、风险收益指标、月/季/年度收益序列、规模变动等查询能力接入 LLM/Agent。

兼容 Antigravity、Claude Code、Cursor、Copilot 等支持 MCP 的 Agent。当前仅在私募排排网个人版账号中验证通过。

在开始之前

请先注册 私募排排网 账号,并完成合格投资者认证。

合格投资者应具备相应的风险识别能力和风险承受能力,具有 2 年以上投资经历,并满足以下任一条件:

  1. 近 3 年个人年均收入不低于 50 万元;

  2. 个人金融资产不低于 300 万元,或家庭金融净资产不低于 300 万元,或家庭金融资产不低于 500 万元。

Related MCP server: AgentLadle MCP AKShare

工具

工具

说明

set_token

保存登录态(浏览器 cookie 中 http_tK_cache 的值),写入 ~/.ppw-mcp.json

check_auth

验证登录态是否有效

search_funds

按名称搜索基金(fund_id、公司、经理、收益、回撤摘要)

search_companies

按名称搜索私募公司

get_ranking(page)

排行榜(可翻页,约 3460 只),每条含期末净值 nav + 各期收益

get_fund

基金详情:当前净值(含日期、今年以来/成立以来收益) + 策略/托管/备案等要素 + 公司与经理

get_fund_performance

指标(收益/年化/Alpha/回撤/夏普/贝塔)+ 各区间收益与基准对照 + 周胜率

get_fund_returns

收益序列:月度 / 季度 / 年度(含基准对照,年度含同类排名)

get_fund_asset_size

基金规模变动序列

典型用法:search_funds 找到 fund_id → get_fund 看净值与要素 → 需要时拉收益序列或指标。

快速开始

要求 Python ≥ 3.10。

git clone https://github.com/SuperLangdon/smppw-mcp.git
cd smppw-mcp
pip install -e .

获取登录态(一次性)

查询净值与业绩需要排排网合格投资者认证账号:

  1. 浏览器登录 simuwang.com(需已完成合格投资者认证)

  2. F12 → 应用 → Cookie → 复制 http_tK_cache 的值

  3. 两种方式提供给 server:

    • 对 MCP 客户端说 set_token <粘贴值>(保存到 ~/.ppw-mcp.json)

    • 或设置环境变量 PPW_TOKEN

登录态过期后重新登录、更新一次即可。

MCP 客户端配置

{
  "mcpServers": {
    "ppw": {
      "command": "python",
      "args": ["-m", "ppw_mcp.server"],
      "env": { "PYTHONIOENCODING": "utf-8" }
    }
  }
}

pip install -e . 会同时生成命令行入口,也可以直接写 "command": "smppw-mcp"。

技术说明

数据来源两条通道:

  1. SSR 页面(dc.simuwang.com):Nuxt 3 服务端渲染,数据在 __NUXT_DATA__ 扁平 payload 中明文内嵌,由 ppw_mcp/nuxt.py 还原。

  2. sppwapi(sppwapi.simuwang.com/sun/*):JSON API,响应为动态 AES 加密。ppw_mcp/crypto.py 复刻了站点前端的解密链:响应携带混淆 JS 形式的动态 key → 按 encode 编号变形 → MD5(key) 作 AES-256-CBC key、其后 16 位作 IV → 双重 base64 密文解密。

登录态由单个 cookie http_tK_cache 承载;部分接口需要 USER_ID, 由 getUserInfoApi 自动获取并缓存。

已知限制

  • 当前净值的覆盖范围:get_fund 的净值来自排行榜接口(fundRankV3 keyword 反查),覆盖榜单内约 3460 只基金;未上榜基金(无有效业绩区间)详情页净值被站方图片化,返回 null。

  • 日度净值曲线(fundNavTrend)请求参数为 sdata 加密(算法已逆向:AES key = MD5(cookie 8hIn9IA),双层 base64),但服务端对该请求做了会话/指纹级绑定,浏览器外重放会被拒绝("参数错误 1")。已用 performanceRangeV2 提供月度/季度/年度收益序列;配合初始净值 1.0 可合成累计净值走势。

  • 登录态 http_tK_cache 会被服务端轮换,保存的旧值通常继续有效;若 check_auth 报失效,重新登录后更新一次 token。

  • 站方若调整加密方案或页面结构,crypto.py / nuxt.py 需同步更新。

免责声明

  • 本项目仅供个人学习研究与查询账号权限内的数据,请勿用于批量抓取、商业用途或向他人提供数据服务。

  • 私募基金业绩与其他非公开信息仅向合格投资者展示为监管要求(见 《私募投资基金监督管理暂行办法》),使用时请务必确保合规性。

  • 数据归私募排排网所有,本项目不对数据的准确性、完整性作任何保证;过往业绩不预示未来表现,不构成投资建议。

  • 本项目的逆向分析仅用于实现个人账号数据的程序化读取,不试图绕过任何付费机制、登录权限或访问控制。本项目为非官方、非授权项目,具有一定逆向工程与自动化访问性质,可能违反私募排排网的 服务条款(ToS)。本项目与私募排排网无任何关联,亦未获其授权或认可。使用者应自行评估合规风险,并自行承担使用本项目所产生的一切后果,包括但不限于账号限制、服务中断、数据丢失及法律责任。

License

MIT

Available Tools

9 tools
check_authB

验证排排网登录态是否有效(合格投资者数据是否解锁)。

Inputs: no named parameters.

get_fundA

查询基金详情(fund_id 形如 HF0000DEHO,可先用 search_funds 检索)。

返回当前净值 nav(含净值日期、今年以来/成立以来收益)、基本信息 (策略、成立日、开放日、托管人、备案号、投资范围)、管理公司与经理。 nav 为 None 表示该基金未进排行榜(站方对详情页净值做了图片化)。

Inputs: fund_id (required).

get_fund_asset_sizeC

查询基金规模变动序列(各期规模与环比变化)。

Inputs: fund_id (required).

get_fund_performanceC

查询基金当前指标与区间业绩汇总(净值日期、收益/回撤/夏普等指标, 以及成立来/今年/近一月~近五年各区间收益与基准对照、同类排名)。

Inputs: fund_id (required).

get_fund_returnsB

查询基金收益序列(数据来自 sppwapi performanceRangeV2,明文可解)。

granularity: monthly=月度收益序列 | quarterly=季度 | yearly=年度 (含基准对照;年度还含同类排名与四分位)。 配合初始净值 1.0 可合成累计净值走势。

Inputs: fund_id (required), granularity.

get_rankingB

获取私募排行榜(默认近半年收益排序,每页 50 条,共约 3460 只 可翻页)。每条含 fund_id、期末净值 nav、成立来/今年/近半年~近五年 各期收益,可直接用作基金当前单位净值来源。

Inputs: page.

search_companiesC

按名称搜索私募公司,返回 company_id 与基本信息。

Inputs: query (required), page_size.

search_fundsA

按名称搜索私募基金,返回 fund_id、公司、经理、成立日、 今年/成立以来收益、最大回撤等摘要。后续用 get_fund 查详情。

Inputs: query (required), page_size.

set_tokenA

保存排排网登录态(浏览器 cookie 中 http_tK_cache 的值)。

获取方法:浏览器登录 simuwang.com 后,F12 -> 应用 -> Cookie -> 找到 http_tK_cache,复制其值传入。保存到 ~/.ppw-mcp.json, 过期后重新登录再更新一次即可。

Inputs: token (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 9 tools

    Disambiguation4/5

    Most tools target distinct actions (search, ranking, detail, series). However get_fund, get_fund_performance, and get_fund_returns all return overlapping return/nav data, and get_ranking also surfaces nav, so an agent could pick the wrong one for a given data need.

    Naming Consistency5/5

    Consistent snake_case verb_noun pattern throughout: set_token, check_auth, search_funds, get_fund, get_fund_performance, get_fund_returns, get_fund_asset_size. The get_fund_* family is predictable and readable.

    Tool Count5/5

    9 tools is well-scoped for a fund-data API: auth pair plus search and detail/series endpoints. Each tool earns its place with no redundancy padding.

    Completeness4/5

    Fund lifecycle is well covered (search → detail → performance → returns → asset size). Minor gap: search_companies returns a company_id but there is no get_company detail tool, creating a dead end for company lookups.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides 11 MCP tools for querying A-share market data, financial reports, stock screening, hot topics, self-selected stocks, and LOF arbitrage using natural language, powered by East Money / Miaoxiang APIs.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Provides 46 financial data tools for AI assistants covering A-share, HK, US markets, macroeconomics, funds, and derivatives, powered by AKShare.
      54
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to discover, download, parse, and search China A-share announcements from CNINFO (巨潮资讯网) through six structured tools.
      6
      3
      MIT
    • A
      license
      C
      quality
      B
      maintenance
      Enables AI agents to access Chinese financial market data and investment research through 177 tools, covering stocks, industries, macroeconomics, economic cycles, commodities, crypto, funds, and asset allocation.
      181
      MIT