# ahmetsbilgin/finbrain-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/ahmetsbilgin/finbrain-mcp  
**GitHub Stars:** 9  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ahmetsbilgin-finbrain-mcp

## Description
Access institutional-grade alternative financial data directly in your LLM workflows.

## Tools
Capabilities this server exposes over MCP:

- **available_markets** — List available markets (e.g., 'S&P 500').
- **available_tickers** — List available tickers for a dataset.
- **available_regions** — List markets grouped by region. Use region codes for filtering in other endpoints.
- **app_ratings_by_ticker** — Normalized app ratings with paging over `series`.

A company can publish many apps - Apple has 140 on iOS - so the default
`series` is a blended view reporting only its biggest app on each
platform. `apps` lists what else exists; pass `app_id` to get one app's
own series instead. Answering a per-app question from the blended series
would describe one app as though it covered the whole company.

JSON:
  {
    format: "json",
    ticker, name,
    series: [{date, play_store_score, play_store_ratings_count, app_store_score,
              app_store_ratings_count, play_store_install_count}, ...],
    series_count, series_total,
    apps: [{platform, app_id, app_name, observation_count, latest_score,
            latest_ratings_count}, ...],   # summary only, not observations
    app_count
  }
With `app_id`:
  series is that app's observations: [{date, score, ratings_count,
  install_count}, ...]
CSV: CSV text of the sliced series.
- **analyst_ratings_by_ticker** — Normalized analyst ratings:
  {
    format: "json",
    ticker, name,
    series: [{date, rating_type, institution, signal,
              target_price_from, target_price_to, target_price_raw}, ...],
    series_count, series_total
  }
CSV returns the sliced `series`.
- **house_trades_by_ticker** — Normalized US House trades:
  {
    format: "json",
    ticker, name,
    series: [{date, representative, trade_type,
              amount_min, amount_max, amount_exact, amount_raw,
              disclosure_date, owner, amount_as_filed, amount_flag}, ...],
    series_count, series_total
  }
`date` is the transaction date; `disclosure_date` is when the trade was
publicly disclosed in the member's periodic transaction report. The gap
between them is the reporting lag.
`owner` is the beneficial owner of the traded account: "SELF", "SP"
(spouse), "DC" (dependent child), "JT" (joint), or an account code;
blank House filings report as "SELF". `owner` and `disclosure_date` are
nullable, though rare — historical rows were backfilled upstream.
`amount_raw` is the amount string as served by the API, normalized to a
statutory STOCK Act bracket when the filed string is an unambiguous
variant of one; `amount_as_filed` then preserves the original filing.
`amount_flag` is "review" or "ambiguous" when the filed amount could not
be safely normalized (amount_raw keeps the filed string, or "Unknown");
both are null on all other rows.
CSV returns the sliced `series`.
- **senate_trades_by_ticker** — Normalized US Senate trades:
  {
    format: "json",
    ticker, name,
    series: [{date, senator, trade_type,
              amount_min, amount_max, amount_exact, amount_raw,
              disclosure_date, owner, amount_as_filed, amount_flag}, ...],
    series_count, series_total
  }
`date` is the transaction date; `disclosure_date` is when the trade was
publicly disclosed in the member's periodic transaction report. The gap
between them is the reporting lag.
`owner` is the beneficial owner of the traded account: "SELF", "SP"
(spouse), "DC" (dependent child), "JT" (joint), an account code, or
"UNKNOWN" for blank Senate filings. `owner` and `disclosure_date` are
nullable, though rare — historical rows were backfilled upstream.
`amount_raw` is the amount string as served by the API, normalized to a
statutory STOCK Act bracket when the filed string is an unambiguous
variant of one; `amount_as_filed` then preserves the original filing.
`amount_flag` is "review" or "ambiguous" when the filed amount could not
be safely normalized (amount_raw keeps the filed string, or "Unknown");
both are null on all other rows.
Senate collection has been paused since 2026-10-22 (the Senate site
refuses automated access), so no newer Senate filings appear; House
collection continues.
CSV returns the sliced `series`.
- **corporate_lobbying_by_ticker** — Normalized corporate lobbying filings:
  {
    format: "json",
    ticker, name,
    series: [{date, filing_uuid, filing_year, quarter,
              client_name, registrant_name,
              income, expenses, issue_codes, government_entities,
              cik}, ...],
    series_count, series_total
  }
CSV returns the sliced `series`.
- **insider_transactions_by_ticker** — Normalized insider transactions with paging over `series`.
JSON:
  {
    format: "json",
    ticker, name,
    series: [{date, insider_name, relationship, transaction_type,
              price, shares, usd_value, total_shares,
              sec_form4_date, sec_form4_link, cik, value_flag}, ...],
    series_count, series_total
  }
CSV: sliced `series` as CSV.

