mcp-server

v0.1.3
io.github.tickerbot/mcp-server Checked 1 hour ago Published 5 months ago

The 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.

ParameterTypeDescription
asset_typestringFilter by asset type (e.g. "equity", "crypto").
cursorstringOpaque cursor from a prior response.
exchangestringFilter by exchange (e.g. "XNYS", "XNAS", "BATS").
limitintegerPage size. Max 1000. Default 50.
min_market_capnumberMinimum market cap in USD. Orders results by market_cap desc.
searchstringCase-insensitive substring filter on ticker/name. Orders results by market_cap desc.
sectorstringExact-match sector filter (e.g. "Technology").
tickersstringComma-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.

ParameterTypeDescription
ticker *stringSymbol. Case-insensitive. Equities: bare symbol (AAPL). Crypto: bare symbol (BTC).
asofstringOptional 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.

ParameterTypeDescription
asof *stringTarget date as YYYY-MM-DD or full ISO timestamp. Returns the most-recent daily snapshot on or before this date.
ticker *stringSymbol.

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.

ParameterTypeDescription
ticker *stringSymbol.
cursorstringOpaque cursor.
fromstringEarliest event timestamp (inclusive). YYYY-MM-DD or ISO.
kindstringFilter by event kind.
limitintegerPage size. Max 1000. Default 100.
tostringLatest 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.

ParameterTypeDescription
cursorstringOpaque cursor.
kindstringFilter by kind. Omit for both.
limitintegerPage 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.

ParameterTypeDescription
signal *stringColumn name on ticker. E.g. golden_cross_today, above_sma_50, rsi_14, market_cap, pe_ratio.
asofstringOptional YYYY-MM-DD. Match against historical daily state.
conditionstringRequired for numerics. Single bound: <op><value>, ops in (>, >=, =, !=, <, <=). E.g. ">70".
cursorstringOpaque cursor.
limitintegerPage size. Max 200. Default 50.
universestringOptional 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.

ParameterTypeDescription
interval *stringBar interval.
signal *stringColumn name.
ticker *stringSymbol.
cursorstringOpaque cursor.
fromstringEarliest bar timestamp. YYYY-MM-DD or ISO.
limitintegerPage size.
tostringLatest 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.

ParameterTypeDescription
signal *stringBoolean signal column.
ticker *stringSymbol.
cursorstringOpaque cursor.
fromstringEarliest event timestamp.
limitintegerPage size.
tostringLatest 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`.

ParameterTypeDescription
q *stringSQL 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).
asofstringOptional YYYY-MM-DD. Run the WHERE against historical close-of-day snapshot for this date.
cursorstringOpaque cursor.
dirstringSort direction.
fieldsstringComma-separated extra columns to include in each result row beyond the default set.
limitintegerPage size. Max 100. Default 50.
orderstringSort column. Default day_change_pct.
universestringOptional 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.

ParameterTypeDescription
cursorstringOpaque cursor.
limitintegerPage size.

tickerbot_get_universe

Get one universe by slug, including its ticker list.

ParameterTypeDescription
id *stringUniverse slug.

tickerbot_create_universe

Create a new universe (named set of tickers) for scoping future scans. Returns the new universe with its assigned slug.

ParameterTypeDescription
name *stringHuman-readable name.
tickers *arrayList 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".

ParameterTypeDescription
expr *stringSQL WHERE expression. Same grammar as scan `q`.
name *stringSnake_case identifier for the signal (lowercase letters, digits, underscore).
descriptionstringOptional 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).

ParameterTypeDescription
q *stringSQL WHERE on news_article. Required.
cursorstringOpaque cursor.
dirstringSort direction.
group_bystringComma-separated columns for aggregation (e.g. `date_trunc('day', time_published)`).
havingstringWHERE-style filter on aggregates. Requires group_by.
limitintegerPage size.
orderstringSort column or SELECT alias. Default time_published (non-aggregate) or volume (aggregate).
selectstringComma-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.

ParameterTypeDescription
q *stringSQL WHERE expression — same grammar as scan.
cadencestringEvaluation cadence.
namestringHuman-readable label. Defaults to a truncated version of the query.
target_urlstringOptional https URL to POST matches to. Omit for in-app delivery.
universestringOptional 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.

ParameterTypeDescription
signal *stringColumn name (e.g. golden_cross_today, rsi_14).
cadencestringEvaluation cadence.
conditionstringRequired for numerics: single bound like ">70" or "<=200". Ignored for booleans.
namestringHuman-readable label.
target_urlstringOptional https URL for delivery; omit for in-app.
tickerstringOptional ticker to restrict the watch to one symbol.
universestringOptional 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.

ParameterTypeDescription
condition *stringSQL WHERE fragment evaluated for this ticker (e.g. "rsi_14 > 70 AND gap_up").
ticker *stringSymbol.
cadencestringEvaluation cadence.
namestringHuman-readable label.
target_urlstringOptional https URL for delivery; omit for in-app.

tickerbot_list_webhooks

List the caller's active webhook subscriptions (rules created via the subscribe tools).

ParameterTypeDescription
cursorstringOpaque cursor.
limitintegerPage size.

tickerbot_delete_webhook

Delete a webhook subscription by id. Use after listing webhooks when the user wants to remove an alert.

ParameterTypeDescription
id *stringWebhook id (looks like `wh_…`).