tradingrearchagents
This is a 27-tool MCP server for orchestrating durable, credential-free TradingAgents-compatible research runs and serving completed read-only dossiers — no model-provider API keys or broker integration required.
Discovery & Introspection
Discover available executors, tools, safety boundaries, and the default fixture (
discover_capability)Retrieve the feature matrix with implemented features, safety exclusions, and runtime readiness (
get_feature_matrix)
Deterministic Fixture Testing
Validate and expand the ORCL fixture without executing it (
prepare_fixture)Execute all research stages deterministically using synthetic data, with controllable analysts, as-of-date, and debate/risk rounds (
run_fixture)
Durable Run Lifecycle Management
Create, start, pause, resume, request cancellation of, and acknowledge cancellation of durable host-owned research runs
Commit completed stages atomically and receive the next stage; append safe live receipts (summaries, digests, evidence IDs — never prompts, raw arguments, or credentials)
Finalize runs by validating all stages and atomically publishing the final dossier
Stateless Host Run Import
Generate a canonical research plan for a host harness (
prepare_host_run)Validate completed stage outputs against a frozen schema and atomically publish the dossier (
import_host_run)
Lifecycle Monitoring & Events
Retrieve durable lifecycle status, revision, checkpoint, cancellation state, and next stage (
get_run_control)Poll live lifecycle events via cursor-based polling (
poll_run_events) or retrieve the full ordered event stream (get_run_events)
Decision Memory
Recall up to 5 same-symbol and 3 cross-symbol prior published decisions (
query_decision_memory)Append host-observed outcomes and reflections to prior decisions (
record_decision_outcome)
Completed Run Reads & Dashboards
Access compact dashboard records, full typed results, UI-ready projections, and presentation-safe summaries
Launch a local read-only dashboard with packaged assets and JSON APIs on loopback (
launch_local_dashboard)
Export & Conformance
Export completed run bundles with atomic first publication, crash-recoverable validated overwrite, and SHA-256 manifests (
export_completed_run)Validate portable observable invariants and optionally verify pinned upstream checkout identity (
get_conformance_report)
Research Topology The server supports a comprehensive analysis pipeline including market, social, news, and fundamental analysts, bull/bear debates, risk debates, and portfolio management — all with full data provenance (source URLs, publication dates, retrieval times, and evidence references).
Provides a caller-entitled OAuth port for collecting Reddit data as a company research source, requiring approved caller credentials and rights.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tradingrearchagents run the ORCL fixture research and export the report"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
StockResearchAgents
Evidence-first company research for agent harnesses, with versioned contracts, deterministic validation and analytics, durable lifecycle controls, and completed-only dossiers.
Prototype research only. Not financial advice. StockResearchAgents has no broker integration and cannot submit, modify, approve, cancel, or fill an order. Investment-style output is explicitly non-executable (
non_executable: true); it is an analytical scenario, never an action.
StockResearchAgents gives an MCP-capable harness or custom application a strict research workflow without choosing its model provider, prompt runtime, retrieval stack, or agent scheduler. The caller supplies evidence and reasoning; the core validates the typed result, preserves provenance and limitations, and publishes only a completed dossier.

