mcp-server
v0.1.3The stock market, in SQL — scan, replay, or subscribe across ~12k US tickers and top 100 cryptos.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
tickerbot_list_tickers
List active tickers from the Tickerbot universe (~12,000 US equities + top 100 crypto). Use `tickers` for bulk lookup of named symbols (returns full rows); otherwise walks the universe alphabetically with `cursor` pagination. Supports filters: search, asset_type, exchange, sector, min_market_cap.
| Parameter | Type | Description |
|---|---|---|
asset_type | string | Filter by asset type (e.g. "equity", "crypto"). |
cursor | string | Opaque cursor from a prior response. |
exchange | string | Filter by exchange (e.g. "XNYS", "XNAS", "BATS"). |
limit | integer | Page size. Max 1000. Default 50. |
min_market_cap | number | Minimum market cap in USD. Orders results by market_cap desc. |
search | string | Case-insensitive substring filter on ticker/name. Orders results by market_cap desc. |
sector | string | Exact-match sector filter (e.g. "Technology"). |
tickers | string | Comma-separated symbols (max 50). When set, returns full rows for these symbols and pagination params are ignored. |
tickerbot_get_ticker
Get the full current row for one ticker — every column on the schema (price, change, indicators like rsi_14, every boolean flag like above_sma_50, fundamentals like pe_ratio). Pass `asof` (YYYY-MM-DD) for the row as it stood at the close of a past trading day.
| Parameter | Type | Description |
|---|---|---|
ticker * | string | Symbol. Case-insensitive. Equities: bare symbol (AAPL). Crypto: bare symbol (BTC). |
asof | string | Optional YYYY-MM-DD. Returns the row at close of that day. |
tickerbot_get_ticker_history
Time-travel: get the full wide row for one ticker as it stood at a past date. Returns indicators, boolean flags, and the most-recent fundamentals known on that date. Use for backtests and reconstructions.
| Parameter | Type | Description |
|---|---|---|
asof * | string | Target date as YYYY-MM-DD or full ISO timestamp. Returns the most-recent daily snapshot on or before this date. |
ticker * | string | Symbol. |
tickerbot_get_ticker_events
Get the discrete event log for one ticker (splits, dividends, analyst rating changes), newest-first. Optional date window and event-kind filter.
| Parameter | Type | Description |
|---|---|---|
ticker * | string | Symbol. |
cursor | string | Opaque cursor. |
from | string | Earliest event timestamp (inclusive). YYYY-MM-DD or ISO. |
kind | string | Filter by event kind. |
limit | integer | Page size. Max 1000. Default 100. |
to | string | Latest event timestamp (inclusive). YYYY-MM-DD or ISO. |
tickerbot_list_signals_catalog
List the unified signal catalog: every built-in column on the schema (`kind: builtin`) plus the caller's custom signals (`kind: expression`). Use to discover what `q=` clauses and signal names are available before composing a scan.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Opaque cursor. |
kind | string | Filter by kind. Omit for both. |
limit | integer | Page size for custom slice. Max 200. Default 50. |
tickerbot_get_signals_match
Find tickers that match a single signal right now (or at a past date with `asof`). Booleans need no condition (returns tickers where flag is true). Numerics need a `condition` like ">70" or "<=200". Sorted by signal value desc for numerics.
| Parameter | Type | Description |
|---|---|---|
signal * | string | Column name on ticker. E.g. golden_cross_today, above_sma_50, rsi_14, market_cap, pe_ratio. |
asof | string | Optional YYYY-MM-DD. Match against historical daily state. |
condition | string | Required for numerics. Single bound: <op><value>, ops in (>, >=, =, !=, <, <=). E.g. ">70". |
cursor | string | Opaque cursor. |
limit | integer | Page size. Max 200. Default 50. |
universe | string | Optional universe slug. |
tickerbot_get_signal_history
Get the time series of one signal for one ticker at a chosen interval (1m, 1h, 1d, 1w). Use for charting a numeric signal's evolution or seeing when a boolean flag was on/off across time.
| Parameter | Type | Description |
|---|---|---|
interval * | string | Bar interval. |
signal * | string | Column name. |
ticker * | string | Symbol. |
cursor | string | Opaque cursor. |
from | string | Earliest bar timestamp. YYYY-MM-DD or ISO. |
limit | integer | Page size. |
to | string | Latest bar timestamp. YYYY-MM-DD or ISO. |
tickerbot_list_signal_events
Get the list of discrete firings of a boolean signal for one ticker (each time the flag went true). Newest-first, paginated.
| Parameter | Type | Description |
|---|---|---|
signal * | string | Boolean signal column. |
ticker * | string | Symbol. |
cursor | string | Opaque cursor. |
from | string | Earliest event timestamp. |
limit | integer | Page size. |
to | string | Latest event timestamp. |
tickerbot_scan
Run a SQL WHERE clause against the live ticker universe (or against a past trading day with `asof`). Returns matching tickers sorted by chosen column. The `q` grammar is a flat WHERE: column names from the schema, AND/OR/NOT, comparison operators, numeric/string literals. No JOIN, GROUP BY, or subqueries. Example: `gap_up AND market_cap < 2000000000 AND NOT earnings_this_week`.
| Parameter | Type | Description |
|---|---|---|
q * | string | SQL WHERE expression. Max 4000 chars. Identifiers are bare column names from the schema (e.g. above_sma_50, rsi_14, market_cap). Numeric literals fully specified (no 1.5B shorthand). |
asof | string | Optional YYYY-MM-DD. Run the WHERE against historical close-of-day snapshot for this date. |
cursor | string | Opaque cursor. |
dir | string | Sort direction. |
fields | string | Comma-separated extra columns to include in each result row beyond the default set. |
limit | integer | Page size. Max 100. Default 50. |
order | string | Sort column. Default day_change_pct. |
universe | string | Optional universe slug (top_10, top_100, or your own). |
tickerbot_list_universes
List the caller's saved universes (named ticker sets to scope scans). Each universe has a slug, name, and ticker count.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Opaque cursor. |
limit | integer | Page size. |
tickerbot_get_universe
Get one universe by slug, including its ticker list.
| Parameter | Type | Description |
|---|---|---|
id * | string | Universe slug. |
tickerbot_create_universe
Create a new universe (named set of tickers) for scoping future scans. Returns the new universe with its assigned slug.
| Parameter | Type | Description |
|---|---|---|
name * | string | Human-readable name. |
tickers * | array | List of ticker symbols. |
tickerbot_create_custom_signal
Save a SQL WHERE expression as a named custom signal the caller can reference by name in future scans. E.g. name="oversold_with_volume", expr="rsi_14 < 30 AND volume_ratio_20d > 2".
| Parameter | Type | Description |
|---|---|---|
expr * | string | SQL WHERE expression. Same grammar as scan `q`. |
name * | string | Snake_case identifier for the signal (lowercase letters, digits, underscore). |
description | string | Optional human description. |
tickerbot_search_news
Search the news archive (back to 2015) with a SQL WHERE clause. Plan-gated: Scale+ required for the archive. Columns on news_article include `time_published`, `title`, `summary`, `source`, `source_domain`, `category`, `authors`, `topics`, `tickers` (array), `overall_sentiment_score`, `overall_sentiment_label`, `url`. To filter to one ticker use `'NVDA' = ANY(tickers)` or the auto-unnest alias `tk = 'NVDA'`. Example: `q=tk='NVDA' AND time_published >= NOW() - INTERVAL '1 day'`. Supports group_by + having for aggregation (e.g. count of articles per day).
| Parameter | Type | Description |
|---|---|---|
q * | string | SQL WHERE on news_article. Required. |
cursor | string | Opaque cursor. |
dir | string | Sort direction. |
group_by | string | Comma-separated columns for aggregation (e.g. `date_trunc('day', time_published)`). |
having | string | WHERE-style filter on aggregates. Requires group_by. |
limit | integer | Page size. |
order | string | Sort column or SELECT alias. Default time_published (non-aggregate) or volume (aggregate). |
select | string | Comma-separated columns to include. Defaults to a slim set. |
tickerbot_subscribe_scan
Register a webhook that fires when matches for a scan query change. Pass `target_url` to deliver to your own URL (Discord, Slack, server endpoint); omit for in-app delivery in the dashboard. `cadence` is plan-gated (Hobby max 5m, Pro+ 1m). Use to satisfy "alert me when this happens" prompts.
| Parameter | Type | Description |
|---|---|---|
q * | string | SQL WHERE expression — same grammar as scan. |
cadence | string | Evaluation cadence. |
name | string | Human-readable label. Defaults to a truncated version of the query. |
target_url | string | Optional https URL to POST matches to. Omit for in-app delivery. |
universe | string | Optional universe slug to scope the watch. |
tickerbot_subscribe_signal
Register a webhook that fires when a signal turns true (booleans) or its value crosses a condition (numerics). Optional `ticker` restricts to one symbol; omit to watch the whole universe. Pass `target_url` for outbound delivery or omit for in-app.
| Parameter | Type | Description |
|---|---|---|
signal * | string | Column name (e.g. golden_cross_today, rsi_14). |
cadence | string | Evaluation cadence. |
condition | string | Required for numerics: single bound like ">70" or "<=200". Ignored for booleans. |
name | string | Human-readable label. |
target_url | string | Optional https URL for delivery; omit for in-app. |
ticker | string | Optional ticker to restrict the watch to one symbol. |
universe | string | Optional universe slug. |
tickerbot_subscribe_ticker
Register a webhook that fires when one ticker matches a condition. `condition` is a SQL WHERE-clause fragment scoped to that ticker (e.g. "rsi_14 > 70 AND relative_volume > 2"). Pass `target_url` for outbound delivery or omit for in-app.
| Parameter | Type | Description |
|---|---|---|
condition * | string | SQL WHERE fragment evaluated for this ticker (e.g. "rsi_14 > 70 AND gap_up"). |
ticker * | string | Symbol. |
cadence | string | Evaluation cadence. |
name | string | Human-readable label. |
target_url | string | Optional https URL for delivery; omit for in-app. |
tickerbot_list_webhooks
List the caller's active webhook subscriptions (rules created via the subscribe tools).
| Parameter | Type | Description |
|---|---|---|
cursor | string | Opaque cursor. |
limit | integer | Page size. |
tickerbot_delete_webhook
Delete a webhook subscription by id. Use after listing webhooks when the user wants to remove an alert.
| Parameter | Type | Description |
|---|---|---|
id * | string | Webhook id (looks like `wh_…`). |