Cashew Expense Tracker MCP Server

Cashew Expense Tracker MCP Server

cashew-mcp-server•byyashhere

An MCP server that gives access to a Cashew expense tracker SQLite database through schema resources, read-only SQL query tools, and data analysis prompts.

License: MIT License•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Exposes Cashew database schema resources, including a complete schema and per-table schema details.
  • •Provides a tool to execute read-only SELECT queries with columns, rows, and execution metadata.
  • •Provides tools to sample table rows and count table rows.
  • •Includes prompts for spending pattern analysis, budget analysis, income versus expenses, and expense anomaly detection.

BEST FOR

  • •Analyzing personal spending patterns and category breakdowns with an AI client.
  • •Evaluating budget performance against actual spending.
  • •Detecting unusual expenses, potential duplicates, and budget violations.

ABOUT CASHEW-MCP-SERVER

Cashew Expense Tracker MCP Server is cataloged as an MCP server attributed to yashhere. An MCP server that gives access to a Cashew expense tracker SQLite database through schema resources, read-only SQL query tools, and data analysis prompts. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Cashew Expense Tracker MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the server modify my Cashew database?

No, it only allows read-only operations and blocks dangerous SQL keywords.

Can I choose which Cashew database file the server uses?

Yes, you can run it against the test database, your main database, or a custom database path.

Upstream README

View this exact version on GitHub

README.md · 026da93cde27 · Fetched 2026-11-13 13:39:23 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Cashew Expense Tracker MCP Server

An MCP (Model Context Protocol) server that provides access to your Cashew expense tracker SQLite database. This server exposes table schemas as resources, provides tools for running read-only SQL queries, and includes prompts for common data analysis tasks.

Features

  • Database Schema Resources: Access complete table schemas and structure information
  • Read-only SQL Query Tools: Execute safe SELECT queries against your expense data
  • Data Analysis Prompts: Pre-built prompts for common expense analysis tasks
  • Multiple Database Support: Switch between test and production databases
  • Safety First: Only read-only operations are allowed to protect your data

Installation

The project uses uv for dependency management. Make sure you have uv installed, then run:

uv sync

Usage

Running the Server

Start the MCP server with the test database:

uv run python cashew_mcp_server.py

Use your main Cashew database:

uv run python cashew_mcp_server.py --use-main-db

Use a custom database path:

uv run python cashew_mcp_server.py --db-path /path/to/your/database.sqlite

MCP Client Integration

Claude Desktop

Add the server configuration to your Claude Desktop MCP settings file:

{
  "mcpServers": {
    "cashew-expense-tracker": {
      "command": "uv",
      "args": [
        "run",
        "python",
        "cashew_mcp_server.py"
      ],
      "cwd": "/Users/yash/Developer/cashew-mcp",
      "env": {}
    }
  }
}

VSCode

Add the server configuration to your Vscode workspace's MCP settings file:

{
    "servers": {
        "cashew-mcp-server": {
            "type": "stdio",
            "command": "/Users/yash/Developer/cashew-mcp/.venv/bin/python",
            "args": [
                "/Users/yash/Developer/cashew-mcp/cashew_mcp_server.py",
                "--db-path",
                "/Users/yash/Developer/cashew-mcp/db.sqlite"
            ]
        }
    }
}

MCP Inspector (Development)

Test the server with the MCP Inspector:

uv run mcp dev cashew_mcp_server.py

Available Resources

The server exposes the following resources:

Database Schema Resources

  • cashew://schema - Complete database schema for all tables
  • cashew://schema/{table_name} - Detailed schema for a specific table

Example tables in your Cashew database:

  • wallets - Wallet/account information
  • categories - Expense and income categories
  • transactions - All financial transactions
  • budgets - Budget definitions and limits
  • objectives - Financial goals and objectives
  • category_budget_limits - Category-specific budget limits

Available Tools

SQL Query Tools

  1. execute_sql_query(query: str)

    • Execute read-only SELECT queries
    • Returns results with columns, rows, and execution metadata
    • Safety checks prevent dangerous operations
  2. get_table_sample(table_name: str, limit: int = 10)

    • Get sample rows from any table
    • Useful for exploring data structure
    • Limit max 100 rows
  3. get_table_count(table_name: str)

    • Get total row count for any table
    • Quick overview of data volume

