Financial Analysis MCP Server

by kablewy

427 downloads
Not rated
GitHub

About

An Anthropic Model Context Protocol (MCP) server for financial analysis with alphavantage.com and financialmodellingprep.com API integration.

Details

Author
kablewy
Downloads
427
Categories
Finance

- Real-time and historical stock price data from Alpha Vantage
- Company fundamental data (overview, income statements, balance sheets, cash flow, financial ratios)
- Flexible time intervals and output sizes for stock prices
- Response in JSON or CSV format

Install dependencies with npm install, configure the required API keys in a .env file (ALPHA_VANTAGE_API_KEY and FMP_API_KEY), then build and run with npm run build and npm start. The server exposes two tools: stock_price and company_fundamentals.

Financial Analysis MCP Server

An MCP server implementation for financial analysis using Alpha Vantage and Financial Modeling Prep APIs.

Features

- Real-time and historical stock price data
- Company fundamental data including:
- Company overview
- Income statements
- Balance sheets
- Cash flow statements
- Financial ratios

Setup

1. Install dependencies:

npm install

2. Configure environment variables in .env:

ALPHA_VANTAGE_API_KEY=your_alpha_vantage_api_key_here
FMP_API_KEY=your_fmp_api_key_here

3. Build and run:

npm run build
npm start

Available Tools

stock_price

Get real-time and historical stock price data from Alpha Vantage

Parameters:
- symbol (required): Stock ticker symbol
- interval: Time interval ('1min', '5min', '15min', '30min', '60min', 'daily')
- outputSize: Amount of data ('compact', 'full')
- dataType: Response format ('json', 'csv')

company_fundamentals

Get company fundamental data from Financial Modeling Prep

Parameters:
- symbol (required): Stock ticker symbol
- metrics: Array of metrics to retrieve ('overview', 'income', 'balance', 'cash', 'ratios')

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.