1. Conduid
  2. Developer Tools
  3. tradeblocks
MCP server · Developer Tools

tradeblocks

Portfolio analytics analysis for OptionsOmega portfolio back tests

Unclaimed finance
42Fair

Scored yesterday · breakdown

About tradeblocks

tradeblocks is an MCP server published by git+davidromeo in the Developer Tools category: portfolio analytics analysis for OptionsOmega portfolio back tests.

The repository has 49 stars and 0 forks, with the last commit 2 days ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

Install
npx tradeblocks-mcp
Claude Code
claude mcp add tradeblocks -- npx -y tradeblocks-mcp
npx
npx -y tradeblocks-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about tradeblocks

Powered by Claude · Grounded in docs

I know everything about tradeblocks. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

4 checks have not been run yet.

README

TradeBlocks

Options trading analytics platform with a web dashboard and AI-powered analysis via MCP (Model Context Protocol).

Web App | npm | Docker Hub | Buy Me a Coffee

Repository Structure

tradeblocks/
├── app/                      # Next.js web application
├── components/               # React components (shadcn/ui + Plotly charts)
├── tests/                    # Jest test suites
├── docs/                     # Documentation
│   └── development.md        # Architecture and local dev guide
└── packages/
    ├── lib/                  # Core business logic (@tradeblocks/lib)
    ├── mcp-server/           # MCP server (npm: tradeblocks-mcp)
    └── agent-skills/         # AI agent skill definitions

Quick Start

Development Setup

git clone https://github.com/davidromeo/tradeblocks.git
cd tradeblocks
npm install
npm run dev              # Web dashboard at http://localhost:3000

MCP Server

# Run directly with npx
npx tradeblocks-mcp ~/Trading/backtests

# Or from source
npm run build -w packages/mcp-server
node packages/mcp-server/server/index.js ~/Trading/backtests

Testing

npm test                 # All tests
npm test -- path/to/file.test.ts    # Single file
npm run test:coverage    # Coverage report

Documentation

Guide Description
Getting Started Installation, env vars, first import
Market Data CSV import, Massive API, enrichment
MCP Tools Complete tool reference by category
Architecture Data flow, schemas, key patterns
Development Guide Contributing, local dev setup
MCP Server Installation, platform configuration
Usage Guide Tool reference, example workflows
Agent Skills Guided conversational analysis

Data Format

Both the web dashboard and MCP server accept CSV exports from platforms like Option Omega. Each block contains:

  • tradelog.csv (required) - Trade history with P/L, dates, strategy name
  • dailylog.csv (optional) - Daily portfolio values for enhanced drawdown calculations
  • reportinglog.csv (optional) - Actual/reported trades for backtest vs live comparison

Files are auto-detected by column headers, not filenames. See Usage Guide for format details.

Features Overview

Web Dashboard

  • Performance dashboards with equity curves, drawdowns, monthly returns
  • Risk tooling: Monte Carlo simulator, position sizing, correlation analysis
  • Block-based organization for multiple strategies
  • Client-side storage (IndexedDB) - data stays on your machine

MCP Server

  • Tools for statistics, simulations, walk-forward analysis, and SQL queries
  • SQL analytics layer (run_sql + describe_database) for flexible data exploration
  • Massive.com API integration for automated market data import
  • Market data import and enrichment (import_market_csv + enrich_market_data)
  • Trade replay with MFE/MAE analysis using historical option minute bars
  • Lookahead-free trade enrichment with market context (VIX regimes, intraday timing)
  • Works with Claude Desktop, Claude Code, Codex CLI, Gemini CLI, ChatGPT, Google AI Studio
  • Agent skills for guided strategy health checks and portfolio recommendations

Contributing

  1. Create a feature branch
  2. Update or add tests when behavior changes
  3. Run npm run lint and npm test before opening a pull request

License

MIT

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About tradeblocks

How do I install tradeblocks?

Run npx tradeblocks-mcp, then add the server to your MCP client's configuration.

Is tradeblocks safe to use with an AI agent?

Its trust score is 42 out of 100 (fair). It passes 1 of the 2 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is tradeblocks still maintained?

Yes — the last commit was 2 days ago. The repository has 49 stars and 0 forks.