Overview • Quick Start • Supported Data Providers • FinData is an open-source Model Context Protocol(MCP) Server that provides professional financial data access capabilities for LLM. It supports various data providers such as Tushare, Wind, DataYes, etc. This enables AI applications to quickly retrieve financial data. Fully supports both Stdio and SSE transports, offering flexibility for differen
Add this skill
npx mdskills install zlinzzzz/findata-mcp-serverWell-structured MCP server providing comprehensive financial data access with clear setup instructions and multiple transport options
1<h1 align="center">2<img src="assets/logo.png" width="400" align=center/>3</h1><br>45<div align="center">67[](README.md)9[](README_zh.md)10[](LICENSE)11[]()12[]()1314</div>1516<div class="toc" align="center">17 <a href="#Overview">Overview</a> •18 <a href="#Demonstration">Demo</a> •19 <a href="#Quick-Start">Quick Start</a> •20 <a href="#Supported-Data-Providers">Supported Data Providers</a> •21 <a href="#Tools">Tools</a>22</div>232425# Overview2627**FinData** is an open-source **Model Context Protocol(MCP) Server** that provides professional financial data access capabilities for LLM. It supports various data providers such as **Tushare**, **Wind**, **DataYes**, etc. This enables AI applications to quickly retrieve financial data.2829Fully supports both **Stdio** and **SSE** transports, offering flexibility for different environments.303132# Demonstration3334https://github.com/user-attachments/assets/1a6d02af-22a3-44a0-ada7-a771a1c4818d3536# Quick Start3738## Prerequisites3940Before getting started, please complete the following preparations:4142- python => 3.1143- mcp[cli]>=1.6.044- pandas>=2.2.345- [uv](https://docs.astral.sh/uv/getting-started/installation/)4647Depending on your data provider, install optional packages such as:4849- tushare>=1.4.215051## Configuration5253### Stdio Transport5455You will need to edit the MCP client configuration file to add finData:5657```JSON58{59 "mcpServers": {60 "finData": {61 "command": "uv",62 "args": [63 "--directory",64 "/ABSOLUTE/PATH/TO/PARENT/FOLDER/finData-mcp-server/src/findata",65 "run",66 "server.py"67 ],68 "env": {69 "DATA_API_TOKEN": "", // API Token for accessing data provider70 "PROVIDER": "tushare" // Specified data provider71 }72 }73 }74}75```7677### SSE Transport7879Set the environment variables `DATA_API_TOKEN` and `PROVIDER` on the server hosting the MCP Server:8081 **Windows**82 ```bash83 set DATA_API_TOKEN=<API Token for accessing data provider>84 set PROVIDER=<Specified data provider>85 ```8687 **Linux**88 ```bash89 export DATA_API_TOKEN=<API Token for accessing data provider>90 export PROVIDER=<Specified data provider>91 ```9293Then, start the MCP Server:9495```bash96uv run server.py --transport sse97```9899- Optional Arguments:100101 `--sse-host` Host to bind SSE server to (default: localhost)102103 `--sse-port` Port for SSE server (default: 8000)104105106Once the MCP Server is running, update your MCP client's configuration with the following settings to connect to it.107108```JSON109{110 "mcpServers": {111 "finData": {112 "name": "finData",113 "type": "sse",114 "baseUrl": "http://localhost:8000/sse"115 }116 }117}118```119120**Note:** Variable names in configuration files may vary slightly between MCP clients. Refer to each client's documentation for proper configuration.121122# Supported Data Providers123124Set the `PROVIDER` environment variable to specify your provider:125126- tushare127128# Tools129130## Tushare131132### Market Data133134- `daily` Get unadjusted daily stock market data.135136### Fundamental Data137138- `stock_basic` Get stock basic information including name, code, etc.139- `stock_company` Get listed company basic information.140- `bak_basic` Get fundamental data for specific stocks within a given time range.141142### Financial Data143144- `income` Get company income statement data.145- `balancesheet` Get company balance sheet data.146- `cashflow` Get company cash flow statement data.147148### Macroeconomic Data149150- `shibor_lpr` Get Loan Prime Rate (LPR) data.151- `cn_gdp` Get Gross Domestic Product (GDP) data.152- `cn_cpi` Get Consumer Price Index (CPI) data.153- `cn_ppi` Get Producer Price Index (PPI) data.154- `cn_m` Get Money Supply data.155- `sf_month` Get Social Financing data.156- `cn_pmi` Get Purchasing Managers' Index (PMI) data.157158# DataCanvas159160161162163This project is open-sourced by [DataCanvas](https://datacanvas.com/)164165166
Full transparency — inspect the skill content before installing.