usd_value is shares x price. value_flag is null on normal rows and
"price_implausible" when the filer typed the total proceeds into the
price field: exclude those rows from any dollar sum or average. Only
Purchase and Sale are open-market trades; the other transaction types
are awards, option mechanics and transfers.
- **linkedin_metrics_by_ticker** — Normalized LinkedIn metrics:
  JSON:
    {
      format: "json",
      ticker, name,
      series: [{date, employee_count, followers_count}, ...],  # paged
      series_count, series_total
    }
  CSV:
    CSV text of the sliced `series`.
- **options_put_call** — Normalized options put/call time series.
JSON:
  {
    format: "json",
    ticker, name,
    series: [{date, put_call_ratio, call_count, put_count}, ...],  # paged
    series_count, series_total
  }
CSV:
  CSV text of the sliced series.
- **predictions_by_market** — Screener-based market predictions (flat rows with expected_* percentages).
Filters by market name or region.
- **predictions_by_ticker** — Normalized ticker prediction with a time series:
  {
    ticker, name, type, last_update, expected_short/mid/long,
    series: [{date, mid, low, high}, ...],
  }
- **news_sentiment_by_ticker** — Returns normalized sentiment:
  {
    format: "json",
    ticker, name,
    series: [{date, score}, ...]  (paged),
    series_count, series_total
  }
If format="csv", returns CSV of the sliced series.
- **news_by_ticker** — Returns recent news articles for a ticker:
  {
    format: "json",
    ticker, name,
    series: [{date, headline, source, url}, ...]  (paged),
    series_count, series_total
  }
If format="csv", returns CSV of the sliced series.
- **recent_news** — Get the most recent news articles across all tracked stocks.
Returns rows with ticker, name, date, headline, source, url.
- **recent_analyst_ratings** — Get the most recent analyst ratings across all tracked stocks.
Returns rows with ticker, name, date, institution, rating_type, signal, target_price.
- **reddit_mentions_by_ticker** — Reddit mention counts across subreddits for a single ticker:
  {
    format: "json",
    ticker, name,
    series: [{date, subreddit, mentions}, ...],
    series_count, series_total
  }
CSV returns the sliced `series`.
- **government_contracts_by_ticker** — U.S. government contract awards for a single ticker:
  {
    format: "json",
    ticker, name,
    series: [{award_id, award_amount, award_type, awarding_agency,
              awarding_sub_agency, recipient_name, start_date, end_date,
              description, naics_code, naics_description,
              contract_award_type, cik}, ...],
    series_count, series_total
  }
CSV returns the sliced `series`.
- **patent_filings_by_ticker** — USPTO granted patents mapped to a single ticker by corporate assignee:
  {
    format: "json",
    ticker, name,
    series: [{patent_id, patent_date, title, type, kind, num_claims,
              num_cited_by, assignee_organization, assignee_type,
              application_filing_date, filing_to_grant_days, inventors,
              num_inventors, cpc_sections, cpc_subsections,
              primary_cpc_section, cik}, ...],
    series_count, series_total
  }
