TradingAgents MCPMode

v1.0.0Finance & Fintechstable

TradingAgents-MCPmode 是一个创新的多智能体交易分析系统,集成了 Model Context Protocol (MCP) 工具,实现了智能化的股票分析和交易决策流程。系统通过多个专业化智能体的协作,提供全面的市场分析、投资建议和风险管理。

agentfinancefintechindexllm
Share:
308
Stars
0
Downloads
0
Weekly
0/5

What is TradingAgents MCPMode?

TradingAgents MCPMode is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to tradingagents-mcpmode 是一个创新的多智能体交易分析系统,集成了 model context protocol (mcp) 工具,实现了智能化的股票分析和交易决策流程。系统通过多个专业化智能体的协作,提供全面的市场分析、投资建议和风险管理。

TradingAgents-MCPmode 是一个创新的多智能体交易分析系统,集成了 Model Context Protocol (MCP) 工具,实现了智能化的股票分析和交易决策流程。系统通过多个专业化智能体的协作,提供全面的市场分析、投资建议和风险管理。

This server falls under the Finance & Fintech category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • TradingAgents-MCPmode 是一个创新的多智能体交易分析系统,集成了 Model Context Pro

Use Cases

Multi-agent stock analysis system
AI-driven trading decisions
Market analysis automation
LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 18, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx tradingagents-mcpmode

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use TradingAgents MCPMode

TradingAgents-MCPmode is a multi-agent trading analysis system that integrates the Model Context Protocol to enable AI-driven stock research and investment decision workflows. The system orchestrates 15 specialized agents covering seven analysis dimensions — company overview, market data, sentiment, news, fundamentals, shareholder analysis, and product research — with configurable debate rounds for bullish/bearish and risk perspectives. It supports US stocks, Chinese A-shares, and Hong Kong stocks, and exposes its agent pipeline through a Streamlit web interface as well as a command-line interface.

Prerequisites

  • Python 3.8 or higher
  • An OpenAI API key (or compatible API with OPENAI_BASE_URL configured)
  • A Tushare token for Chinese/HK market data (optional, for A-share and HK stock analysis)
  • pip and virtualenv or conda for Python environment management
  • Git to clone the repository
1

Clone the repository

Clone the TradingAgents-MCPmode repository from GitHub and navigate into the project directory.

git clone https://github.com/guangxiangdebizi/TradingAgents-MCPmode.git
cd TradingAgents-MCPmode
2

Install Python dependencies

Install all required packages from the requirements file. It is recommended to use a virtual environment to avoid conflicts with other Python projects.

python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
pip install -r requirements.txt
3

Configure environment variables

Copy the example environment file and edit it with your API keys and workflow parameters. At minimum you need OPENAI_API_KEY and MODEL_NAME.

cp env.example .env
# Edit .env:
# OPENAI_API_KEY=your_openai_key
# OPENAI_BASE_URL=https://api.openai.com/v1
# MODEL_NAME=gpt-4
# MAX_DEBATE_ROUNDS=1
# MAX_RISK_DEBATE_ROUNDS=1
4

Configure MCP tools

Edit mcp_config.json to point to your MCP finance data server. The default configuration uses the finvestai.top hosted finance MCP with a Tushare token for market data.

{
  "mcpServers": {
    "finance-mcp": {
      "disabled": false,
      "timeout": 600,
      "transport": "streamable_http",
      "url": "https://finvestai.top/mcp",
      "headers": {"X-Tushare-Token": "your_tushare_token"}
    }
  }
}
5

Launch the web interface

Start the Streamlit web app to access the full multi-agent analysis interface with checkboxes to enable/disable agents, sliders for debate rounds, and real-time progress monitoring.

streamlit run web_app.py
# Then open http://localhost:8501 in your browser
6

Run an analysis from the command line

Alternatively, invoke a stock analysis directly from the terminal using the CLI interface.

python main.py -c "Analyze Apple stock AAPL and give a buy/sell recommendation"
# Or run interactively:
python main.py

TradingAgents MCPMode Examples

MCP configuration for the finance data server

The mcp_config.json file that connects TradingAgents to the finance MCP data source for market data retrieval.

{
  "mcpServers": {
    "finance-mcp": {
      "disabled": false,
      "timeout": 600,
      "transport": "streamable_http",
      "url": "https://finvestai.top/mcp",
      "headers": {
        "X-Tushare-Token": "your_tushare_token_here"
      }
    }
  }
}

Prompts to try

Analysis commands to enter into the Streamlit web interface or the CLI.

- "Analyze Tesla stock TSLA and give a buy/sell/hold recommendation"
- "Analyze Apple AAPL with focus on fundamentals and recent news sentiment"
- "Compare NVDA and AMD and tell me which is a better investment right now"
- "Analyze the A-share stock 600519 (Kweichow Moutai) for medium-term outlook"
- "What are the biggest risk factors for investing in Microsoft MSFT?"

Troubleshooting TradingAgents MCPMode

Analysis fails with 'API rate limit exceeded' or OpenAI errors

Reduce concurrent load by setting MAX_CONCURRENT_ANALYSIS=1 in your .env file and reducing MAX_DEBATE_ROUNDS to 1. The system runs up to 6 parallel analyst agents which can hit rate limits on lower-tier OpenAI plans. Consider using a higher-capacity model tier or GPT-4o-mini for cost efficiency.

MCP finance tools return empty data or timeout

Check that your Tushare token in mcp_config.json is valid and has the required data permissions. The default timeout is 600 seconds; if you are on a slow connection increase it. Verify the finvestai.top MCP endpoint is reachable from your environment.

Streamlit app does not load or shows import errors

Ensure you activated the virtual environment before running 'streamlit run web_app.py'. If streamlit is not found, run 'pip install streamlit' explicitly. Check that all requirements.txt packages installed without errors.

Frequently Asked Questions about TradingAgents MCPMode

What is TradingAgents MCPMode?

TradingAgents MCPMode is a Model Context Protocol (MCP) server that tradingagents-mcpmode 是一个创新的多智能体交易分析系统,集成了 model context protocol (mcp) 工具,实现了智能化的股票分析和交易决策流程。系统通过多个专业化智能体的协作,提供全面的市场分析、投资建议和风险管理。 It connects AI assistants to external tools and data sources through a standardized interface.

How do I install TradingAgents MCPMode?

Follow the installation instructions on the TradingAgents MCPMode GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with TradingAgents MCPMode?

TradingAgents MCPMode works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is TradingAgents MCPMode free to use?

Yes, TradingAgents MCPMode is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Finance & Fintech MCP Servers

Explore all finance & fintech servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "tradingagents-mcpmode": { "command": "npx", "args": ["-y", "tradingagents-mcpmode"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use TradingAgents MCPMode?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides