Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Finnhub MCP Servershow me the upcoming earnings calendar for NVDA for next week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Finnhub MCP Server
A Model Context Protocol (MCP) server wrapping the Finnhub API for financial market data.
Features
Earnings Calendar: Get upcoming and historical earnings announcements with EPS estimates, actuals, and revenue data
API Key Authentication: Simple API key-based authentication via CLI or environment variables
Type-safe: Full TypeScript support with Zod validation
Bun-native: Optimized for Bun runtime
Installation
Using npx with GitHub (recommended)
Run directly from GitHub without cloning or installing:
Local Development
OpenCode Configuration
Add to your OpenCode config (~/.config/opencode/opencode.json):
Using npx with GitHub
Using Environment Variables
Available Tools
finnhub.calendar.earnings
Get earnings calendar for a date range.
Parameters:
from(optional): Start date inYYYY-MM-DDformat (defaults to today)to(optional): End date inYYYY-MM-DDformat (defaults to 7 days from start)symbol(optional): Filter by stock symbol (e.g., "AAPL")
Example Response:
Time Values:
bmo: Before Market Openamc: After Market Closedmh: During Market Hours
CLI Arguments
Argument | Environment Variable | Description |
|
| Finnhub API key (required) |
CLI arguments take priority over environment variables.
Development
Scripts
Project Structure
API Key
Get your free API key from Finnhub.
License
MIT
Disclaimer
This project uses the Finnhub API but is not affiliated with, endorsed by, or connected to Finnhub in any way. Use this software at your own risk.