tradingagents-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OPENAI_API_KEY | No | OpenAI API key (alternative to TRADINGAGENTS_API_KEY) | |
| DEEPSEEK_API_KEY | No | DeepSeek API key (alternative to TRADINGAGENTS_API_KEY) | |
| TRADINGAGENTS_MODEL | No | Deep thinking model name | |
| TRADINGAGENTS_API_KEY | No | API key (or use OPENAI_API_KEY or DEEPSEEK_API_KEY) | |
| TRADINGAGENTS_BASE_URL | No | API base URL | |
| TRADINGAGENTS_MAX_TOKENS | No | Maximum tokens per call | |
| TRADINGAGENTS_QUICK_MODEL | No | Quick thinking model name | |
| TRADINGAGENTS_TEMPERATURE | No | Sampling temperature | |
| TRADINGAGENTS_LLM_PROVIDER | No | LLM provider, e.g., openai, deepseek, custom_openai | |
| TRADINGAGENTS_MCP_DATA_DIR | No | Data directory for database and task workspace | ~/.tradingagents-mcp |
| TRADINGAGENTS_MCP_MAX_QUEUED | No | Maximum number of queued tasks | 20 |
| TRADINGAGENTS_MCP_GRAPH_CLASS | No | Import path for the graph class | tradingagents.graph.trading_graph.TradingGraph |
| TRADINGAGENTS_MCP_TASK_TIMEOUT | No | Task timeout in seconds | 1800 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_capabilitiesA | Return the capabilities and configuration of this TradingAgents MCP server. Describes what analyses are supported, default parameters, and server limits. All configuration listed here is non-sensitive — no credentials or API keys. |
| start_analysisA | Start a new financial research analysis for a given symbol. Creates an asynchronous analysis task. Use get_analysis_status to check progress and get_analysis_result to retrieve the final summary once the task succeeds. The full report is available as an MCP resource. Args: symbol: Stock ticker or crypto symbol (e.g. 'AAPL', '600519.SH', 'BTC'). analysis_date: Date to analyze as YYYY-MM-DD. Must not be in the future. Defaults to today. asset_type: 'stock' or 'crypto'. Auto-detected if omitted. depth: 'shallow' (default, faster) or 'deep' (more thorough). language: Output language: 'English' (default) or '中文'. idempotency_key: Optional stable key. Same key + same params returns existing task. |
| get_analysis_statusA | Get the current status of an analysis task. Returns task metadata including status (queued, running, succeeded, failed, cancelled) and timestamps. Use this to poll for completion. Args: run_id: Task identifier returned by start_analysis. |
| get_analysis_resultA | Get the result summary of a completed analysis task. Only returns the structured summary with rating and resource reference. The full markdown report is accessed through the MCP resource URI returned in the result. Args: run_id: Task identifier for a completed analysis. |
| list_analysesA | List analysis tasks with pagination. Args: status: Optional filter by status (queued, running, succeeded, failed, cancelled). cursor: Pagination cursor from a previous list call. limit: Maximum number of tasks to return (default 20, max 100). |
| cancel_analysisA | Cancel a queued or running analysis task. Cancellation stops the task and puts it in the 'cancelled' terminal state. The task and its partial results remain available for deletion. Cancellation of a succeeded or failed task has no effect. Args: run_id: Task identifier to cancel. |
| delete_analysisA | Permanently delete an analysis task and all its data. Per ADR-0009: tasks are never auto-cleaned. You must explicitly delete them with this tool. The confirm_run_id parameter must exactly match the task ID you want to delete — this prevents accidental deletion. Only terminal tasks (succeeded, failed, cancelled) can be deleted. Deletion removes the task record, the research report, all logs, and the idempotency mapping. This action is irreversible. Args: confirm_run_id: Must exactly match the run_id to confirm deletion. |
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
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/blurryface1/tradingagents-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server