TJ

tapelog-journal/tapelog-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

0 stars 0 forks 质量 85 趋势 14MIT

开源MCP服务器:为DAS交易者和Robinhood CSV提供的私人AI交易期刊教练。统计数据、行为泄露、期间比较。非投资建议。

概览

一个开源的模型上下文协议服务器,允许Claude、ChatGPT、Cursor或任何MCP客户端分析经纪商导出。它解析和CSV,重建往返数据,并报告你的统计数据以及结果最弱的行为模式:一天中的时间、亏损后的大小、保持时间、符号和星期几。 - 没有经纪人登录,没有云端。填充存储在你机器上的~/.tapelog/fills.json。- MIT授权。- TapeLog描述你已经做过的事情。它从不建议交易。 TapeLog 是一种教育性、记录保存工具。它是 ,而 TapeLog 是经纪交易商。它不建议买卖或持有任何证券,不提供价格目标、信号或市场预测,也不进行交易。过去的结果不预测未来结果。 把这个添加到claude_desktop_config.json(设置,然后是开发者,然后编辑配置): 在 ~/.cursor/mcp.json 中添加同样的 mcpServers 块。 Claude mcp add tapelog -- uvx --from git+https://github.

概述(AI 翻译)

一个开源的模型上下文协议服务器,允许Claude、ChatGPT、Cursor或任何MCP客户端分析你自己的经纪商导出。它解析DAS Trader Pro和Robinhood CSV,重建往返交易,并报告你的统计数据以及结果最弱的行为模式:一天中的时间、亏损后的大小、持有时间、符号和星期几。

  • 本地和私密: 无经纪人登录,无云端登录。填充存储在你机器的~/.tapelog/fills.json中。
  • 免费: MIT授权。
  • 流程,不是选择: TapeLog描述的是你已经做过的事情。它从不建议交易。

免责声明: TapeLog 是一个教育性、记录工具。它不是投资建议,TapeLog 也不是注册投资顾问或经纪自营商。它不建议买卖或持有任何证券,不提供价格目标、信号或市场预测,也不进行交易。过去的结果不预测未来结果。

工具

工具 它的作用
import_fills 导入DAS交易窗口CSV、Robinhood账户活动CSV,或通用CSV(date,time,symbol,side,qty,price,fees)。重复内容被跳过。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

TapeLog MCP: a private AI trade-journal coach

An open-source Model Context Protocol server that lets Claude, ChatGPT, Cursor or any MCP client analyze your own broker exports. It parses DAS Trader Pro and Robinhood CSVs, rebuilds round trips, and reports your stats plus the behavioral patterns where your results were weakest: time of day, sizing after a loss, hold time, symbol and day of week.

  • Local and private: no broker login, no cloud. Fills are stored in ~/.tapelog/fills.json on your machine.
  • Free: MIT licensed.
  • Process, not picks: TapeLog describes what you already did. It never suggests trades.

Disclaimer: TapeLog is an educational, record-keeping tool. It is not investment advice, and TapeLog is not a registered investment adviser or broker-dealer. It does not recommend buying, selling or holding any security, does not give price targets, signals or market predictions, and does not place trades. Past results don’t predict future results.

Tools

Tool What it does
import_fills Import a DAS Trader Trades-window CSV, a Robinhood account activity CSV, or a generic CSV (date,time,symbol,side,qty,price,fees). Duplicates are skipped.
get_stats Net P&L, win rate, profit factor, expectancy, average win and loss, payoff ratio, max drawdown, losing streak, hold time, and PDT day-trade count over the last 5 business days
find_leaks Descriptive breakdowns of your weakest groups, for example “Your 18 trades entered 11:00-12:00 netted -$2,039 (win rate 11%)” or “After a loss your position was 2.1x larger”
compare_periods Period A vs period B, such as last week vs this week
weekly_habit_report This week vs your prior weeks: which habits appeared and which faded, with counts (size-up after a loss, losers held longer than winners, overtrading bursts, a time-of-day slump). For example “Size-up after a loss: this showed up 8 times this week vs 0 per week before.” Returns JSON plus a rendered markdown report.
list_trades Your reconstructed round trips
clear_data Deletes all stored fills (requires confirm=true)

Install

You need Python 3.10+ and uv, or pip.

Claude Desktop: add this to claude_desktop_config.json (Settings, then Developer, then Edit Config):

{
  "mcpServers": {
    "tapelog": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/tapelog-journal/tapelog-mcp", "tapelog-mcp"]
    }
  }
}

Cursor: add the same block under mcpServers in ~/.cursor/mcp.json.

Claude Code: claude mcp add tapelog -- uvx --from git+https://github.com/tapelog-journal/tapelog-mcp tapelog-mcp

在 GitHub 查看完整 README

安装

uvx --from git+https://github.com/tapelog-journal/tapelog-mcp tapelog-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "tapelog": { "command": "uvx", "args": ["--from", "git+https://github.com/tapelog-journal/tapelog-mcp", "tapelog-mcp"] } } }