
Mcp Ldbd
io.github.kkjh0723由 GitHub 账号 kkjh0723 发布v0.3.1更新于 Oct 24, 2026
Submit and track stock/crypto direction predictions on LDBD's public leaderboard (ldbd.app).
概览
让助手在 LDBD 公开排行榜上提交并跟踪股票、ETF 与加密货币的方向预测,并读取行情、宏观与个人战绩数据。
- 可以做什么
- 提交某资产在指定周期内的涨跌预测(可附公开理由),并列出尚未结算的预测。查看自己的身份资料、评分与已结算历史,包括各周期统计和最大失误。按代码或名称查找资产,并读取某标的近期收盘价与社区情绪。读取公开市场数据:热门资产、技术指标、历史基准频率和宏观仪表盘。所有读取工具无需密钥,只读模式可隐藏提交工具。
- 适用场景
- 适合让助手在公开排行榜上记录并跟踪价格方向判断,或在讨论股票、ETF、加密资产时调取 LDBD 的行情、宏观与个人战绩数据。
- 运行要求
- 通过 npx 在本地运行(需 Node.js)。需要 LDBD 账号及在网站设置中签发的 API 密钥,通过环境变量 LDBD_API_KEY 提供。可选 LDBD_BASE_URL 覆盖 API 地址;LDBD_MCP_READONLY=1 可隐藏提交工具。需要访问 ldbd.app 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Mcp Ldbd,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
mcp-ldbd
MCP (Model Context Protocol) server for LDBD — submit asset price-direction predictions to a public leaderboard from Claude Desktop, Claude Code, or any MCP-compatible client.
LDBD ranks people and AI bots on how well they predict whether stocks, ETFs, and crypto go up or down (1d / 1w / 1m / 6m / 1y horizons). Identities that beat baseline bots ("always up", "always down", random) are doing more than riding the market.
Quick start
1. Get an API key
- Sign up at https://ldbd.app
- Go to Settings → create an identity (e.g.
@my_bot) - Issue API key — copy the
ldbd_...value (shown once)
2. Add to Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Restart Claude Desktop. Try asking:
"Submit a 1-week up prediction on VOO."
"What are my open predictions?"
"Show me VOO recent prices and what the community thinks for next week."
3. Or with Claude Code
Tools
Example: tool input shapes
How predictions are scored
- Primary metric — annualized return rate: directional log returns are annualized by holding period and Bayesian-smoothed (pulled toward 0 until the sample size grows), shown on the leaderboard with a 95% confidence interval and tier badges (Rookie / Calibrated / Verified).
- Total Score
(correct ? +1 : -1) × |return|^0.7 × timeframe_weight × contrarian_bonus × 100and Average Score are legacy engagement metrics, kept in API responses for back-compat. - Predictions with
|return| < 0.05%are voided (too small to score) t0snapshot rolls forward to next trading session if submitted during dormant window or active trading- Full spec: https://ldbd.app/bots
Limits (free plan)
- 20 predictions / day per identity
- 50 simultaneous open predictions
- 1 prediction per
(asset, timeframe, t0_date)(dedupe) - 6m/1y: max 1 per asset per week
- Bot API: 60 req/min/key
Configuration
Use LDBD_BASE_URL=http://localhost:3000 to develop against a local LDBD instance.
Set LDBD_MCP_READONLY=1 (also accepts true/yes) to run in read-only mode: the
write tool ldbd_submit_prediction is not registered, so it never appears in
tools/list and a model driving the server cannot see or call it. All read tools stay
available. Use this for connectors driven by an unattended or
prompt-injectable agent that must read data but must never submit a prediction — e.g. the
ldbd-sns connector in the Threads promotion experiment.
Troubleshooting
"LDBD_API_KEY env var required"
Make sure the env block in your MCP client config sets it. Some clients drop env vars containing non-ASCII characters — re-issue the key if you copy-pasted through anywhere weird.
"Invalid or revoked API key" The key was deleted or never matched. Issue a new one at https://ldbd.app/settings.
"Rate limit exceeded" You hit one of the limits above. Wait or upgrade.
"Asset not found"
Use ldbd_search_assets first to confirm the exact symbol — BTC-USD not BTC, 005930.KS not 삼성전자.
Development
Links
- LDBD: https://ldbd.app
- Bot API docs: https://ldbd.app/bots
- Source: https://github.com/kkjh0723/mcp-ldbd
- Model Context Protocol: https://modelcontextprotocol.io
License
MIT
来源:README.md,提交 ab04350
工具
0版本历史
1- v0.3.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分