CSV returns the sliced `series`.
- **screener_sentiment** — Screen sentiment across tickers by market or region.
Returns rows with ticker, name, date, score.
Either market or region is required.
- **screener_analyst_ratings** — Screen analyst ratings across tickers.
Returns rows with ticker, name, date, institution, rating_type, signal, target_price.
- **screener_insider_trading** — Screen insider trades across all tickers.
Returns rows with ticker, name, date, insider_name, relationship,
transaction_type, shares, total_value, value_flag. value_flag is null on
normal rows and "price_implausible" when the filer typed the total
proceeds into the price field: exclude those rows from dollar totals.
- **screener_house_trades** — Screen House of Representatives trades across all tickers.
Returns rows with ticker, name, date, politician, trade_type, amount,
disclosure_date (public disclosure date) and owner (beneficial owner of
the account: "SELF", "SP", "DC", "JT", or an account code). owner and
disclosure_date are nullable, though rare — historical rows were
backfilled upstream. amount_as_filed and amount_flag as on
house_trades_by_ticker.
- **screener_senate_trades** — Screen Senate trades across all tickers.
Returns rows with ticker, name, date, politician, trade_type, amount,
disclosure_date (public disclosure date) and owner (beneficial owner of
the account: "SELF", "SP", "DC", "JT", an account code, or "UNKNOWN"
for blank Senate filings). owner and disclosure_date are nullable,
though rare — historical rows were backfilled upstream. amount_as_filed
and amount_flag as on senate_trades_by_ticker. Senate collection has been
paused since 2026-10-22, so no newer Senate filings appear.
- **screener_news** — Screen news across tickers.
Returns rows with ticker, name, date, headline, source, url.
- **screener_put_call_ratio** — Screen put/call ratio across tickers.
Returns rows with ticker, name, date, put_call_ratio, call_count, put_count.
- **screener_linkedin** — Screen LinkedIn data across tickers by market or region.
Returns rows with ticker, name, date, employee_count, followers_count, job_count.
Either market or region is required.
- **screener_app_ratings** — Screen app ratings across tickers by market or region.
Returns rows with ticker, name, date, app_store_score, play_store_score.
Either market or region is required.
- **screener_government_contracts** — Screen U.S. government contract awards across all tickers.
Returns rows with ticker, name, award_id, award_amount, recipient_name,
start_date, awarding_agency, naics_description,
plus a summary with aggregate stats (total_contracts, total_tickers, total_value).
- **screener_patent_filings** — Screen USPTO granted patents across all tickers.
Returns rows with ticker, name, patent_id, patent_date, title, type,
assignee_organization, primary_cpc_section, num_claims,
plus a summary with aggregate stats (total_patents, total_tickers, top_cpc_sections).
- **screener_reddit_mentions** — Screen Reddit mentions across tickers.
Returns rows with ticker, name, date, total_mentions, subreddits,
plus a summary with aggregate stats (top_mentioned, subreddit_names, etc.).
- **health** — Basic server health & version info. Tries to resolve the API key and
construct the SDK client (no network call), then returns versions.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "finbrain-mcp": {
    "command": "uvx",
    "args": ["finbrain-mcp"],
    "env": {
      "FINBRAIN_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `FINBRAIN_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What ahmetsbilgin/finbrain-mcp does

ahmetsbilgin/finbrain-mcp gives AI clients access to FinBrain datasets through MCP tools. Its coverage combines machine-learning price forecasts with market and company research data, including recent news, sentiment history, analyst ratings, insider transactions, House and Senate trades, corporate lobbying, options flow, LinkedIn metrics, app-store ratings, Reddit mentions, government contracts, and patent filings.

The prediction tools provide daily forecasts across a 10-day horizon and monthly forecasts across 12 months. Forecast results include mean values and 95% confidence intervals. Ticker-specific and market-level lookups are available, along with screeners that scan tracked stocks for sentiment, news, analyst activity, trading activity, and alternative-data signals.

## How it works

The package runs as a local MCP server rather than through a hosted proxy. It uses the official finbrain-python SDK for the FinBrain v2 API and authenticates with the API key supplied by the client process. MCP clients can launch the server from the `finbrain-mcp` command, while developers can run the Python module directly for local checks or debugging.

Tool responses are normalized into consistent shapes intended for model use. JSON is the default response format, CSV is available as an option, and tools support paging. Metadata tools expose available markets, tickers, and regions before a client makes more targeted requests.

## Setup and configuration

Python 3.10 or newer is required. Install the published package with:

```bash
pip install --upgrade finbrain-mcp
```

For repository development, create a virtual environment and install the editable package with its development dependencies:

```bash
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
```

The Windows virtual-environment activation command differs. Docker is also supported: build the image and pass `FINBRAIN_API_KEY` when starting the container.

Configure `FINBRAIN_API_KEY` either in the MCP client's server entry or in the process environment. Client configuration is generally more reliable because the launched process receives the key explicitly. Claude Desktop and VS Code MCP extensions can start the server automatically from their configuration; manual startup with `finbrain-mcp` is mainly useful for diagnostics.

## Tools and capabilities

Available tools include:

- `health`, `available_markets`, `available_tickers`, and `available_regions`
- Market and ticker prediction tools
- Ticker news, sentiment, analyst-rating, and recent-news tools
- App ratings, LinkedIn metrics, options put/call data, Reddit mentions, contracts, and patents
- House, Senate, corporate lobbying, and insider transaction lookups
- Screeners for sentiment, news, analyst ratings, insider trading, congressional trades, and alternative indicators

App-rating results include a blended date series and an `apps` summary. To retrieve observations for a particular app, inspect the available app identifiers and pass the relevant `app_id`; the summary intentionally does not include every app's full history.

Several entity-oriented datasets include a zero-padded SEC CIK string when an entity match exists. Insider records also expose `value_flag`; rows marked `price_implausible` should be excluded from dollar aggregations. Only `Purchase` and `Sale` represent open-market insider trades; other transaction types include awards, option mechanics, and transfers.

## Limitations and notes

Access depends on a valid FinBrain API key and the data available through the FinBrain API. The server is local, but its tools retrieve FinBrain datasets rather than operating as an offline financial database. CIK values must remain strings so their leading zeroes are preserved. App-rating series can represent the largest app on each platform for a date, so per-app analysis should use the corresponding app identifier and observations.

_Full upstream README: https://allmcps.com/mcp/ahmetsbilgin-finbrain-mcp/readme_

