Financial MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
npm install
npm run build
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add financial-mcp -- node "<FULL_PATH_TO_FINANCIAL_MCP>/dist/index.js"

Replace <FULL_PATH_TO_FINANCIAL_MCP>/dist/index.js with the actual folder you prepared in step 1.

README.md

Query financial data including currency rates, stock quotes, and transactions.

Financial MCP Server

A production-ready Model Context Protocol (MCP) server that enables AI assistants (Claude Desktop, ChatGPT Desktop) to query financial data from three different sources.

Features

  • Exchange Rates - Real-time currency conversion using public API
  • Stock Market Data - Live stock quotes via Alpha Vantage API
  • Transaction Database - CSV-based local database with sample financial data
  • Dual Mode - Runs locally (Stdio) or as a Web Service (SSE)

🌐 Live Demo

You can connect to the hosted server directly without installing anything.

Option 1: Claude Desktop (Visual)

  1. Open similar dialog to "Add custom connector" (if available in your version).
  2. Name: Financial Mcp Demo
  3. URL: https://financial-mcp.el-hamdani.com/sse

Option 2: OpenAI / ChatGPT (Actions)

  1. Click "New App" or "Add Action".
  2. Name: Financial Mcp Demo
  3. MCP Server URL: https://financial-mcp.el-hamdani.com/sse
  4. Authentication: None / None (Public API)

Option 3: Claude Desktop (Config File)

Add this to claude_desktop_config.json:

{
  "mcpServers": {
    "financial-mcp-demo": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sse-client",
        "https://financial-mcp.el-hamdani.com/sse"
      ]
    }
  }
}

Quick Start

Installation

npm install
npm run build

Configuration

Claude Desktop

Add to your Claude Desktop configuration:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "financial-data": {
      "command": "node",
      "args": ["/absolute/path/to/financial-mcp-server/dist/index.js"],
      "env": {
        "ALPHA_VANTAGE_API_KEY": "your_api_key_here"
      }
    }
  }
}

Optional: Stock Market Data

To enable stock market tools, get a free API key from Alpha Vantage and add it to the configuration.

Available Tools

Exchange Rate Tools

Tool Description
get_exchange_rate Get exchange rate between two currencies
convert_currency Convert an amount from one currency to another
get_multiple_rates Get rates from one currency to multiple targets

Stock Market Tools

Tool Description
get_stock_quote Get current stock quote for a symbol
compare_stocks Compare multiple stock quotes

Transaction Tools

Tool Description
query_transactions Search and filter financial transactions
get_spending_by_category Get spending breakdown by category
get_spending_by_department Get spending breakdown by department
compare_to_budget Compare actual spending vs budget
get_top_vendors Get top vendors by spending

Example Queries

Exchange Rates

  • "What's the EUR to USD exchange rate?"
  • "Convert 10,000 EUR to USD"
  • "Show me rates from EUR to USD, GBP, JPY, CHF"

Transactions

  • "What were our total expenses in Q4 2024?"
  • "Show me all software purchases over 1,000 EUR"
  • "Which department spent the most on travel?"
  • "Are we over budget in any category?"
  • "Who are our top 5 vendors?"

Stocks (requires API key)

  • "What's Apple's current stock price?"
  • "Compare Microsoft, Google, and Apple stocks"

Sample Data

The database includes 23 sample transactions across:

  • Departments: Engineering, Sales, Marketing
  • Categories: Software, Hardware, Travel, Marketing
  • Time Period: Q4 2024 - Q1 2025

Project Structure

financial-mcp-server/
ā”œā”€ā”€ package.json
ā”œā”€ā”€ tsconfig.json
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ index.ts           # Main server entry
│   ā”œā”€ā”€ types.ts           # TypeScript interfaces
│   ā”œā”€ā”€ services/          # Data access layer
│   │   ā”œā”€ā”€ exchangeRate.ts
│   │   ā”œā”€ā”€ stockData.ts
│   │   └── database.ts
│   └── tools/             # MCP tool implementations
│       ā”œā”€ā”€ exchangeRate.ts
│       ā”œā”€ā”€ stockData.ts
│       └── transactions.ts
└── data/
    ā”œā”€ā”€ transactions.csv
    └── budgets.csv

Development

# Build
npm run build

# Watch mode
npm run watch

License

MIT

Tools (10)

get_exchange_rateGet exchange rate between two currencies
convert_currencyConvert an amount from one currency to another
get_multiple_ratesGet rates from one currency to multiple targets
get_stock_quoteGet current stock quote for a symbol
compare_stocksCompare multiple stock quotes
query_transactionsSearch and filter financial transactions
get_spending_by_categoryGet spending breakdown by category
get_spending_by_departmentGet spending breakdown by department
compare_to_budgetCompare actual spending vs budget
get_top_vendorsGet top vendors by spending

Environment Variables

ALPHA_VANTAGE_API_KEYAPI key for accessing stock market data via Alpha Vantage

Configuration

claude_desktop_config.json
{"mcpServers": {"financial-data": {"command": "node", "args": ["/absolute/path/to/financial-mcp-server/dist/index.js"], "env": {"ALPHA_VANTAGE_API_KEY": "your_api_key_here"}}}}

Try it

→What's the EUR to USD exchange rate?
→Convert 10,000 EUR to USD
→What were our total expenses in Q4 2024?
→Are we over budget in any category?
→Compare Microsoft, Google, and Apple stocks

Frequently Asked Questions

What are the key features of Financial MCP Server?

Real-time currency conversion using public API. Live stock market quotes via Alpha Vantage API. CSV-based local transaction database analysis. Dual mode support for local Stdio or Web Service (SSE).

What can I use Financial MCP Server for?

Automating currency conversion calculations in financial reports. Tracking and comparing stock market performance for investment research. Analyzing internal department spending and budget adherence. Identifying top vendors based on transaction history.

How do I install Financial MCP Server?

Install Financial MCP Server by running: npm install && npm run build

What MCP clients work with Financial MCP Server?

Financial MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Financial MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare