Skip to main content
Fund Data API

Developer access

Five ways in, side by side: one API key, the same 19 endpoints, the same fields. Pick the one that fits your environment — or use several, for example an SDK on your server and MCP in your AI Agent.

Search / profile / screener options need no key.

Your environmentWay inOne-liner
Any language, data onlyHTTP APIcurl … /v1/fund-profile
PythonPython SDKpip install fundapi
Node.js / TypeScriptNode SDKnpm install @fundapi/sdk
Claude Code / Codex / CursorMCPhttps://api.fundapi.cn/mcp
DeepSeek HarnessDSH pluginfundapi-dsh-plugin

Pick by situation

Common cases and what we suggest. It's a starting point, not a restriction — you can mix them in one project.

Your situationSuggestionWhy
Any language — just want to see the data firstHTTP APIThe three free endpoints need no key — one curl is enough
A script or server in PythonPython SDK19 methods; retries, error mapping and code normalization included
Same, but in Node.js / TypeScriptNode SDKThe same methods with full types; import and require both work
Coding with Claude Code / Cursor / CodexMCP (remote URL)Configure once and the AI queries the data directly
Cannot reach the remote URL, or you want your own entry pointDocker imageMCP mode is launched by the client locally; gateway mode runs on any Docker-capable machine and can serve several programs
DeepSeek Harness desktop or Web UIDSH pluginInstall by package name; same 19 tools

A common pairing: the Python SDK on your server for data, and MCP in your editor — both use the same key and don't conflict.

HTTP API

Call it from any language. Free endpoints need no key; paid endpoints takekey as a query parameter. Responses are structured JSON — field meanings are in the API reference.

curl -s "https://api.fundapi.cn/v1/fund-profile?code=110022&key=cf-your-key"

Python SDK

19 endpoints, 19 methods, named like the MCP tools. Auth, retries, error mapping and fund-code normalization are handled for you. Requires Python 3.9 or newer.

pip install fundapi
from fundapi import FundAPI

cli = FundAPI(key="cf-your-key")     # free endpoints work without a key
profile = cli.fund_profile("110022")
nav = cli.fund_nav("110022", size=5)

Source: fundapi-cn/fundapi-python· Package: pypi.org/project/fundapi

Node.js / TypeScript SDK

The same 19 methods with full TypeScript types; both importand require work. Requires Node 18 or newer.

npm install @fundapi/sdk
import { FundAPI } from "@fundapi/sdk";

const cli = new FundAPI({ key: "cf-your-key" });   // free endpoints work without a key
const profile = await cli.fundProfile("110022");
const nav = await cli.fundNav("110022", { size: 5 });

Source: fundapi-cn/fundapi-node· Package: npmjs.com/package/@fundapi/sdk

MCP (AI Agent clients)

Configure once in Claude Code, Codex, Cursor or another AI Agent client, and its 19 tools can query the data directly. The remote URL needs nothing installed — just put it in the config.

{
  "mcpServers": {
    "fundapi": {
      "type": "http",
      "url": "https://api.fundapi.cn/mcp",
      "headers": { "Authorization": "Bearer cf-your-key" }
    }
  }
}

Full client list and config locations: MCP setup

Docker image

Pick this when the remote URL is unreachable, when you want to host your own entry point, or when your program only speaks HTTP. One image, two ways to use it: mode 1 is launched by the client on its own machine; mode 2 runs on any machine that can run Docker (your laptop, a machine in your network, a cloud host) as long as it can reachapi.fundapi.cn — several programs can share one address.

Mode 1: for AI Agent clients (MCP)

Any MCP-capable client works: point its launch command at this image, and the tool list matches the remote URL. The client starts it, so it lives on the client's machine.

docker run -i --rm -e FUND_KEY=cf-your-key fundapicn/mcp

Mode 2: for programs that only speak HTTP (HTTP gateway)

Use this when your program can only send HTTP requests and cannot use MCP: the image starts an HTTP service, and your code keeps calling/v1/… unchanged. Run it on whichever machine you prefer — several programs can share one address.

docker run -p 8080:8080 -e FUND_KEY=cf-your-key fundapicn/mcp gateway
curl "http://<host>:8080/v1/fund-search?q=Yifangda"

Image: hub.docker.com/r/fundapicn/mcp· Client config for both modes: MCP setup

DeepSeek Harness plugin

Install by package name in DeepSeek Harness (desktop or Web UI). Same 19 tools; the free ones need no key.

fundapi-dsh-plugin

Setup: DSH plugin

What all of them share

  • · Free endpoints: fund_search / fund_profile / fund_screener_options work without a key.
  • · Paid endpoints: one key works everywhere — key in the query for HTTP, Authorization: Bearer for MCP.
  • · Responses use one envelope (ok / data); the SDKs return the data part by default.
  • · Error codes, rate limits and data flags are in the API reference; keys are on pricing.

PublishedUpdated