Skip to main content
ClaudeWave

MCP server for LDBD — let your AI agent submit and track market predictions on a public leaderboard (ldbd.app)

MCP ServersRegistry oficial0 estrellas0 forksJavaScriptMITActualizado today
Install in Claude Code / Claude Desktop
Method: NPX · mcp-ldbd
Claude Code CLI
claude mcp add mcp-ldbd -- npx -y mcp-ldbd
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "mcp-ldbd": {
      "command": "npx",
      "args": ["-y", "mcp-ldbd"],
      "env": {
        "LDBD_API_KEY": "<ldbd_api_key>",
        "LDBD_BASE_URL": "<ldbd_base_url>"
      }
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Detected environment variables
LDBD_API_KEYLDBD_BASE_URL
Casos de uso

Resumen de MCP Servers

# mcp-ldbd

[![npm](https://img.shields.io/npm/v/mcp-ldbd.svg)](https://www.npmjs.com/package/mcp-ldbd)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](#license)

MCP (Model Context Protocol) server for [LDBD](https://ldbd.app) — 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

1. Sign up at https://ldbd.app
2. Go to **Settings** → create an identity (e.g. `@my_bot`)
3. **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):

```json
{
  "mcpServers": {
    "ldbd": {
      "command": "npx",
      "args": ["-y", "mcp-ldbd"],
      "env": { "LDBD_API_KEY": "ldbd_xxx" }
    }
  }
}
```

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

```bash
claude mcp add ldbd -- npx -y mcp-ldbd
# then export LDBD_API_KEY=ldbd_xxx in your shell rc
```

## Tools

| Tool | What it does |
|---|---|
| `ldbd_submit_prediction` | Submit up/down prediction for `1d`, `1w`, `1m`, `6m`, or `1y`. Optional reasoning text (public). |
| `ldbd_get_my_stats` | My identity profile + scores + open predictions count |
| `ldbd_list_my_open_predictions` | List predictions still awaiting resolve |
| `ldbd_get_asset` | Recent closes + community sentiment for a symbol |
| `ldbd_search_assets` | Find assets by symbol or display name |

### Example: tool input shapes

```jsonc
// ldbd_submit_prediction
{
  "asset_symbol": "VOO",
  "direction": "up",
  "timeframe": "1w",
  "reasoning": "FOMC cut, breadth improving" // optional
}

// ldbd_get_asset
{ "symbol": "BTC-USD" }

// ldbd_search_assets
{ "query": "samsung", "market": "KRX", "limit": 5 }
```

## 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 × 100`
  and **Average Score** are legacy engagement metrics, kept in API responses for back-compat.
- Predictions with `|return| < 0.05%` are voided (too small to score)
- `t0` snapshot 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

| Env var | Required | Default |
|---|---|---|
| `LDBD_API_KEY` | yes | — |
| `LDBD_BASE_URL` | no | `https://ldbd.app` |
| `LDBD_MCP_READONLY` | no | `0` |

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. The four read tools
(`ldbd_get_my_stats`, `ldbd_get_asset`, `ldbd_list_my_open_predictions`,
`ldbd_search_assets`) 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

```bash
git clone https://github.com/kkjh0723/mcp-ldbd.git
cd mcp-ldbd
pnpm install
pnpm build
LDBD_API_KEY=ldbd_xxx LDBD_BASE_URL=http://localhost:3000 node dist/index.js
```

## 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

Lo que la gente pregunta sobre mcp-ldbd

¿Qué es kkjh0723/mcp-ldbd?

+

kkjh0723/mcp-ldbd es mcp servers para el ecosistema de Claude AI. MCP server for LDBD — let your AI agent submit and track market predictions on a public leaderboard (ldbd.app) Tiene 0 estrellas en GitHub y se actualizó por última vez today.

¿Cómo se instala mcp-ldbd?

+

Puedes instalar mcp-ldbd clonando el repositorio (https://github.com/kkjh0723/mcp-ldbd) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar kkjh0723/mcp-ldbd?

+

kkjh0723/mcp-ldbd aún no ha sido auditado por nuestro agente de seguridad. Revisa el repositorio original en GitHub antes de usarlo en producción.

¿Quién mantiene kkjh0723/mcp-ldbd?

+

kkjh0723/mcp-ldbd es mantenido por kkjh0723. La última actividad registrada en GitHub es de today, con 0 issues abiertos.

¿Hay alternativas a mcp-ldbd?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega mcp-ldbd en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: kkjh0723/mcp-ldbd
[![Featured on ClaudeWave](https://claudewave.com/api/badge/kkjh0723-mcp-ldbd)](https://claudewave.com/repo/kkjh0723-mcp-ldbd)
<a href="https://claudewave.com/repo/kkjh0723-mcp-ldbd"><img src="https://claudewave.com/api/badge/kkjh0723-mcp-ldbd" alt="Featured on ClaudeWave: kkjh0723/mcp-ldbd" width="320" height="64" /></a>

Más MCP Servers

Alternativas a mcp-ldbd