Overview
What it does
Access comprehensive financial market data and news powered by the Finnhub API. Get real-time stock quotes, company profiles, financial metrics, analyst recommendations, and market news through natural language in NimbleBrain Studio.Key Features:
- Real-time stock quotes with pricing and volume data
- Company profiles and business information
- Financial metrics including P/E ratios, ROE, margins
- Analyst recommendation trends over time
- Market news across multiple categories
Use Cases
Perfect for building AI-powered financial assistants and market analysis tools without any coding required.Examples:
- Portfolio performance tracking and monitoring
- Investment research and company analysis
- Market sentiment analysis from news
- Stock comparison and valuation screening
- Analyst consensus tracking
- Real-time market alerts and notifications
Quick Start
1
Get Your API Key
Sign up for a free Finnhub account at finnhub.io/registerFree Tier Includes:
- 60 API calls/minute
- Real-time US stock data
- Company profiles and basic financials
- Market news across categories
- Analyst recommendations
2
Add to NimbleBrain Studio
In NimbleBrain Studio:
- Navigate to MCP Servers in the sidebar
- Click Add Server
- Search for “Finnhub” in the server registry
- Click Configure
- Paste your API key in the FINNHUB_API_KEY field
- Click Save & Enable
The server will automatically connect and become available in your AI assistant within seconds.
3
Test the Connection
In your Studio chat, try this prompt:You should see real-time quote data including current price, change, percent change, high, low, open, previous close, and timestamp.
Available Tools
get_stock_quote
get_stock_quote
Get real-time stock quote data including current price, change, volume, and trading metrics for any stock symbol.Parameters:
Returns:
JSON object containing:Example Response:
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | Stock ticker symbol (e.g., AAPL, MSFT, GOOGL) |
| api_key | string | No | Override default API key (rarely needed) |
current_price- Current trading pricechange- Dollar change from previous closepercent_change- Percentage change from previous closehigh- Today’s high pricelow- Today’s low priceopen- Opening priceprevious_close- Previous day’s closing pricetimestamp- Quote timestampretrieved_at- When the data was fetched
get_company_profile
get_company_profile
Get detailed company information including business description, market cap, industry, and corporate details for any publicly traded company.Parameters:
Returns:
JSON object containing:Example Response:
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | Stock ticker symbol (e.g., AAPL, MSFT, GOOGL) |
| api_key | string | No | Override default API key (rarely needed) |
name- Company namecountry- Country of incorporationcurrency- Trading currencyexchange- Stock exchange (e.g., NASDAQ, NYSE)industry- Finnhub industry classificationlogo- URL to company logomarket_cap- Market capitalizationphone- Corporate phone numbershare_outstanding- Outstanding sharesticker- Stock ticker symbolweb_url- Company websiteipo_date- Initial public offering dateretrieved_at- When the data was fetched
get_basic_financials
get_basic_financials
Get comprehensive financial metrics and ratios including profitability, valuation, efficiency, and liquidity measures for fundamental analysis.Parameters:
Returns:
JSON object containing key_metrics with:Example Response:
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | Stock ticker symbol (e.g., AAPL, MSFT, GOOGL) |
| metric | string | No | Metric type (default: “all”) |
| api_key | string | No | Override default API key (rarely needed) |
52_week_high- Highest price in past 52 weeks52_week_low- Lowest price in past 52 weeksbeta- Stock volatility vs marketpe_ratio- Price-to-earnings ratio (TTM)eps- Earnings per share (TTM)market_cap- Market capitalizationdividend_yield- Current dividend yield (TTM)roe- Return on equity (TTM)roa- Return on assets (TTM)debt_to_equity- Debt to equity ratio (quarterly)current_ratio- Current ratio (quarterly)gross_margin- Gross profit margin (TTM)operating_margin- Operating margin (TTM)net_margin- Net profit margin (TTM)
get_recommendation_trends
get_recommendation_trends
Get analyst recommendation trends showing buy, hold, and sell ratings over time from financial analysts covering the stock.Parameters:
Returns:
JSON object containing:Example Response:
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | Stock ticker symbol (e.g., AAPL, MSFT, GOOGL) |
| api_key | string | No | Override default API key (rarely needed) |
recommendations- Array of recommendation periods with:period- Time period (e.g., “2025-01”)strong_buy- Number of strong buy ratingsbuy- Number of buy ratingshold- Number of hold ratingssell- Number of sell ratingsstrong_sell- Number of strong sell ratings
periods_available- Number of periods with dataretrieved_at- When the data was fetched
get_market_news
get_market_news
Get latest market news articles from multiple sources across different categories including general market, forex, crypto, and merger news.Parameters:
Returns:
JSON object containing:Example Response:
| Parameter | Type | Required | Description |
|---|---|---|---|
| category | string | No | News category: “general”, “forex”, “crypto”, “merger” (default: “general”) |
| min_id | string | No | Minimum news ID for pagination (default: “0”) |
| api_key | string | No | Override default API key (rarely needed) |
news- Array of up to 10 news articles with:headline- Article headlinesummary- Article summary/descriptionurl- Full article URLdatetime- Publication timestampsource- News sourcecategory- Article category
category- Requested categorycount- Number of articles returnedtimestamp- When the data was fetched
Authentication
API Key Required: This server requires a Finnhub API key to function.
Getting Your API Key
- Create a free account at finnhub.io/register
- Verify your email address
- Copy your API key from the dashboard
- Add it to your Studio server configuration
Rate Limits
| Plan | Requests/Minute | Features |
|---|---|---|
| Free | 60 | Real-time US stocks, basic data |
| Starter | 300 | + International stocks, extended data |
| Professional | 600 | + Premium data feeds, priority support |
Managing Your API Key in Studio
Your API key is securely stored in NimbleBrain Studio. To update it:- Go to Settings → MCP Servers
- Find “Finnhub” in your server list
- Click Edit Configuration
- Update your API key in the FINNHUB_API_KEY field
- Click Save
Example Workflows
- Portfolio Tracking
- Company Research
- Market Screening
- News Monitoring
- Sentiment Analysis
Scenario: Monitor your investment portfolio in real-timePrompt:What happens:
- Retrieves real-time quotes for all 4 stocks
- Calculates daily change ($ and %)
- Shows volume and trading status
- Presents data in an easy-to-read format
All examples work in NimbleBrain Studio’s natural language interface - no code or configuration required!
Troubleshooting
Rate Limit Exceeded
Rate Limit Exceeded
Error Message:Cause: You’ve exceeded 60 requests/minute (free tier)Solutions:
- Wait 1 minute before making more requests
- Upgrade to a paid Finnhub plan (300 or 600 requests/minute)
- Reduce the number of stocks you’re tracking simultaneously
- Space out your requests over time in Studio conversations
- Go to Studio Settings → MCP Servers
- Click on Finnhub
- View API usage metrics
Invalid API Key
Invalid API Key
Error Message:Cause: API key is missing, incorrect, or expiredSolutions:
- Verify your API key in Studio server settings
- Check for extra spaces or characters when you pasted it
- Regenerate your API key from the Finnhub dashboard
- Ensure your Finnhub account is active and email verified
- Settings → MCP Servers → Finnhub
- Click Edit Configuration
- Paste your new API key in FINNHUB_API_KEY field
- Click Save
- Test with a simple query like “What’s AAPL stock price?”
Studio validates your API key automatically when you save. You’ll see a success message if it’s correct.
Symbol Not Found
Symbol Not Found
Error Message:Cause: Invalid ticker symbol or the stock is not available in Finnhub’s databaseSolutions:
- Verify the ticker symbol is correct (e.g., AAPL not APPLE)
- Use the company name instead: “What’s Apple’s stock price?” (Studio will find the symbol)
- Check if the symbol is listed on a supported exchange
- Try alternative ticker formats (e.g., BRK.B for Berkshire Hathaway Class B)
- Using company name as symbol: “APPLE” instead of “AAPL”
- Wrong exchange suffix: “AAPL.US” instead of “AAPL”
- Delisted or merged companies
- International stocks not in free tier
Server Not Responding
Server Not Responding
Error Message:Cause: Studio cannot connect to the Finnhub MCP serverSolutions:
- Check your internet connection
- Verify the server is enabled in Studio (Settings → MCP Servers)
- Try disabling and re-enabling the server in Studio
- Check Studio status page for any service interruptions
- Refresh your Studio browser tab
- Go to Settings → MCP Servers
- Find Finnhub in the list
- Toggle it Off, wait 5 seconds
- Toggle it On again
- Try your query again
Studio manages all server infrastructure automatically - there’s no local setup or Docker containers to troubleshoot.
Data Unavailable
Data Unavailable
Slow Response Times
Slow Response Times
Symptoms:
- Queries taking longer than 5 seconds
- Studio showing “thinking” indicator for extended periods
- Intermittent timeouts
- Finnhub API experiencing high load
- Network connectivity issues
- Requesting too much data at once
- Break large queries into smaller ones
- Avoid requesting 10+ stocks simultaneously
- Check Finnhub status at status.finnhub.io
- Try again during off-peak market hours
- Clear Studio cache (Settings → Clear Cache)
- Single stock quote: 1-2 seconds
- Company profile: 1-2 seconds
- Financial metrics: 2-3 seconds
- News articles: 2-3 seconds
- Multi-stock comparison: 3-5 seconds
Studio automatically retries failed requests. If you see consistent slowness, check the Finnhub status page or contact support.
Links & Resources
GitHub Repository
View source code, report issues, and contribute to the project
Finnhub API Documentation
Official Finnhub API reference, data coverage, and features
NimbleBrain Studio
Access your Studio workspace and manage MCP servers
Report Issues
Found a bug or have a feature request? Submit an issue on GitHub
Related MCP Servers
Alpha Vantage
Alternative financial data with forex and crypto support
Yahoo Finance
Historical market data, options chains, and free data access
CoinGecko
Cryptocurrency prices and comprehensive crypto market data
Need help? Join the NimbleBrain Discord or email [email protected]