Finnhub MCP Server

Real-time US-equity quotes, company fundamentals, earnings, analyst trends, and news via Finnhub.

Local serverstdio

What is the Finnhub MCP server?

If you already use Finnhub, the finnhub mcp server is the piece that lets your assistant work with it directly. Real-time US-equity quotes, company fundamentals, earnings, analyst trends, and news via Finnhub.

What the server does

  • Declarative tool and resource definitions — single file per primitive, framework handles registration and validation
  • Unified error handling — handlers throw, framework catches, classifies, and formats
  • Pluggable auth: none, jwt, oauth
  • Swappable storage backends: in-memory, filesystem, Supabase, Cloudflare KV/R2/D1
  • Structured logging with optional OpenTelemetry tracing
  • STDIO and Streamable HTTP transports

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • finnhub_search_symbols — Resolve a company name or partial ticker to US stock symbols, best US match first. The entry point for every other tool
  • finnhub_get_quote — Real-time price quote for one US symbol, paired with live market-status so the response states whether the price is live or the prior close
  • finnhub_get_company — Full company context in one call — profile, headline fundamentals (P/E, EPS, margins, growth), and sector peers
  • finnhub_get_earnings — Earnings in two modes: a symbol's past quarters with actual-vs-estimate surprises (history), or market-wide upcoming releases in a date window
  • finnhub_get_news — Financial news in two modes: recent articles for one symbol over a date range (company), or broad market headlines by category (market)
  • finnhub_get_recommendations — Analyst recommendation trends for one US symbol — strong-buy / buy / hold / sell / strong-sell counts per month, newest first
  • Prerequisites — The Prerequisites tool exposed by this server
  • Installation — The Installation tool exposed by this server

Credentials and setup notes

Configuration is passed through the environment: MCP_TRANSPORT_TYPE, MCP_LOG_LEVEL, FINNHUB_API_KEY, FINNHUB_BASE_URL, MCP_HTTP_ENDPOINT_PATH. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Bun v1.3.0 or higher (or Node.js v24+). - A free Finnhub API key. The free tier is US equities only, real-time, 60 req/min — international symbols (any exchange-suffixed ticker like .TO or .DE) and candle/forex endpoints are paid-tier and return a clear error.

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Where it fits

Among the file and storage access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Finnhub's toolset — finnhub_search_symbols, finnhub_get_quote, finnhub_get_company and 5 more — is a fair guide to whether it matches your workflow. It is maintained by cyanheads; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
finnhub_search_symbolsResolve a company name or partial ticker to US stock symbols, best US match first. The entry point for every other tool.
finnhub_get_quoteReal-time price quote for one US symbol, paired with live market-status so the response states whether the price is live or the prior close.
finnhub_get_companyFull company context in one call — profile, headline fundamentals (P/E, EPS, margins, growth), and sector peers.
finnhub_get_earningsEarnings in two modes: a symbol's past quarters with actual-vs-estimate surprises (history), or market-wide upcoming releases in a date window (calendar).
finnhub_get_newsFinancial news in two modes: recent articles for one symbol over a date range (company), or broad market headlines by category (market).
finnhub_get_recommendationsAnalyst recommendation trends for one US symbol — strong-buy / buy / hold / sell / strong-sell counts per month, newest first.
PrerequisitesThe Prerequisites tool exposed by this server.
InstallationThe Installation tool exposed by this server.

How to install the Finnhub MCP server

{
  "mcpServers": {
    "finnhub-mcp-server": {
      "type": "stdio",
      "command": "bunx",
      "args": ["@cyanheads/finnhub-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info",
        "FINNHUB_API_KEY": "your-api-key"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Bun v1.3.0 or higher (or Node.js v24+). - A free Finnhub API key. The free tier is US equities only, real-time, 60 req/min — international symbols (any exchange-suffixed ticker like .TO or .DE) and candle/forex endpoints are paid-tier and return a clear error.
VariableDescriptionRequired
MCP_TRANSPORT_TYPEConfiguration value read at startup.Optional
MCP_LOG_LEVELConfiguration value read at startup.Optional
FINNHUB_API_KEYCredential the server authenticates with.Yes
FINNHUB_BASE_URLEndpoint or connection string the server talks to.Yes
MCP_HTTP_ENDPOINT_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • Use Finnhub to finnhub search symbols.
  • Use Finnhub to finnhub get quote.
  • Use Finnhub to finnhub get company.

Frequently asked questions

It connects Finnhub to MCP-compatible AI assistants such as Claude and Cursor, exposing 8 tools (finnhub_search_symbols, finnhub_get_quote, finnhub_get_company, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Finnhub directly.