Available Prompts

Data Analysis Prompts

  1. analyze_spending_patterns

    • Comprehensive spending pattern analysis
    • Category breakdowns and trends
    • Temporal spending patterns
    • Budget performance analysis
  2. budget_analysis

    • Budget performance evaluation
    • Budget vs actual spending
    • Recommendations for budget adjustments
    • Future projections
  3. income_vs_expenses

    • Income and expense comparison
    • Cash flow analysis
    • Financial health indicators
    • Trend analysis and projections
  4. expense_anomaly_detection

    • Detect unusual spending patterns
    • Identify potential duplicate transactions
    • Find spending anomalies and outliers
    • Budget violation detection

Example Queries

Here are some example SQL queries you can run using the execute_sql_query tool:

Basic Data Exploration

-- Get recent transactions
SELECT name, amount, date_created, income
FROM transactions
ORDER BY date_created DESC
LIMIT 10;

-- Top spending categories
SELECT c.name, SUM(t.amount) as total_spent, COUNT(*) as transaction_count
FROM transactions t
JOIN categories c ON t.category_fk = c.category_pk
WHERE t.income = 0
GROUP BY c.name
ORDER BY total_spent DESC
LIMIT 10;

-- Monthly spending summary
SELECT
  strftime('%Y-%m', date_created, 'unixepoch') as month,
  SUM(CASE WHEN income = 0 THEN amount ELSE 0 END) as expenses,
  SUM(CASE WHEN income = 1 THEN amount ELSE 0 END) as income,
  COUNT(*) as transactions
FROM transactions
GROUP BY strftime('%Y-%m', date_created, 'unixepoch')
ORDER BY month DESC;

Budget Analysis

-- Current budget status
SELECT
  b.name as budget_name,
  b.amount as budget_amount,
  SUM(t.amount) as spent,
  (b.amount - SUM(t.amount)) as remaining,
  ROUND((SUM(t.amount) / b.amount) * 100, 2) as percent_used
FROM budgets b
LEFT JOIN transactions t ON t.date_created BETWEEN b.start_date AND b.end_date
  AND t.income = 0
WHERE b.archived = 0
GROUP BY b.budget_pk, b.name, b.amount;

Category Analysis

-- Average transaction amount by category
SELECT
  c.name as category,
  ROUND(AVG(t.amount), 2) as avg_amount,
  MIN(t.amount) as min_amount,
  MAX(t.amount) as max_amount,
  COUNT(*) as transaction_count
FROM transactions t
JOIN categories c ON t.category_fk = c.category_pk
WHERE t.income = 0
GROUP BY c.name
HAVING COUNT(*) >= 5
ORDER BY avg_amount DESC;

Database Schema

Your Cashew database contains the following main tables:

  • wallets: Different accounts/wallets for organizing finances
  • categories: Income and expense categories with hierarchical structure
  • transactions: All financial transactions with amounts, dates, and categorization
  • budgets: Budget definitions with time periods and amounts
  • objectives: Financial goals and targets
  • category_budget_limits: Category-specific budget constraints

Each table includes audit fields like date_created and date_time_modified for tracking changes.

Safety Features

  • Read-only Access: Only SELECT queries are allowed
  • Query Validation: Dangerous SQL keywords are blocked
  • Input Sanitization: All inputs are validated before execution
  • Error Handling: Graceful error handling with informative messages

Development

To contribute or modify the server:

  1. Install dependencies: uv sync
  2. Run tests: uv run python -m pytest (when tests are added)
  3. Format code: uv run black .
  4. Check types: uv run mypy . (when type hints are added)

Troubleshooting

Common Issues

  1. Import errors: Make sure to use uv run to properly activate the virtual environment
  2. Database not found: Check the database path and ensure the file exists
  3. Permission errors: Ensure the SQLite database file is readable

Debug Mode

Run the server with debug output:

uv run python cashew_mcp_server.py --db-path test.sqlite

The server will output:

  • Database path being used
  • Available tables found
  • Connection status

License

This project is licensed under the MIT License.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Cashew Expense Tracker MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/cashew-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics