Finance MCP Server
Enables financial management through MCP tools for account viewing, transaction analysis, budgeting, and analytics, deployable on Vercel.
README
Finance MCP Server - Vercel Deployment
This folder contains the Finance MCP Server configured for serverless deployment on Vercel.
๐ Structure
vercel-deployment/
โโโ api/
โ โโโ index.py # Main Vercel handler
โ โโโ app_tools.py # MCP tools registration
โ โโโ database.py # Database connection manager
โโโ vercel.json # Vercel configuration
โโโ requirements.txt # Python dependencies
โโโ .env.example # Environment variables template
โโโ README.md # This file
๐ Quick Deployment
1. Install Vercel CLI
npm install -g vercel
2. Set Environment Variables
Create a .env file (copy from .env.example):
DATABASE_URL_PRIVATE="postgresql://user:pass@host/private?sslmode=require"
DATABASE_URL_PUBLIC="postgresql://user:pass@host/public?sslmode=require"
3. Deploy to Vercel
cd vercel-deployment
vercel
Follow the prompts:
- Set up and deploy? Y
- Which scope? Select your account
- Link to existing project? N (for first deployment)
- What's your project's name? finance-mcp-server
- In which directory is your code located? ./
- Want to override settings? N
4. Add Environment Variables to Vercel
After deployment, add your secrets:
# Add private database URL
vercel env add DATABASE_URL_PRIVATE
# Add public database URL
vercel env add DATABASE_URL_PUBLIC
Or add them via Vercel Dashboard:
- Go to your project settings
- Navigate to "Environment Variables"
- Add
DATABASE_URL_PRIVATEandDATABASE_URL_PUBLIC - Redeploy:
vercel --prod
๐ง Configuration
vercel.json
The vercel.json file configures:
- Python runtime for serverless functions
- Routing to handle MCP endpoints
- Environment variables references
Production Deployment
vercel --prod
Your MCP server will be available at:
https://your-project.vercel.app/mcp
๐ก API Endpoints
Once deployed, your MCP server will be accessible at:
- Main MCP endpoint:
https://your-project.vercel.app/mcp - Health check:
https://your-project.vercel.app/
๐ Security
- Never commit
.envfile - it's already in.gitignore - Use Vercel environment variables for production secrets
- Enable SSL - Vercel provides automatic HTTPS
- Database SSL - Ensure Neon databases use
?sslmode=require
๐งช Testing
Local Testing
# Install dependencies
pip install -r requirements.txt
# Run locally
python api/index.py
Server runs at http://localhost:8080
Test MCP Endpoint
curl https://your-project.vercel.app/mcp
๐ Features
All 19 financial tools are available:
Account Management
list_accounts- View all accountsget_account_balance- Get specific account balanceget_account_summary- Complete financial summary
Transaction Analysis
list_transactions- List with filterssearch_transactions- Search by merchantget_recurring_transactions- Detect recurring payments
Analytics
get_spending_by_category- Category breakdownget_monthly_trends- Income/expense trendsget_top_merchants- Top spending merchantsget_cashflow_summary- Income vs expenses
Budgeting
create_budget- Create new budgetlist_budgets- View all budgetsget_budget_status- Budget vs actual spending
Utilities
get_available_categories- List categoriesformat_currency- Format amountscalculate_net_worth- Calculate net worth
Security & Policies
get_tool_policy- Get tool access policylist_tool_policies- List all policiesvalidate_tool_access- Validate permissions
๐ Updates
To update the deployment:
# Pull latest changes
git pull
# Navigate to vercel-deployment folder
cd vercel-deployment
# Redeploy
vercel --prod
๐ Logs
View logs in real-time:
vercel logs
Or view in Vercel Dashboard under your project's "Logs" section.
๐ Troubleshooting
Import Errors
Make sure all Python files are in the api/ directory and dependencies are in requirements.txt.
Database Connection Issues
- Verify environment variables are set correctly in Vercel
- Check database URLs include
?sslmode=require - Ensure Neon databases are accessible
500 Server Errors
Check Vercel logs: vercel logs or in the dashboard
๐ Resources
๐ Support
For issues or questions:
- Check Vercel logs
- Review environment variables
- Test database connections
- Verify Python dependencies
Ready to deploy! ๐
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.