Skip to main content
Glama
blurryface1

tradingagents-mcp

by blurryface1

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENAI_API_KEYNoOpenAI API key (alternative to TRADINGAGENTS_API_KEY)
DEEPSEEK_API_KEYNoDeepSeek API key (alternative to TRADINGAGENTS_API_KEY)
TRADINGAGENTS_MODELNoDeep thinking model name
TRADINGAGENTS_API_KEYNoAPI key (or use OPENAI_API_KEY or DEEPSEEK_API_KEY)
TRADINGAGENTS_BASE_URLNoAPI base URL
TRADINGAGENTS_MAX_TOKENSNoMaximum tokens per call
TRADINGAGENTS_QUICK_MODELNoQuick thinking model name
TRADINGAGENTS_TEMPERATURENoSampling temperature
TRADINGAGENTS_LLM_PROVIDERNoLLM provider, e.g., openai, deepseek, custom_openai
TRADINGAGENTS_MCP_DATA_DIRNoData directory for database and task workspace~/.tradingagents-mcp
TRADINGAGENTS_MCP_MAX_QUEUEDNoMaximum number of queued tasks20
TRADINGAGENTS_MCP_GRAPH_CLASSNoImport path for the graph classtradingagents.graph.trading_graph.TradingGraph
TRADINGAGENTS_MCP_TASK_TIMEOUTNoTask timeout in seconds1800

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

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/blurryface1/tradingagents-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server