cn_index_constituents
Pack: china-stocks · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/cn_index_constituents for the schema, then POST the same URL with its arguments for the data.
CSI/SSE index constituents with weights, sector weights and top-10 holdings by index code, dated.
Tool description as the model sees it
CONSTITUENTS and WEIGHTS of a China Securities Index Co. (CSI) or SSE index by code: every constituent stock with its weight (%), exchange and the file date, the weight total, plus the index’s sector weights (CSI level-1 sectors such as Financials 22.6%, Information Technology 19.3%, and level-2 industry groups such as Banks) and its top-10 holdings with their sector. Answers “CSI 300 constituents and weights”, “\u6caa\u6df1300 \u6210\u5206\u80a1 \u6743\u91cd”, “CSI 300 sector weights”, “\u6caa\u6df1300 \u884c\u4e1a\u6743\u91cd”, “what are the biggest holdings of CSI 500 (000905)”, “CSI 1000 constituents 000852”. Constituent weights come from the index’s daily close-weight publication and are dated by constituents_as_of; sector weights and top-10 come from CSI’s index page data and carry their own sector_weights_as_of (the two can differ by days). Per-constituent sector is published only for the top 10; for the rest use the stock’s own profile. Code is case-sensitive upstream: numeric codes as 6 digits (000300, 000905, 000852, 000016), letter-prefixed ones upper-case (H30269). An unknown or unpublished code returns found:false. Source: China Securities Index Co., index constituent weights and sector weights.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
index_code | string | yes | CSI/SSE index code, e.g. “000300” (CSI 300), “000905” (CSI 500), “000852” (CSI 1000), “000016” (SSE 50), “000922” (CSI Dividend). |
limit | number | no | Max constituents returned, largest weight first, 1-2000 (default: all). constituent_count and weight_total_pct always cover the whole index. |
Example call
Arguments
{
"index_code": "000300",
"limit": 10
}
curl
curl -X POST https://gateway.pipeworx.io/china-stocks/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"cn_index_constituents","arguments":{"index_code":"000300","limit":10}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('cn_index_constituents', {
"index_code": "000300",
"limit": 10
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
index_code | string | |
index_name_cn | string | null | |
constituents_as_of | string | null | |
data_as_of | string | null | |
constituent_count | number | |
weight_total_pct | number | |
constituents | array | null | |
sector_weights_as_of | string | null | |
sector_weights | array | null | |
industry_group_weights | array | null | |
top10_as_of | string | null | |
top10_holdings | array | null | |
sector_note | string | |
message | string | |
source | string |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"index_code": {
"type": "string"
},
"index_name_cn": {
"type": [
"string",
"null"
]
},
"constituents_as_of": {
"type": [
"string",
"null"
]
},
"data_as_of": {
"type": [
"string",
"null"
]
},
"constituent_count": {
"type": "number"
},
"weight_total_pct": {
"type": "number"
},
"constituents": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"name_en": {
"type": [
"string",
"null"
]
},
"exchange": {
"type": [
"string",
"null"
]
},
"weight_pct": {
"type": "number"
}
},
"additionalProperties": true
}
},
"sector_weights_as_of": {
"type": [
"string",
"null"
]
},
"sector_weights": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"properties": {
"sector": {
"type": [
"string",
"null"
]
},
"sector_en": {
"type": [
"string",
"null"
]
},
"weight_pct": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
}
},
"industry_group_weights": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"properties": {
"sector": {
"type": [
"string",
"null"
]
},
"sector_en": {
"type": [
"string",
"null"
]
},
"weight_pct": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
}
},
"top10_as_of": {
"type": [
"string",
"null"
]
},
"top10_holdings": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"properties": {
"code": {
"type": [
"string",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"sector": {
"type": [
"string",
"null"
]
},
"industry_group": {
"type": [
"string",
"null"
]
},
"weight_pct": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
}
},
"sector_note": {
"type": "string"
},
"message": {
"type": "string"
},
"source": {
"type": "string"
}
},
"additionalProperties": true
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the china-stocks pack
{
"mcpServers": {
"china-stocks": {
"url": "https://gateway.pipeworx.io/china-stocks/mcp"
}
}
}
See Getting Started for client-specific install steps.