oculairmedia/surefinance-mcp-server
If you are the rightful owner of surefinance-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
SureFinance MCP Server provides programmatic access to financial data for integration with AI assistants and other MCP clients.
SureFinance MCP Server
Model Context Protocol (MCP) server for SureFinance financial data integration.
Overview
This MCP server provides programmatic access to SureFinance financial data through standardized tools and resources. It enables AI assistants and other MCP clients to query accounts, transactions, budgets, and analytics.
Technology Stack
- Language: Ruby 3.4.4
- MCP SDK: Official Ruby SDK
- Transport: HTTP/HTTPS
- Database: PostgreSQL (shared with SureFinance Rails app)
Project Structure
surefinance-mcp-server/
āāā lib/
ā āāā surefinance_mcp/
ā ā āāā server.rb # Main MCP server
ā ā āāā tools/ # MCP tool implementations
ā ā āāā resources/ # MCP resource handlers
ā ā āāā models/ # Data models
ā āāā surefinance_mcp.rb # Main entry point
āāā config/
ā āāā database.yml # Database configuration
ā āāā server.yml # Server configuration
āāā Gemfile
āāā Dockerfile
āāā docker-compose.yml
āāā README.md
Quick Start
# Install dependencies
bundle install
# Set up environment
cp .env.example .env
# Edit .env with your configuration
# Run the server
bundle exec ruby lib/surefinance_mcp.rb
Docker Deployment
# Build and run with Docker Compose
docker compose up --build -d
# View logs
docker compose logs -f surefinance-mcp
Environment
The server uses .env for configuration. Review .env.example for available options covering server host/port, database connection, authentication secrets, and logging.
MCP Surface Area
Tools
get_accountsā list all accounts with current balancesget_account_balance_historyā provide balance history for chartingget_transactionsā query transactions with optional filterssearch_transactionsā perform keyword search across transactionsget_budgetsā return budgets with period analysisget_categoriesā list categories and hierarchy
Resources
surefinance://accounts/{id}ā account details and balance historysurefinance://transactions/{id}ā transaction detailssurefinance://budgets/{id}ā budget details and spending breakdownsurefinance://holdings/{id}ā investment holding details
Authentication
The server supports authentication via:
- API keys (for trusted clients)
- JWT tokens (for programmatic access)
See for details.
Development
# Run tests
bundle exec rspec
# Run linter
bundle exec rubocop
# Auto-fix linting issues
bundle exec rubocop -a
Documentation
Full documentation is available in BookStack.
Related Projects
- SureFinance - Personal finance and wealth management app
- Huly Project - Project tracking
License
MIT License - See LICENSE file for details