cristianleoo
MCP Server
cristianleoo
public

fin mcp

A MCP server to power your LLM with financial analysis capabilities

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Python
Language
MIT License
License

About This Server

A MCP server to power your LLM with financial analysis capabilities

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

# Financial Analysis MCP Server

A powerful server for financial analysis capabilities, providing stock data retrieval and visualization features.

## Features

- Stock data retrieval from yfinance
- Alpha Vantage API integration
- Web search for financial information
- Interactive visualization with Plotly
- RESTful API endpoints

## Prerequisites

- Python 3.8+
- Alpha Vantage API key (for additional data)

## Installation

1. Clone the repository:
```bash
git clone <repository-url>
cd fin-mcp
```

2. Create a virtual environment and activate it:
```bash
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
```

3. Install dependencies:
```bash
pip install -r requirements.txt
```

4. Create a `.env` file in the root directory and add your Alpha Vantage API key:
```
ALPHA_VANTAGE_API_KEY=your_api_key_here
```

## Usage

1. Start the server:
```bash
cd src
python main.py
```

2. The server will start at `http://localhost:8000`

3. Access the API documentation at `http://localhost:8000/docs`

## API Endpoints

### Stock Data
- `GET /api/v1/stock/{symbol}` - Get stock data from yfinance
- `GET /api/v1/alpha-vantage/{symbol}` - Get stock data from Alpha Vantage
- `GET /api/v1/search/{query}` - Search for financial information

### Visualization
- `GET /api/v1/visualize/candlestick/{symbol}` - Get candlestick chart
- `GET /api/v1/visualize/volume/{symbol}` - Get volume chart
- `GET /api/v1/visualize/combined/{symbol}` - Get combined price and volume chart

## Example Usage

```python
import requests

# Get stock data
response = requests.get("http://localhost:8000/api/v1/stock/AAPL")
data = response.json()

# Get candlestick chart
response = requests.get("http://localhost:8000/api/v1/visualize/candlestick/AAPL")
chart_data = response.json()
```

## License

This project is licensed under the MIT License - see the LICENSE file for details.

Quick Start

1

Clone the repository

git clone https://github.com/cristianleoo/fin-mcp
2

Install dependencies

cd fin-mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownercristianleoo
Repofin-mcp
Language
Python
LicenseMIT License
Last fetched8/8/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation