Skip to main content
Glama
tradingrearchagents

tradingrearchagents

StockResearchAgents

CI Python 3.11–3.14 License: Apache-2.0 MCP

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.

StockResearchAgents system overview: caller-owned evidence and execution pass through versioned validation before completed-only publication

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.py

Expected output has this shape:

ok run=analytics-… stages=26 events=34

This 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.

Fixture Research Dossier Viewer preview for the deterministic ORCL demonstration

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.json

The 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 run-control.v1 flow with checkpoints, optimistic revisions, pause/resume, cancellation, recovery, and atomic finalization

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"]
  1. A caller validates a request and receives versioned roles, dependencies, capabilities, completion criteria, and output schemas.

  2. The caller retrieves cutoff-valid evidence and executes the stages with its own agents and tools.

  3. StockResearchAgents validates the complete terminal submission and its cross-references.

  4. 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

stock-research-agents

Plans, imports, durable run control, validation, exports, memory, quality, redacted diagnostics, and viewer serving

Coordination MCP

stock-research-agents-mcp

Capability discovery, planning, lifecycle mutation, publication, completed-result reads, cohort evaluation, and redacted diagnostics

Research-data MCP

stock-research-data-mcp

Typed SEC, GDELT, World Bank, and read-only Polymarket routes, plus an additive host-configured source-portfolio tool

Python

stock_research_agents

Embedding contracts, application services, lifecycle control, and projections

Host adapters

stock_research_agents_host

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

Reddit

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

Integration

Use Claude Code, OpenCode, Hermes, or the optional Codex adapter

Host adapters

Embed the Python API

Python integration

Build a source adapter

Ports and adapters

Operate or recover durable runs

Operations

Review contracts and compatibility

Contracts and compatibility

Understand product and UI decisions

Design

The complete documentation index is in docs/README.md.

Stable product language

Human-facing name

Stable technical identifier

Company Analytics

company-analytics.v1

Completed Research Dossier

research_dossier.v1

Research Dossier Viewer

run-view.v1

Evidence-First Company Research foundation

company-research.v1

Research Quality sidecar

research_quality.v1

Research Quality Receipt

research-quality.v1

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 tools
acknowledge_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_capabilityA
Read-onlyIdempotent

Discover executors, tools, safety boundaries, and default fixture.

Inputs: no named parameters. Returns: object

export_completed_runA
Destructive

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_reportB
Read-onlyIdempotent

Validate portable observable invariants; optionally verify pinned checkout identity.

Inputs: run_id (required), upstream_path. Returns: object

get_dashboard_reportB
Read-onlyIdempotent

Return the presentation-safe dashboard summary for a run.

Inputs: run_id (required). Returns: object

get_feature_matrixA
Read-onlyIdempotent

Return implemented features, safety exclusions, and runtime readiness.

Inputs: no named parameters. Returns: object

get_runA
Read-onlyIdempotent

Return a compact dashboard-oriented run record.

Inputs: run_id (required). Returns: object

get_run_controlB
Read-onlyIdempotent

Return durable lifecycle status, revision, checkpoint, cancellation, and next stage.

Inputs: run_id (required). Returns: object

get_run_eventsB
Read-onlyIdempotent

Return the ordered event stream for a run.

Inputs: run_id (required). Returns: object

get_run_resultB
Read-onlyIdempotent

Return the full typed result for a run.

Inputs: run_id (required). Returns: object

get_run_viewA
Read-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_eventsC
Read-onlyIdempotent

Read live lifecycle events after a monotonic cursor.

Inputs: run_id (required), limit, after_sequence. Returns: object

prepare_fixtureA
Read-onlyIdempotent

Validate and expand the deterministic ORCL fixture without running it.

Inputs: analysts, as_of_date, risk_rounds, debate_rounds. Returns: object

prepare_host_runB
Read-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_memoryA
Read-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

    C2.7/5.0

    Scored across 27 tools

    Disambiguation2/5

    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.

    Naming Consistency4/5

    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.

    Tool Count2/5

    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.

    Completeness4/5

    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

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      An MCP server exposing a registry of paper-backed quantitative trading methods plus a deterministic, no-LLM decision helper for reproducible trading research.
      13
      71 PyPI
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An 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
    • A
      license
      Not graded
      quality
      B
      maintenance
      This 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
    • A
      license
      A
      quality
      D
      maintenance
      MCP 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.
      13
      9 npm
      4
      MIT