ClearFi Finance MCP Server
Connects AI assistants to the ClearFi personal finance API for searching transactions, tracking bills, analyzing spending, and managing accounts.
README
ClearFi Finance MCP Server
Give your AI assistant a clear picture of your finances. This MCP server connects Claude (or any MCP-compatible AI) to the ClearFi personal finance API, providing tools to search transactions, track bills, analyze spending, and manage accounts.
The AI helps you see your financial data clearly — it doesn't make decisions for you.
What It Does
- Search and categorize bank transactions
- Track recurring bills and income with a financial calendar
- Analyze spending by category or merchant
- Manage bank accounts (Plaid-connected and manual)
- Import transactions from CSV files
- Sync fresh data from connected banks
- Match transactions to scheduled bills
Prerequisites
- Python 3.10+
- A ClearFi account with an API key
- Network access to the ClearFi API
Install
git clone https://github.com/YOUR_USERNAME/clearfi-finance-mcp.git
cd clearfi-finance-mcp
pip install -r requirements.txt
Or install dependencies directly:
pip install fastmcp httpx
Get an API Key
- Log in to ClearFi
- Go to Settings > AI Agents
- Click Create Agent, choose a role and permissions
- Copy the API key (shown once)
Configure
Claude Code
Add to your project's .mcp.json (or ~/.claude/settings.json for global access):
{
"mcpServers": {
"clearfi-finance": {
"command": "python",
"args": ["/path/to/clearfi-finance-mcp/mcp_server.py"],
"env": {
"API_URL": "https://aifinancial.thehandle.app/api",
"API_KEY": "gcal_your_api_key_here"
}
}
}
}
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"clearfi-finance": {
"command": "python",
"args": ["/path/to/clearfi-finance-mcp/mcp_server.py"],
"env": {
"API_URL": "https://aifinancial.thehandle.app/api",
"API_KEY": "gcal_your_api_key_here"
}
}
}
}
Using uv (alternative)
If you use uv instead of pip:
{
"mcpServers": {
"clearfi-finance": {
"command": "uv",
"args": ["run", "--with", "fastmcp", "--with", "httpx", "/path/to/clearfi-finance-mcp/mcp_server.py"],
"env": {
"API_URL": "https://aifinancial.thehandle.app/api",
"API_KEY": "gcal_your_api_key_here"
}
}
}
}
Available Tools
| Tool | Description |
|---|---|
list_accounts |
List all bank accounts with balances and types |
search_transactions |
Search transactions with date, amount, merchant, category, and institution filters |
categorize_transaction |
Set the category on a transaction |
delete_transaction |
Delete a transaction (two-step confirmation) |
analyze_spending |
Analyze spending grouped by category or merchant |
get_financial_summary |
Comprehensive summary: balances, monthly spending/income, upcoming bills |
list_categories |
List all transaction categories |
sync_transactions |
Sync fresh transactions from connected banks |
list_scheduled_transactions |
List recurring bills and income |
create_scheduled_transaction |
Create a new recurring bill or income |
update_scheduled_transaction |
Update a scheduled transaction |
delete_scheduled_transaction |
Delete a scheduled transaction |
list_upcoming_occurrences |
List upcoming bill/income occurrences for the next N days |
mark_bill_paid |
Mark a bill occurrence as paid |
skip_occurrence |
Skip a bill occurrence without affecting the schedule |
unskip_occurrence |
Revert a skipped occurrence back to pending |
match_transaction |
Link a bank transaction to a scheduled occurrence |
unmatch_transaction |
Unlink a matched occurrence |
list_manual_institutions |
List manually-added banks and their accounts |
create_manual_institution |
Add a bank that Plaid doesn't support |
rename_manual_institution |
Rename a manual institution |
delete_manual_institution |
Delete a manual institution and its data |
create_manual_account |
Add an account under a manual institution |
delete_manual_account |
Delete a manual account and its transactions |
import_csv_preview |
Upload a CSV and preview columns before importing |
import_csv_confirm |
Confirm and import transactions from a previewed CSV |
Resources (Auto-loaded Context)
| Resource | Description |
|---|---|
account://balances |
Current balances for all linked accounts |
transactions://recent |
Last 50 transactions |
bills://upcoming |
Bills and income due in the next 30 days |
Example Prompts
Once configured, try asking your AI:
- "What are my account balances?"
- "How much did I spend on groceries this month?"
- "Show me all transactions from Chase over $50"
- "What bills are coming up in the next two weeks?"
- "Create a monthly expense called Rent for $1500 starting March 1st"
- "Categorize that Starbucks transaction as Dining"
- "Sync my latest transactions from the bank"
Security
- The MCP server script contains no secrets — API keys are passed via environment variables
- API keys are scoped by role (viewer/member) and permissions (read/write per data type)
- Each AI agent can be restricted to specific bank accounts
- Keys can be revoked at any time from the ClearFi settings page
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。