surefinance-mcp-server

oculairmedia/surefinance-mcp-server

3.2

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.

Tools
6
Resources
0
Prompts
0

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 balances
  • get_account_balance_history — provide balance history for charting
  • get_transactions — query transactions with optional filters
  • search_transactions — perform keyword search across transactions
  • get_budgets — return budgets with period analysis
  • get_categories — list categories and hierarchy

Resources

  • surefinance://accounts/{id} — account details and balance history
  • surefinance://transactions/{id} — transaction details
  • surefinance://budgets/{id} — budget details and spending breakdown
  • surefinance://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

License

MIT License - See LICENSE file for details