keydata.shop: Polymarket and exchange order flow

Free SQL over Polymarket 5/15-min crypto up/down markets with Binance, Bybit, OKX, Coinbase data

我该使用它吗

质量与安全性

B
描述质量
95%
模式完整度
66%
命名质量
85%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~1,884token 数(工具定义)
~1.4 KB典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 1.47%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "keydata": {
      "url": "https://keydata.shop/mcp"
    }
  }
}

远程端点

https://keydata.shop/mcpstreamable-http

它能做什么

工具清单

工具(8)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢list_tables

List the tables, the period covered and the limits per query. Call it first.

输入模式

{
  "type": "object",
  "properties": {},
  "title": "list_tablesArguments"
}

输出模式

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "list_tablesOutput"
}
🟢describe_table(table)

Columns of a table: type, how the 10-second bar was rolled up, and what the column means. Numbered book levels (bid_price_00 .. bid_price_09) are listed once.

输入模式

{
  "type": "object",
  "properties": {
    "table": {
      "title": "Table",
      "type": "string"
    }
  },
  "required": [
    "table"
  ],
  "title": "describe_tableArguments"
}

输出模式

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "describe_tableOutput"
}
🟢exchange_bars(coin, exchange, instrument_class, interval, start, ...)

OHLC bars of one exchange instrument: mid open/high/low/close, time-weighted spread (bps), trade OHLC, base and quote volume, taker-buy share of the quote volume, trades and messages. Times are UTC; the default window is the last day. Coinbase has spot only.

输入模式

{
  "type": "object",
  "properties": {
    "coin": {
      "enum": [
        "btc",
        "eth",
        "sol",
        "xrp",
        "doge",
        "bnb",
        "hype"
      ],
      "title": "Coin",
      "type": "string"
    },
    "exchange": {
      "default": "binance",
      "enum": [
        "binance",
        "bybit",
        "okx",
        "coinbase"
      ],
      "title": "Exchange",
      "type": "string"
    },
    "instrument_class": {
      "default": "perp",
      "enum": [
        "spot",
        "perp"
      ],
      "title": "Instrument Class",
      "type": "string"
    },
    "interval": {
      "default": "1m",
      "enum": [
        "10s",
        "1m",
        "5m",
        "15m",
        "1h",
        "4h",
        "1d"
      ],
      "title": "Interval",
      "type": "string"
    },
    "start": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Start"
    },
    "end": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "End"
    }
  },
  "required": [
    "coin"
  ],
  "title": "exchange_barsArguments"
}

输出模式

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "exchange_barsOutput"
}
🟢compare_venues(coin, start, end)

Side-by-side market quality of every exchange instrument of a coin: mean and median spread (bps), quote volume, trades, mean depth within 5 bps (both sides), book reach, share of silent bars and of bars with a provably valid book. Default window: every day served.

输入模式

{
  "type": "object",
  "properties": {
    "coin": {
      "enum": [
        "btc",
        "eth",
        "sol",
        "xrp",
        "doge",
        "bnb",
        "hype"
      ],
      "title": "Coin",
      "type": "string"
    },
    "start": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Start"
    },
    "end": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "End"
    }
  },
  "required": [
    "coin"
  ],
  "title": "compare_venuesArguments"
}

输出模式

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "compare_venuesOutput"
}
🟢polymarket_markets(coin, interval_min, start, end, limit)

Markets of one up/down series in a window (default: the last day): start and end, the settled outcome, the Up token's mid at the start, 60 s before the end (the last bar that closed by then) and at the end, its mean spread (probability points), and volume and trades of both tokens.

输入模式

{
  "type": "object",
  "properties": {
    "coin": {
      "enum": [
        "btc",
        "eth",
        "sol",
        "xrp",
        "doge",
        "bnb",
        "hype"
      ],
      "title": "Coin",
      "type": "string"
    },
    "interval_min": {
      "default": 5,
      "enum": [
        5,
        15
      ],
      "title": "Interval Min",
      "type": "integer"
    },
    "start": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Start"
    },
    "end": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "End"
    },
    "limit": {
      "default": 50,
      "title": "Limit",
      "type": "integer"
    }
  },
  "required": [
    "coin"
  ],
  "title": "polymarket_marketsArguments"
}

输出模式

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "polymarket_marketsOutput"
}
🟢expiry_calibration(coin, interval_min, seconds_before_end, buckets, start, ...)

How well the Polymarket price predicts the outcome: the Up token's mid N seconds before each market's end (from the last 10-second bar that had closed by then, so no look-ahead), grouped into probability buckets, against the share of markets that settled Up. Also the Brier score. coin and interval_min narrow the set; default: every market served.

输入模式

{
  "type": "object",
  "properties": {
    "coin": {
      "anyOf": [
        {
          "enum": [
            "btc",
            "eth",
            "sol",
            "xrp",
            "doge",
            "bnb",
            "hype"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Coin"
    },
    "interval_min": {
      "anyOf": [
        {
          "enum": [
            5,
            15
          ],
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Interval Min"
    },
    "seconds_before_end": {
      "default": 60,
      "title": "Seconds Before End",
      "type": "integer"
    },
    "buckets": {
      "default": 10,
      "title": "Buckets",
      "type": "integer"
    },
    "start": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Start"
    },
    "end": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "End"
    }
  },
  "title": "expiry_calibrationArguments"
}

输出模式

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "expiry_calibrationOutput"
}
🟢sample_rows(table, start, limit, columns)

First rows of a table from `start` (UTC; default: the first bar). limit 1-50. `columns` picks columns by name; default all (the exchange tables are 83 columns wide).

输入模式

{
  "type": "object",
  "properties": {
    "table": {
      "title": "Table",
      "type": "string"
    },
    "start": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Start"
    },
    "limit": {
      "default": 10,
      "title": "Limit",
      "type": "integer"
    },
    "columns": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Columns"
    }
  },
  "required": [
    "table"
  ],
  "title": "sample_rowsArguments"
}

输出模式

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "sample_rowsOutput"
}
🟢run_sql(sql, max_rows)

Run one read-only DuckDB SELECT over the tables of list_tables (cex, polymarket, chainlink and the per-source views such as binance_btc or polymarket_btc_5m). Filter on ts and aggregate in SQL: at most max_rows rows come back (up to the server's cap), and the query is stopped at the timeout. DuckDB functions such as time_bucket, arg_max, quantile_cont, corr, regr_slope and window functions are available; file and network access are not.

输入模式

{
  "type": "object",
  "properties": {
    "sql": {
      "title": "Sql",
      "type": "string"
    },
    "max_rows": {
      "default": 200,
      "title": "Max Rows",
      "type": "integer"
    }
  },
  "required": [
    "sql"
  ],
  "title": "run_sqlArguments"
}

输出模式

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "run_sqlOutput"
}

社区

评价此服务器

证据

最近观测

已验证未记录版本8 个工具