Finnhub

by catherinedparnell

382 downloads
Not rated
GitHub

About

Integrates with Finnhub's financial API to provide streamlined access to market news, stock quotes, financials, and recommendation trends.

Details

Author
catherinedparnell
Repository
catherinedparnell/mcp-finnhub
Downloads
382
Categories
Productivity, Developer Tools, Design, AI, Community, Knowledge Base, Communication, Security, Project Management, Other, API

- list_news – fetch latest market news
- get_market_data – get real-time stock quotes
- get_basic_financials – retrieve company fundamentals
- get_recommendation_trends – view analyst recommendations
- Easy setup with uv and fastmcp
- Integrates directly with Claude Desktop

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Finnhub
    Command (node, npx, python, etc.) npx
    Arguments
    • Argument 1 -y
    • Argument 2 @highlight/mcp-server

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

1. Run uv sync to install the dependencies. To install uv follow the instructions here. Then do source .venv/bin/activate.

2. Setup the .env file with the Finnhub API Key credentials.

FINNUB_API_KEY=<FINNHUB_API_KEY>

3. Run fastmcp install server.py to install the server.

4. Open the configuration file located at:

- On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
- On Windows: %APPDATA%/Claude/claude_desktop_config.json

5. Locate the command entry for uv and replace it with the absolute path to the uv executable. This ensures that the correct version of uv is used when starting the server.

6. Restart Claude Desktop to apply the changes.

list_news

List latest market news from Finnhub.

get_market_data

Get market data for a particular stock.

get_basic_financials

Get basic financials for a particular stock.

get_recommendation_trends

Get recommendation trends for a particular stock.

- list_news

- List latest market news from Finnhub market news endpoint

- get_market_data

- Get market data for a particular stock from quote endpoint

- get_basic_financials

- Get basic financials for a particular stock from basic financials endpoint

- get_recommendation_trends
- Get recommendation trends for a particular stock from recommendation trend endpoint

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "finnhub": {
            "env": {},
            "args": [
                "-y",
                "@highlight/mcp-server"
            ],
            "command": "npx"
        }
    }
}

Linux

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Macos

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Windows

{
    "env": [],
    "args": [
        "/c",
        "npx",
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "cmd"
}

Finnhub MCP Server

An MCP server to interface with Finnhub API.

Tools

- list_news

- List latest market news from Finnhub market news endpoint

- get_market_data

- Get market data for a particular stock from quote endpoint

- get_basic_financials

- Get basic financials for a particular stock from basic financials endpoint

- get_recommendation_trends
- Get recommendation trends for a particular stock from recommendation trend endpoint

Configuration

1. Run uv sync to install the dependencies. To install uv follow the instructions here. Then do source .venv/bin/activate.

2. Setup the .env file with the Finnhub API Key credentials.

FINNUB_API_KEY=<FINNHUB_API_KEY>

3. Run fastmcp install server.py to install the server.

4. Open the configuration file located at:

- On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
- On Windows: %APPDATA%/Claude/claude_desktop_config.json

5. Locate the command entry for uv and replace it with the absolute path to the uv executable. This ensures that the correct version of uv is used when starting the server.

6. Restart Claude Desktop to apply the changes.

Development

Run fastmcp dev server.py to start the MCP server. MCP inspector is helpful for investigating and debugging locally.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.