Financial MCP Server
Provides access to real-time currency exchange rates, live stock market data via Alpha Vantage, and local transaction analysis from CSV databases. It enables AI assistants to perform currency conversions, stock comparisons, and budget tracking through natural language.
README
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)
- Open similar dialog to "Add custom connector" (if available in your version).
- Name:
Financial Mcp Demo - URL:
https://financial-mcp.el-hamdani.com/sse
<img width="538" height="397" alt="image" src="https://github.com/user-attachments/assets/d9c94152-8882-4d6f-9a52-3fe62146a2fd" />
Option 2: OpenAI / ChatGPT (Actions)
- Click "New App" or "Add Action".
- Name:
Financial Mcp Demo - MCP Server URL:
https://financial-mcp.el-hamdani.com/sse - Authentication: None / None (Public API)
<img width="450" height="679" alt="image" src="https://github.com/user-attachments/assets/6d5754e4-8946-4f5f-a35b-feccd2317de6" />
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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。