Agent Trading Journal logo

Agent Trading Journal

Logs screenshot-based trades, applies custom rules, imports statements, and analyzes results in a local SQLite journal.

Install Agent Trading Journal

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "agent-trading-journal": {
      "command": "npx",
      "args": [
        "-y",
        "agent-trading-journal"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio agent-trading-journal -- npx -y agent-trading-journal

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y agent-trading-journal

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The agent-trading-journal MCP server lets an AI agent record trades from chart screenshots, apply a trader-defined checklist, and store results locally. It runs over stdio, uses SQLite and a local screenshots directory, and provides a dashboard on localhost for review. Use it for discretionary trading journals, backtests, forward tests, or imported trade histories; it does not place trades or provide signals.

Use cases

  • Log trades from chart screenshots
  • Check entries against custom strategy rules
  • Import historical trading statements
  • Review backtests and live sessions
  • Monitor configured account risk limits

Key features

  • Screenshot-based trade logging
  • Custom strategy fields and rule checklists
  • SQLite storage with local dashboard
  • Trading statement imports
  • R-based statistics and review exports
  • Session and account risk checks

Tools32

What Agent Trading Journal lets your agent do. Expand a tool for its parameters.

Verified live~4.7k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 67d

What it can do

From the 32 tools this server returned when we ran it.

Can delete or modify data · 2Makes network requests · 1Read-only tools · 30
Network at startup3 connections
Files written at startup3
Install scriptsNone
npm provenanceNot published
Package age37 days
Maintainers1

Observed 2026-10-31 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · agent-trading-journal (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads316Package downloads in the last 30 days.
Last commit2mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed32Callable tools this server registers over MCP.

How Agent Trading Journal works

What agent-trading-journal does

The agent-trading-journal MCP server turns an AI agent into the data-entry interface for a local trading journal. You can provide a chart screenshot and ask the agent to log the trade. The agent can populate strategy-specific fields, evaluate the configured rules, and attach the image to the journal entry. Trades can be reviewed by session, account, strategy, instrument, and result in R multiples.

The journal is configured around the trader's own process rather than a fixed form. An onboarding workflow asks about markets, risk limits, bias, setups, entries, stops, targets, management, and no-trade conditions. The answers become custom fields and a checklist of rules. Rule adherence can then be compared with trade expectancy, while skipped setups can also be recorded for later review.

How it works

The package runs as an MCP server over stdio and does not call an LLM itself. The connected client supplies the AI capabilities, while the server stores journal data in SQLite and images in a local screenshots directory. A dashboard can run at http://localhost:3777; by default it binds to 127.0.0.1.

Sessions represent live trading, backtesting, or forward testing and may be associated with an account. Accounts can include limits such as daily loss, maximum drawdown, trades per day, and loss streak. The check_risk tool reports against those limits. Strategy changes create new versions, so older trades retain the fields and rules used when they were logged.

The agent-trading-journal MCP server also accepts statement imports from supported exports, including MetaTrader 4/5, TradingView, IBKR, ThinkorSwim, NinjaTrader, Tradovate, TopstepX, Webull, DAS, TradeZella, Tradervue, and generic CSV files.

Setup and configuration

Node.js 22 or newer is required. For a stdio client, configure the command npx with arguments -y and agent-trading-journal. The repository provides setup output for Claude Code, Claude Desktop, and Codex. After connecting, ask the agent to set up the journal and confirm the proposed profile, fields, and rules.

By default, data is stored under ~/.agent-trading-journal, including journal.db and screenshots/. JOURNAL_DATA_DIR changes the base directory; JOURNAL_DB and JOURNAL_SCREENSHOTS override individual paths. JOURNAL_PORT changes the dashboard port, and JOURNAL_WEB=1 starts the dashboard with the MCP process. Additional dashboard language files can be placed in the directory selected by JOURNAL_LOCALES_DIR.

Tools and capabilities

The agent-trading-journal MCP server exposes tools for:

  • Setup, onboarding, profiles, presets, and versioned strategies.
  • Accounts, risk checks, sessions, trade creation, editing, deletion, and queries.
  • Screenshot attachments, lessons, statistics, read-only SQL, and Markdown review exports.
  • Statement imports and dashboard start, stop, and status operations.

Clients with MCP prompt support can use onboarding, screenshot-based trade logging, weekly review, and pre-session checks. Other clients can access the same workflows through get_workflow. The command-line interface also supports demo data, dashboard startup, setup snippets, and file imports.

Limitations and notes

This is a recording and analysis tool, not an execution system. It does not connect to brokers to place orders, generate trading signals, or provide financial advice. Chart interpretation by the agent can be incorrect, so logged values remain visible and editable.

The journal keeps data on the local machine in the configured SQLite file and screenshot folder; the dashboard is local by default. Backups can be made by copying the data directory. Demo mode uses a separate directory and generated data, rather than a real trading account.

The agent-trading-journal MCP server requires an MCP client to provide the AI interaction. No separate Anthropic or OpenAI API key is used by the journal itself. Presets are starting templates, not trading recommendations, and the edge score is withheld until at least five trades exist.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Agent Trading Journal

agent-trading-journal is an MCP server that connects your AI coding or chat agent to a local SQLite trading journal. Its main tools log and edit trades, attach screenshots, import broker statements, check risk, apply strategy rules, query statistics, and run review workflows without placing trades or calling an LLM.

Install it by configuring your MCP client to run Node.js through `npx -y agent-trading-journal`. Node.js 22 or newer is required. The `agent-trading-journal setup` command prints configuration snippets for Claude Code, Claude Desktop, and Codex.

Yes, agent-trading-journal works with Cursor through a standard stdio MCP configuration. Add `npx` as the command and `-y agent-trading-journal` as its arguments, then use the connected agent for onboarding, trade logging, reviews, and other supported workflows.

Yes, it can import MetaTrader 4/5 and TradingView exports, along with supported formats from IBKR, ThinkorSwim, NinjaTrader, Tradovate, TopstepX, Webull, DAS, TradeZella, Tradervue, and generic CSV files. Imports are available through the MCP tool or the command-line import command.

No, it only records and analyzes trading activity. It does not execute orders, connect to brokers for execution, generate signals, or provide financial advice. Risk checks warn about configured limits, but the trader remains responsible for every decision.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAgent Trading Journal AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agent-trading-journal?style=directory)](https://allmcps.com/mcp/agent-trading-journal)
HTML Embed
<a href="https://allmcps.com/mcp/agent-trading-journal"><img src="https://allmcps.com/api/badge/agent-trading-journal?style=directory" alt="Agent Trading Journal on AllMCPs" /></a>