Skip to main content
Glama
finx-market-data

finx-market-data

by verrerie

FinX - Financial AI Agent System

CI codecov Node.js Version pnpm Version License: MIT

A learning-focused financial AI agent system built with MCP (Model Context Protocol) servers. Designed to help you learn investment concepts through hands-on market analysis.

๐ŸŽฏ Philosophy

Learn by Doing - This is not just an investment tool; it's an educational platform that helps you understand financial concepts by applying them to real data.

Related MCP server: Stock Market Analysis MCP Server

โœจ What You Can Do

FinX provides a powerful MCP server that integrates seamlessly with Cursor to help you learn investing:

๐Ÿ“Š Market Data Server

  • Get real-time quotes - Current prices, market metrics, and daily performance

  • Explore historical data - Analyze price trends and volatility over any time period

  • Research companies - Comprehensive fundamentals, financial ratios, and business insights

  • Learn financial concepts - Educational explanations of metrics like P/E ratio, ROE, profit margins

  • Compare companies - Side-by-side analysis of peers in the same sector

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 22.x LTS or higher

  • pnpm 9.x or higher

  • Alpha Vantage API key (free tier: Get one here)

  • Cursor IDE (for MCP integration)

Installation

  1. Clone and install dependencies:

cd finx
pnpm install
  1. Configure environment:

cp env.example .env
# Edit .env and add:
# - Your Alpha Vantage API key (required)
# - Your Financial Modeling Prep API key (optional, for financial statements)
# - Your FRED API key (optional, for economic indicators)
  1. Build the server:

pnpm build
  1. Configure MCP in Cursor:

Add to your Cursor MCP configuration (~/.cursor/mcp.json):

{
  "mcpServers": {
    "finx-market-data": {
      "command": "node",
      "args": [
        "/absolute/path/to/finx/mcp-market-data/dist/index.js"
      ],
      "env": {
        "ALPHA_VANTAGE_API_KEY": "your_key_here",
        "FMP_API_KEY": "your_fmp_key_here",
        "FRED_API_KEY": "your_fred_key_here"
      }
    }
  }
}

โš ๏ธ Important: Replace /absolute/path/to/finx with your actual installation path.

  1. Restart Cursor to load the MCP server

๐Ÿ“š Learning Path

FinX guides you through investment concepts progressively, from basics to advanced analysis.

Stage 1: Market Data & Fundamentals

What You Learn:

  • Reading stock quotes and understanding market data

  • Company fundamentals and financial metrics

  • Sector comparisons and peer analysis

  • Key financial ratios (P/E, ROE, profit margins, etc.)

Available Tools:

  • get_quote - Current price and metrics

  • get_historical_data - Price history

  • get_company_info - Comprehensive fundamentals

  • search_symbol - Find ticker symbols

  • explain_fundamental - Learn about specific metrics

  • compare_peers - Side-by-side company comparisons

Learning Prompts:

  • learn-concept.md - Deep dive into financial metrics

  • decode-financials.md - Understand a company

  • compare-stocks.md - Learn by comparison

Stage 2: Financial Statement Analysis

What You Learn:

  • Balance sheet analysis

  • Income statement interpretation

  • Cash flow analysis

  • Valuation models and methodologies

  • Ratio calculations with educational context

  • Industry and sector analysis frameworks

Learning Prompts:

  • Advanced financial statement analysis prompts

  • Valuation model guides

  • Sector-specific analysis frameworks

Recommended Reading:

  • "The Intelligent Investor" by Benjamin Graham

  • "A Random Walk Down Wall Street" by Burton Malkiel

  • "Common Stocks and Uncommon Profits" by Philip Fisher

  • "One Up On Wall Street" by Peter Lynch

๐Ÿ› ๏ธ Technology Stack

  • Runtime: Node.js 22.x LTS

  • Package Manager: pnpm 9.x

  • Market Data: Alpha Vantage + Yahoo Finance (fallback) + Financial Modeling Prep (financial statements) + FRED (economic indicators)

๐Ÿ“– Documentation

Quick Start Guides

  • USAGE.md - Complete usage guide with real-world examples

  • LEARNING.md - How to use this system for financial education

  • QUICKSTART.md - Interactive guide to explore tools

Technical Documentation

Knowledge Base

๐ŸŽฎ For Developers

Testing

pnpm test              # Run all unit tests
pnpm test:watch        # Watch mode
pnpm test:coverage     # With coverage
pnpm test:e2e          # Integration tests (spawns MCP server, tests all tools)

Development

pnpm dev:market-data   # Watch mode for Market Data server

๐Ÿค Contributing

This is a personal learning project. Feel free to fork and adapt to your needs.

โš ๏ธ Disclaimer

This software is for educational purposes only. It is not financial advice. Always consult with a qualified financial advisor before making investment decisions. Past performance does not guarantee future results.

๐Ÿ“„ License

MIT License - see LICENSE file for details

๐Ÿ”— Useful Resources

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogโ€ฆ

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides real-time stock quotes, historical price data, financial news, and multi-stock comparisons using Yahoo Finance data. Enables users to access comprehensive financial market information through natural language queries.
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables comprehensive stock market analysis with portfolio management, technical indicators, dividend tracking, sector analysis, risk metrics, and price alerts. Provides real-time stock data, trend analysis, and investment insights through natural language interactions.
      1
      -
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides real-time financial data from Yahoo Finance, enabling stock price lookups, historical data analysis, company information retrieval, and multi-stock comparisons through natural language queries.
      -