loading…
Search for a command to run...
loading…
Enables AI assistants to interact with the Pocketsmith personal finance API to manage accounts, budgets, and transactions through natural language. It supports
Enables AI assistants to interact with the Pocketsmith personal finance API to manage accounts, budgets, and transactions through natural language. It supports comprehensive financial tasks including spending analysis, category management, and tracking recurring bills.
A comprehensive Model Context Protocol (MCP) server for the Pocketsmith personal finance API. Transform your AI assistant into a powerful financial management tool with access to accounts, budgets, transactions, and more.
PyPI version Python 3.11+ License: MIT
The fastest way to try it out:
uvx pocketsmith-mcp
pip install pocketsmith-mcp
git clone https://github.com/dannyshaw/pocketsmith-mcp.git
cd pocketsmith-mcp
pip install -e .
⚠️ Security: Treat your API key like a password. It has full access to your financial data.
export POCKETSMITH_API_KEY=your_api_key_here
Or create a .env file:
echo "POCKETSMITH_API_KEY=your_api_key_here" > .env
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"pocketsmith": {
"command": "uvx",
"args": ["pocketsmith-mcp"],
"env": {
"POCKETSMITH_API_KEY": "your_api_key_here"
}
}
}
}
Add to ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"pocketsmith": {
"command": "pocketsmith-mcp",
"env": {
"POCKETSMITH_API_KEY": "your_api_key_here"
}
}
}
}
Run the server directly:
pocketsmith-mcp
Once configured, you can ask your AI assistant:
| Tool | Description |
|---|---|
pocketsmith_list_accounts |
List all accounts with balances |
pocketsmith_get_account |
Get detailed account information |
pocketsmith_list_transaction_accounts |
List transaction accounts with details |
| Tool | Description |
|---|---|
pocketsmith_get_budget_summary |
Get budget summary for a date range |
pocketsmith_list_budget |
Per-category budget analysis |
pocketsmith_get_trend_analysis |
Spending trends across categories |
| Tool | Description |
|---|---|
pocketsmith_list_transactions |
List transactions with filters |
pocketsmith_list_transactions_by_account |
Filter transactions by account |
pocketsmith_list_transactions_by_category |
Filter transactions by category |
pocketsmith_get_transaction |
Get transaction details |
pocketsmith_create_transaction |
Create new transaction |
pocketsmith_update_transaction |
Update transaction details |
pocketsmith_delete_transaction |
Delete a transaction |
pocketsmith_search_transactions |
Search by keyword |
pocketsmith_categorize_transaction |
Quick categorization |
| Tool | Description |
|---|---|
pocketsmith_list_categories |
List all categories |
pocketsmith_create_category |
Create new category |
pocketsmith_list_category_rules |
List auto-categorization rules |
pocketsmith_create_category_rule |
Create categorization rule |
| Tool | Description |
|---|---|
pocketsmith_list_events |
List recurring transactions |
pocketsmith_create_event |
Create recurring transaction |
| Tool | Description |
|---|---|
pocketsmith_list_labels |
List all transaction labels |
pocketsmith_get_status |
Check connection status |
See SECURITY.md for detailed security information.
20 out of 44 Pocketsmith API endpoints (45%)
Focused on the most useful endpoints for personal finance management:
# Clone repository
git clone https://github.com/dannyshaw/pocketsmith-mcp.git
cd pocketsmith-mcp
# Install dependencies
uv sync
# Run tests
pytest
# Run tests with coverage
pytest --cov=src/pocketsmith_mcp
# Lint and format
ruff check .
ruff format .
# Type check
mypy src
# Run all tests
pytest -v
# Run specific test file
pytest tests/test_client.py -v
# Run with coverage report
pytest --cov=src/pocketsmith_mcp --cov-report=html
pocketsmith-mcp/
├── src/pocketsmith_mcp/
│ ├── __init__.py # Package initialization
│ ├── client.py # Pocketsmith API client
│ ├── config.py # Configuration settings
│ └── server.py # MCP server implementation
├── tests/
│ ├── conftest.py # Test fixtures
│ └── test_client.py # Client tests
├── pyproject.toml # Project configuration
├── README.md # This file
└── SECURITY.md # Security documentation
Contributions are welcome! Please:
git checkout -b feature/amazing-feature)pytest)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)See CONTRIBUTING.md for detailed guidelines.
MIT License - see LICENSE for details.
Future enhancements:
Made with ❤️ for personal finance management
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"pocketsmith-mcp-server": {
"command": "npx",
"args": []
}
}
}