FactorHub MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| FACTORHUB_API_KEY | No | Your FactorHub API key (optional, defaults to free trial quota). Get it from https://factorhub.cn/api-keys |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| set_api_keyA | 设置你的 FactorHub API Key。注册获取:https://factorhub.cn/api-keys。设置后本次会话将使用你的专属额度。 |
| list_factorsA | 获取因子列表。支持按分类和关键词搜索。返回因子代码、名称、分类、年化收益、夏普比率等。 |
| get_factor_scoresB | 获取单个因子的详细评分指标:年化收益、夏普比率、最大回撤、波动率、Alpha、Beta、IC均值等。 |
| get_factor_navC | 获取因子净值曲线数据,用于分析因子历史表现趋势。 |
| get_market_dailyB | 获取个股日线行情数据(OHLCV + 涨跌幅)。ts_code 如 000001.SZ、600519.SH。 |
| get_index_dailyC | 获取指数日线行情。常用:000001.SH(上证)、399001.SZ(深证)、000300.SH(沪深300)、000905.SH(中证500)。 |
| get_valuationC | 获取股票估值指标:PE、PB、PS、股息率、总市值、流通市值、换手率等。 |
| get_stock_infoB | 获取单只股票基本信息:名称、行业、上市日期、市场板块等。 |
| get_stock_listC | 按条件筛选股票列表。可按交易所(SSE/SZSE)、行业筛选。 |
| get_trade_datesB | 获取交易日历,查询指定时间段内的交易日列表。 |
| run_backtestB | 执行量化策略回测。内置策略:limit_up_first_board(涨停首板)、low_valuation(低估值)、momentum(动量)、mean_reversion(均值回归)。返回年化收益、夏普比率、最大回撤等。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/michaelfeng/factorhub-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server