When to use this project
Use StockResearchAgents when you need a harness-neutral, evidence-first contract for point-in-time company research, deterministic analytics, lifecycle controls, and completed-only publication. It fits MCP hosts and custom Python applications that already own their models, retrieval, credentials, and execution policy.
Do not use it as a model runtime, market-data vendor, broker, order-management system, autonomous trading engine, or evidence of investment performance. Live-provider coverage is deliberately narrow, licensed sources remain host-owned, and every trade-like output is a non-executable analytical scenario.
Related MCP server: MCP Agent Toolkit
Verify it locally
Python 3.11 through 3.14 and uv are supported. From a source checkout:
uv sync
uv run python scripts/smoke_backend.pyExpected output has this shape:
ok run=analytics-… stages=26 events=34This CI-backed smoke check publishes the deterministic, credential-free ORCL test submission through the completed-result path. It proves contract and publication behavior—not live retrieval, research quality, forecast calibration, or investment performance.
The checked-in preview and its JSON artifacts are visibly fixture-labeled, non-executable, and regenerated byte-for-byte in CI. See Examples; they are product-surface proof, not current ORCL research.
To inspect the public workflow contract without running a model or retrieving data:
uv run stock-research-agents analytics-plan \
--input examples/company-request.v1.json \
--output plan.jsonThe example request is explicitly fixture-mode. Changing its symbol does not make it live. See Getting started for the complete first-run explanation.
What you get
Capability | What StockResearchAgents guarantees |
Evidence and claims | Typed source identity, timestamps, entitlements, lineage, coverage gaps, claims, counterclaims, and limitations |
Analytics and valuation | Deterministic fundamentals, ratios, valuation cases, sensitivities, consensus, positioning, and catalyst records |
Risks and counterevidence | Structured challenge, risk scenarios, unresolved evidence, and falsifiable hypotheses |
Monitoring and quality | Forecasts, later outcome observations, deterministic scorecards, research-change records, and evaluation-only binary calibration cohorts |
Durable lifecycle | A 26-stage |
Completed presentation | Five report groups, JSON/Markdown exports, MCP reads, and a loopback-only Research Dossier Viewer that never sees partial stage output |
The one public product profile is company-analytics.v1. Its strict terminal result, CompanyAnalyticsResultV1, retains the exact submission and seven authoritative artifacts: dossier, analytics bundle, run card, hypothesis ledger, research iterations, quality receipt, and forecast set.
How it works
flowchart LR
C["Caller runtime<br/>models, tools, retrieval, credentials"]
P["company-analytics.v1<br/>26-stage workflow contract"]
V["Deterministic validation<br/>temporal, lineage, numerical, safety"]
G{"Publication gate"}
R["Completed CompanyAnalyticsResultV1"]
O["MCP reads, exports,<br/>Research Dossier Viewer"]
C --> P --> V --> G
G -->|accepted| R --> O
G -->|rejected| X["Explicit validation errors<br/>no published dossier"]A caller validates a request and receives versioned roles, dependencies, capabilities, completion criteria, and output schemas.
The caller retrieves cutoff-valid evidence and executes the stages with its own agents and tools.
StockResearchAgents validates the complete terminal submission and its cross-references.
Only an accepted, atomically published result becomes readable through MCP, exports, or the viewer.
Architecture explains the ports-and-adapters boundaries, lifecycle state machine, repositories, projections, and security invariants.
Interfaces
Interface | Entry point | Use it for |
CLI |
| Plans, imports, durable run control, validation, exports, memory, quality, redacted diagnostics, and viewer serving |
Coordination MCP |
| Capability discovery, planning, lifecycle mutation, publication, completed-result reads, cohort evaluation, and redacted diagnostics |
Research-data MCP |
| Typed SEC, GDELT, World Bank, and read-only Polymarket routes, plus an additive host-configured source-portfolio tool |
Python |
| Embedding contracts, application services, lifecycle control, and projections |
Host adapters |
| Caller-owned source collection, entitlements, and provider normalization |
The coordination MCP intentionally registers no research-data tools. Credentials, raw licensed bodies, provider sessions, prompt text, model execution, and agent scheduling remain outside the core boundary.
Source and proof status
Source route | Default status | Important limitation |
SEC filings, fundamentals, statements | Public typed route | Availability and point-in-time validity still require exact-cutoff checks |
GDELT company/global news | Public discovery route | Publisher links are discovery metadata, not opened publisher evidence |
World Bank macro observations | Public typed route | Current-vintage values do not reconstruct historical revision lineage |
Polymarket Gamma | Public read-only context | Market-implied observations are neither forecast truth nor executable signals |
Prices and indicators | Caller-entitled port | No bundled default licensed market-data provider |
Caller OAuth port | Requires approved caller credentials and rights | |
StockTwits | Not registered | No silent fallback |
StockResearchAgents therefore has partial live public-source coverage, not complete live company research. Missing, stale, conflicting, or entitlement-blocked evidence remains visible. A scheduled, bounded, non-gating canary records sanitized public-provider status and contract shape, but it does not certify freshness or availability for a production run. See the source portfolio, research-data MCP, and proof ledger.
Install and integrate
No public release is claimed until a tagged version has been published. For development, use the source-checkout commands above. Once a release exists, the supported PyPI, GitHub Release, MCP, and host-specific commands will be listed in Harnesses and verified through the release process.
Goal | Start here |
Connect an MCP-capable harness | |
Use Claude Code, OpenCode, Hermes, or the optional Codex adapter | |
Embed the Python API | |
Build a source adapter | |
Operate or recover durable runs | |
Review contracts and compatibility | |
Understand product and UI decisions |
The complete documentation index is in docs/README.md.
Stable product language
Human-facing name | Stable technical identifier |
Company Analytics |
|
Completed Research Dossier |
|
Research Dossier Viewer |
|
Evidence-First Company Research foundation |
|
Research Quality sidecar |
|
Research Quality Receipt |
|
Wire identifiers are versioned and are not cosmetically renamed. See the glossary.
Contributing, support, and security
Read CONTRIBUTING.md before changing a contract, workflow, source adapter, or presentation boundary.
Use SUPPORT.md for usage questions and troubleshooting routes.
Report vulnerabilities through the private process in SECURITY.md, not a public issue.
Follow the community code of conduct in issues, reviews, and project discussions.
See the evidence-focused roadmap for priorities and explicit non-goals.
Review user-visible changes in CHANGELOG.md.
Licensed under the Apache License 2.0.
Available Tools
27 toolsacknowledge_run_cancellationC
Acknowledge host interruption and make cancellation terminal.
Inputs: run_id (required), host_receipt_id (required), expected_revision (required). Returns: object
append_run_receiptsC
Append safe live stage/tool receipts without prompts, raw arguments, or credentials.
Inputs: run_id (required), receipts (required), expected_revision (required). Returns: object
commit_host_stageA
Commit and checkpoint one completed host stage, then return the next stage.
Inputs: output (required), run_id (required), stage_id (required), expected_revision (required), +1 more. Returns: object
create_host_runC
Create a durable credential-free host run with decision-memory recall.
Inputs: symbol (required), as_of_date (required), analysts, asset_type, +4 more. Returns: object
discover_capabilityARead-onlyIdempotent
Discover executors, tools, safety boundaries, and default fixture.
Inputs: no named parameters. Returns: object
export_completed_runADestructive
Export a bundle with atomic first publication and crash-recoverable validated overwrite.
Inputs: run_id (required), destination (required), overwrite. Returns: object
finalize_host_runA
Validate all committed stages and atomically publish the completed dossier.
Inputs: run_id (required), expected_revision (required). Returns: object
get_conformance_reportBRead-onlyIdempotent
Validate portable observable invariants; optionally verify pinned checkout identity.
Inputs: run_id (required), upstream_path. Returns: object
get_dashboard_reportBRead-onlyIdempotent
Return the presentation-safe dashboard summary for a run.
Inputs: run_id (required). Returns: object
get_feature_matrixARead-onlyIdempotent
Return implemented features, safety exclusions, and runtime readiness.
Inputs: no named parameters. Returns: object
get_runARead-onlyIdempotent
Return a compact dashboard-oriented run record.
Inputs: run_id (required). Returns: object
get_run_controlBRead-onlyIdempotent
Return durable lifecycle status, revision, checkpoint, cancellation, and next stage.
Inputs: run_id (required). Returns: object
get_run_eventsBRead-onlyIdempotent
Return the ordered event stream for a run.
Inputs: run_id (required). Returns: object
get_run_resultBRead-onlyIdempotent
Return the full typed result for a run.
Inputs: run_id (required). Returns: object
get_run_viewARead-onlyIdempotent
Return the complete UI-ready run projection for inline harness rendering.
Inputs: run_id (required). Returns: object
import_host_runB
Validate completed host stage outputs and atomically publish the final dossier.
Inputs: payload (required). Returns: object
launch_local_dashboardC
Serve the local dashboard assets and JSON APIs on loopback.
Inputs: host, port, run_id. Returns: object
pause_host_runC
Pause a host run at its next portable stage boundary.
Inputs: reason (required), run_id (required), expected_revision (required). Returns: object
poll_run_eventsCRead-onlyIdempotent
Read live lifecycle events after a monotonic cursor.
Inputs: run_id (required), limit, after_sequence. Returns: object
prepare_fixtureARead-onlyIdempotent
Validate and expand the deterministic ORCL fixture without running it.
Inputs: analysts, as_of_date, risk_rounds, debate_rounds. Returns: object
prepare_host_runBRead-onlyIdempotent
Return the canonical plan for the active host harness; accepts no model credentials.
Inputs: symbol (required), as_of_date (required), analysts, asset_type, +3 more. Returns: object
query_decision_memoryARead-onlyIdempotent
Recall up to five same-symbol and three cross-symbol prior decisions.
Inputs: symbol (required), same_symbol_limit, cross_symbol_limit. Returns: object
record_decision_outcomeB
Append a host-observed outcome and reflection to a prior research decision.
Inputs: outcome (required), reflection (required), run_id, memory_id, +1 more. Returns: object
request_run_cancellationB
Request cooperative cancellation; the host owns interruption.
Inputs: reason (required), run_id (required), expected_revision (required). Returns: object
resume_host_runB
Resume from the first incomplete portable stage; replay interrupted work.
Inputs: run_id (required), expected_revision (required). Returns: object
run_fixtureB
Run all stages deterministically and store the in-memory result and events.
Inputs: analysts, as_of_date, risk_rounds, debate_rounds. Returns: object
start_host_runA
Start a prepared durable host run and return its first stage.
Inputs: run_id (required), expected_revision (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 27 tools
Several tools have overlapping boundaries: get_run, get_run_events, get_run_result, get_run_view, get_run_control all retrieve run data but differ subtly in scope and purpose. Similarly, run_fixture, create_host_run, and start_host_run all initiate executions, and import_host_run vs finalize_host_run both validate and publish dossiers. The differences are hard to discern from names alone.
Most tools follow a consistent verb_noun pattern (get_, create_, start_, run_, pause_, resume_, finalize_), with a few camelCase outliers like launch_local_dashboard, prepare_host_run, and append_run_receipts that break the underscore convention. The dominant pattern is readable and predictable, but the mixed style is a minor inconsistency.
27 tools is on the heavy side, especially for what appears to be a single-purpose trading research harness. Many tools (get_run, get_run_events, get_run_result, get_run_view, get_run_control, poll_run_events) overlap substantially in the retrieval space, suggesting the surface could be consolidated significantly.
The host-run lifecycle is comprehensively covered: create, start, commit, pause, resume, cancel, finalize, export, and query. Decision memory has both recall and record-outcome operations. Minor gaps exist around fixture editing or host-run deletion, but the core research workflow appears fully covered with no obvious dead ends.
Related MCP Connectors
Trading MCP server for AI agents, with live market data, account reads and controlled execution.
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for OpenMM — exposes market data, account, trading, and strategy tools to AI agents
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server exposing a registry of paper-backed quantitative trading methods plus a deterministic, no-LLM decision helper for reproducible trading research.1371 PyPIMIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server providing tools for read-only SQL queries, REST API calls, sandboxed Python execution, and resource lifecycle management, enabling multi-step research and data tasks.MIT
- AlicenseNot gradedqualityBmaintenanceThis MCP server provides a stateful, resettable, verifiable API runtime that gates every tool call, enabling agents to run long workflows against provider-shaped environments without live provider write access. It records decisions, side effects, and outcome evidence for replayable, verifiable benchmark runs.Apache 2.0
- AlicenseAqualityDmaintenanceMCP server for the Pyon trading platform that lets AI agents search markets, generate research, build and edit node-graph strategies, run backtests, diagnose problems, and optimize parameters with 2-D sweeps.139 npm4MIT