FinanceMCP is a professional financial data server based on the Model Context Protocol (MCP). It integrates with Tushare API to provide real-time financial data and technical indicator analysis capabilities to AI assistants like Claude, allowing them to access and analyze financial information through natural language queries.
The simplest way to use FinanceMCP is through the public service provided by the developers. No local installation or API keys are required.
Add the following configuration to your Claude Desktop configuration file:
{
"mcpServers": {
"finance-data-server": {
"disabled": false,
"timeout": 600,
"type": "sse",
"url": "http://106.14.205.176:3101/sse"
}
}
}
Configuration file location:
%APPDATA%\Claude\claude_desktop_config.json
~/Library/Application Support/Claude/claude_desktop_config.json
After configuring, restart Claude Desktop to start using the service.
If you prefer to run the server locally, follow these steps:
Method 1: Install via Smithery (Recommended)
npx -y @smithery/cli install @guangxiangdebizi/finance-mcp --client claude
Method 2: Manual Installation
# 1. Clone the repository
git clone https://github.com/guangxiangdebizi/FinanceMCP.git
cd FinanceMCP
# 2. Install dependencies
npm install
# 3. Configure API key
echo "TUSHARE_TOKEN=your_token_here" > .env
# Or directly edit the src/config.ts file
# 4. Build the project
npm run build
Option 1: Direct Run (stdio mode)
node build/index.js
Option 2: Using Supergateway (Recommended for development)
npx supergateway --stdio "node build/index.js" --port 3100
Configuration 1: stdio mode
{
"mcpServers": {
"finance-data-server": {
"command": "node",
"args": ["C:/path/to/FinanceMCP/build/index.js"],
"disabled": false,
"autoApprove": [
"current_timestamp",
"finance_news",
"stock_data",
"index_data",
"macro_econ",
"company_performance",
"fund_data",
"fund_manager_by_name",
"convertible_bond",
"block_trade",
"money_flow",
"margin_trade"
]
}
}
}
Configuration 2: Supergateway mode (if using port 3100)
{
"mcpServers": {
"finance-data-server": {
"url": "http://localhost:3100/sse",
"type": "sse",
"disabled": false,
"timeout": 600,
"autoApprove": [
"current_timestamp",
"finance_news",
"stock_data",
"index_data",
"macro_econ",
"company_performance",
"fund_data",
"fund_manager_by_name",
"convertible_bond",
"block_trade",
"money_flow",
"margin_trade"
]
}
}
}
macd(12,26,9)
- Trend analysisrsi(14)
- Overbought/oversold conditionskdj(9,3,3)
- Stochastic indicatorboll(20,2)
- Bollinger Bandsma(5/10/20/60)
- Moving Averages"Analyze the technical status of Moutai (600519.SH), calculate MACD(12,26,9), RSI(14), KDJ(9,3,3)"
"Check CATL's (300750.SZ) Bollinger Bands BOLL(20,2) and four moving averages MA(5,10,20,60)"
"Apple Inc. (AAPL) stock price trend and MACD indicators for the past month"
"Comprehensive analysis of BYD: financial condition, technical indicators, capital flow, latest news"
"Compare the performance and technical indicators of A-shares, US stocks, and Hong Kong markets"
"Evaluate CATL's investment value: fundamentals + technical + capital aspects"
"Search for the latest policies and market dynamics in the new energy vehicle sector"
"Analyze the current macroeconomic situation: GDP, CPI, PPI, PMI data"
"The impact of the Fed's interest rate hike on the Chinese stock market, relevant news and data"
"Check the latest net value and portfolio structure of the CSI 300 ETF"
"Analyze the performance of funds managed by Zhang Kun"
"Overview and investment opportunities in the convertible bond market"
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "finance-data-server" '{"command":"node build/index.js","type":"stdio","disabled":false,"autoApprove":["current_timestamp","finance_news","stock_data","index_data","macro_econ","company_performance","fund_data","convertible_bond"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"finance-data-server": {
"command": "node build/index.js",
"type": "stdio",
"disabled": false,
"autoApprove": [
"current_timestamp",
"finance_news",
"stock_data",
"index_data",
"macro_econ",
"company_performance",
"fund_data",
"convertible_bond"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"finance-data-server": {
"command": "node build/index.js",
"type": "stdio",
"disabled": false,
"autoApprove": [
"current_timestamp",
"finance_news",
"stock_data",
"index_data",
"macro_econ",
"company_performance",
"fund_data",
"convertible_bond"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect