CashChat MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CashChat MCP Server Show me my spending summary for this week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CashChat MCP Server
Connect your financial data to AI assistants like Claude
CashChat MCP Server exposes your CashChat financial data to AI assistants via the Model Context Protocol (MCP). It supports both local stdio connections and remote URL-based connections with OAuth 2.0 authentication.
Features
š OAuth 2.0 Authentication - Secure URL-based connections for Claude Desktop
š° Transaction Management - Query, add, update, and delete transactions
š Financial Analytics - Get spending summaries and category breakdowns
āļø Settings Control - Manage currency preferences and AI agent instructions
š Multiple Deployment Options - Run locally, Node.js server, or Cloudflare Workers
š MCP Standard Compliant - Works with any MCP-compatible AI assistant
Related MCP server: @daften/fireflyiii-mcp
Quick Start
For Claude Desktop Users (URL-based connection)
This is the recommended way to connect CashChat to Claude Desktop using a publicly accessible server.
1. Get Your CashChat API Key
Sign up at CashChat and get your API key from the settings page.
2. Connect to the Public Server
Add this configuration to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"cashchat": {
"url": "https://cashchat.supastellar.dev/sse",
"oauth": {
"authUrl": "https://cashchat.supastellar.dev/oauth/authorize",
"tokenUrl": "https://cashchat.supastellar.dev/oauth/token",
"clientId": "cashchat-mcp-server",
"scopes": ["read", "write"]
}
}
}
}3. Restart Claude Desktop
Restart Claude Desktop and you'll be prompted to authorize the connection. Click "Authorize" and you're ready to go!
4. Try It Out
In Claude Desktop, try asking:
"What did I spend on groceries this month?"
"Add a transaction: $50 for dinner at Joe's Restaurant"
"Show me my spending summary for this week"
Local Development & Self-Hosting
Prerequisites
Node.js 18 or higher
npm or yarn
CashChat API key
Installation
Clone the repository:
git clone https://github.com/supastellar/cashchat-mcp
cd cashchat-mcpInstall dependencies:
npm installConfigure environment variables:
cp .env.example .envEdit .env and add your CashChat API key:
CASHCHAT_API_KEY=your_api_key_here
PORT=3000
SERVER_URL=http://localhost:3000Build the project:
npm run buildStart the server:
npm run start:serverThe server will be running at http://localhost:3000.
Testing Locally
Connect Claude Desktop to your local server by updating the config:
{
"mcpServers": {
"cashchat": {
"url": "http://localhost:3000/sse",
"oauth": {
"authUrl": "http://localhost:3000/oauth/authorize",
"tokenUrl": "http://localhost:3000/oauth/token",
"clientId": "cashchat-mcp-server",
"scopes": ["read", "write"]
}
}
}
}Note: Claude Desktop may require HTTPS for OAuth. For local testing with HTTPS, use a tool like ngrok or localtunnel.
Legacy stdio Mode (for local-only setup)
If you prefer the classic stdio-based local connection without OAuth:
Claude Desktop Config (stdio mode)
{
"mcpServers": {
"cashchat": {
"command": "node",
"args": ["/absolute/path/to/cashchat-mcp/build/index.js"],
"env": {
"CASHCHAT_API_KEY": "your_api_key_here"
}
}
}
}This mode runs the server as a subprocess and communicates via stdin/stdout. No HTTP server or OAuth required.
Available Tools
The MCP server provides 8 tools for interacting with your financial data:
Transaction Tools
get_transactions
Retrieve transactions with optional filters.
Parameters:
startDate(optional): Start date (YYYY-MM-DD)endDate(optional): End date (YYYY-MM-DD)category(optional): Filter by categorylimit(optional): Max results (default: 50)offset(optional): Pagination offset
Example:
Get my transactions from January 2024add_transaction
Add a new transaction.
Parameters:
amount(required): Transaction amountcategory(required): Category (e.g., Food, Transport)date(required): Date (YYYY-MM-DD)type(optional): 'expense' or 'income' (default: expense)note(optional): Descriptionname(optional): Merchant name
Example:
Add a transaction: $75 for groceries at Whole Foods on 2024-01-15update_transaction
Update an existing transaction.
Parameters:
id(required): Transaction IDamount(optional): New amountcategory(optional): New categorynote(optional): New notename(optional): New merchant name
delete_transaction
Delete a transaction.
Parameters:
id(required): Transaction ID to delete
Analytics Tools
get_summary
Get spending summary for a time period.
Parameters:
period(required): 'day', 'week', 'month', or 'year'date(optional): Reference date (defaults to today)
Example:
Show me my spending summary for this monthget_categories
List all available transaction categories.
Example:
What categories can I use?Settings Tools
get_settings
Get your CashChat settings.
update_settings
Update your CashChat settings.
Parameters:
preferredCurrency(optional): Currency code (USD, CAD, EUR, etc.)agentInstructions(optional): Custom instructions for AI assistant
Deployment
For production deployment instructions, see DEPLOYMENT.md.
Quick Deployment Options
Railway (Recommended)
Click the button above
Add your
CASHCHAT_API_KEYDeploy!
Cloudflare Workers
npm install -g wrangler
wrangler login
wrangler secret put CASHCHAT_API_KEY
wrangler deploySee DEPLOYMENT.md for detailed instructions.
Architecture
URL-Based Mode (HTTP + SSE + OAuth)
āāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāā
ā Claude Desktop ā ā CashChat MCP ā
ā ā ā Server (HTTP) ā
āāāāāāāāāāāāāāāāāā⤠āāāāāāāāāāāāāāāāāāāā¤
ā ā ā ā
ā 1. OAuth Flow ā āāāāāāāāāŗā /oauth/* ā
ā ā ā ā
ā 2. SSE Connect ā āāāāāāāāāŗā /sse ā
ā ā ā ā
ā 3. MCP Tools ā āāāāāāāāāŗā MCP Server ā
ā ā ā ā
āāāāāāāāāāāāāāāāāāā āāāāāāāāāā¬āāāāāāāāāā
ā
ā¼
āāāāāāāāāāāāāāāāāāāā
ā CashChat API ā
ā (Backend) ā
āāāāāāāāāāāāāāāāāāāāLegacy stdio Mode
āāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāā
ā Claude Desktop ā ā CashChat MCP ā
ā ā ā Server (stdio) ā
āāāāāāāāāāāāāāāāāā⤠āāāāāāāāāāāāāāāāāāāā¤
ā ā ā ā
ā stdio pipe ā āāāāāāāāāŗā MCP Server ā
ā ā ā ā
āāāāāāāāāāāāāāāāāāā āāāāāāāāāā¬āāāāāāāāāā
ā
ā¼
āāāāāāāāāāāāāāāāāāāā
ā CashChat API ā
ā (Backend) ā
āāāāāāāāāāāāāāāāāāāāSecurity
OAuth 2.0 with PKCE support for secure authorization
Bearer token authentication for API requests
HTTPS required in production
Token expiration (30 days default)
Scope-based permissions (read/write)
Production Security Recommendations
Use HTTPS only (no HTTP in production)
Set
OAUTH_CLIENT_SECRETfor additional securityImplement rate limiting
Use a proper database for token storage (not in-memory)
Rotate API keys regularly
Monitor access logs
Troubleshooting
"Connection refused" error
Check if the server is running
Verify the URL in your Claude Desktop config
Ensure firewall allows the port
OAuth authorization fails
Confirm
SERVER_URLis publicly accessibleCheck that URLs in Claude config match your server
Verify HTTPS is enabled (required by Claude Desktop)
"Invalid API key" error
Check your
CASHCHAT_API_KEYis correctVerify the API key is active in your CashChat account
Tools not showing up in Claude
Restart Claude Desktop after config changes
Check server logs for errors
Verify OAuth flow completed successfully
For more help, see DEPLOYMENT.md or open an issue.
Development
Project Structure
cashchat-mcp/
āāā src/
ā āāā index.ts # Legacy stdio server
ā āāā server.ts # HTTP/SSE server with OAuth
ā āāā worker.ts # Cloudflare Workers version
ā āāā types.ts # TypeScript types
ā āāā api/
ā ā āāā client.ts # CashChat API client
ā āāā auth/
ā ā āāā tokenStore.ts # OAuth token storage
ā ā āāā middleware.ts # Auth middleware
ā ā āāā oauthRoutes.ts # OAuth endpoints
ā āāā tools/
ā āāā transactions.ts # Transaction tools
ā āāā summary.ts # Analytics tools
āāā build/ # Compiled JavaScript
āāā package.json
āāā tsconfig.json
āāā wrangler.toml # Cloudflare Workers config
āāā README.mdScripts
npm run build- Compile TypeScriptnpm run dev- Watch mode for developmentnpm start- Run stdio server (legacy)npm run start:server- Run HTTP/SSE servernpm run dev:server- Development mode with auto-reload
Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
License
MIT License - see LICENSE for details.
Links
CashChat: https://cashchat.supastellar.dev
MCP Documentation: https://modelcontextprotocol.io
Claude Desktop: https://claude.ai/download
Support
Need help?
š Check the DEPLOYMENT.md guide
š Report bugs on GitHub Issues
š¬ Questions? Open a Discussion
Built with ā¤ļø by Supa Stellar
Available Tools
8 toolsadd_transactionC
Add a new transaction to CashChat
Inputs: amount (required), category (required), date (required), note, +2 more.
delete_transactionC
Delete a transaction from CashChat
Inputs: id (required).
get_categoriesB
Get list of transaction categories
Inputs: no named parameters.
get_settingsC
Get CashChat user settings
Inputs: no named parameters.
get_summaryB
Get spending summary for a time period
Inputs: period (required), date.
get_transactionsC
Get transactions from CashChat with optional filters
Inputs: startDate, endDate, category, limit, +1 more.
update_settingsC
Update CashChat user settings
Inputs: preferredCurrency, agentInstructions.
update_transactionC
Update an existing transaction in CashChat
Inputs: id (required), amount, category, note, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 8 tools
Every tool has a clearly distinct purpose targeting specific resources and actions. For example, add_transaction, update_transaction, and delete_transaction handle different lifecycle stages of transactions, while get_categories, get_settings, and update_settings manage separate aspects of the system. There is no ambiguity or overlap in functionality.
All tool names follow a consistent verb_noun pattern using snake_case. The verbs (add, delete, get, update) are applied logically to corresponding nouns (transaction, categories, settings, summary), creating a predictable and readable naming convention throughout the tool set.
With 8 tools, this server is well-scoped for a personal finance/transaction management domain. Each tool earns its place by covering essential operations like CRUD for transactions, settings management, and summary reporting, without being overly sparse or bloated.
The tool surface provides complete coverage for the apparent domain of transaction management. It includes full CRUD for transactions (add, get, update, delete), settings management (get and update), and auxiliary functions like categories and summaries, ensuring agents can handle typical workflows without dead ends.
Maintenance
Related MCP Connectors
Personal finance, bank account, and shared memory connector for Claude, ChatGPT, Gemini Spark & more
Ask your AI about your own accounts, debts, budgets and goals. OAuth sign-in, read-only by default.
Read-only access to your own bank, card and brokerage accounts for Claude, ChatGPT and other AI agents: balances, transactions, spending, subscriptions, cashflow and investment holdings. It can never move money.
Chat with your bank data: balances, transactions, budgets, bills. Reads only, never moves money.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to the ClearFi personal finance API for searching transactions, tracking bills, analyzing spending, and managing accounts.MIT
- AlicenseNot gradedqualityCmaintenanceConnects any MCP-compatible AI assistant to your Firefly III personal finance instance, enabling natural language queries about your finances.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to manage personal finances through plain-language commands, including expense logging, account and deposit tracking, budget monitoring, and spending reports, with OAuth-secured access to a shared ledger.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to manage personal finances through natural language, including adding, editing, listing, and deleting expenses, organizing them into categories, and setting monthly budgets with overspend warnings. It also provides spending summaries with month-over-month comparisons, budget status checks, and exportable Markdown or CSV reports, all backed by PostgreSQL storage with Google OAuth-authenticated per-user accounts.MIT