fintable-mcp 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ __pycache__/
2
+ *.pyc
3
+ *.pyo
4
+ .env
5
+ .venv/
6
+ venv/
7
+ *.egg-info/
8
+ dist/
9
+ build/
10
+ .DS_Store
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jason Braatz
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,219 @@
1
+ Metadata-Version: 2.4
2
+ Name: fintable-mcp
3
+ Version: 0.1.0
4
+ Summary: Unofficial MCP server for fintable.io — manage financial categories, rules, and transactions through AI assistants
5
+ Project-URL: Homepage, https://github.com/jasoncbraatz/fintable-mcp
6
+ Project-URL: Repository, https://github.com/jasoncbraatz/fintable-mcp
7
+ Project-URL: Issues, https://github.com/jasoncbraatz/fintable-mcp/issues
8
+ Author-email: Jason Braatz <jasoncbraatz@gmail.com>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: accounting,airtable,finance,fintable,laravel,livewire,mcp,model-context-protocol,plaid
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Classifier: Topic :: Office/Business :: Financial
22
+ Classifier: Topic :: Software Development :: Libraries
23
+ Requires-Python: >=3.10
24
+ Requires-Dist: beautifulsoup4>=4.12.0
25
+ Requires-Dist: httpx>=0.27.0
26
+ Requires-Dist: mcp[cli]>=1.0.0
27
+ Requires-Dist: pydantic>=2.0.0
28
+ Description-Content-Type: text/markdown
29
+
30
+ # fintable-mcp
31
+
32
+ An unofficial MCP (Model Context Protocol) server for [fintable.io](https://fintable.io), enabling AI assistants like Claude to manage your financial categories, rules, and transactions directly — no more clicking through multi-step wizards.
33
+
34
+ > **Note**: This is a community project, not officially supported by fintable.io. It works by communicating with Fintable's Laravel Livewire 3 backend using your browser session. If you're the Fintable developer and would like to collaborate on an official MCP server or public API, please open an issue — we'd love to work with you! 🤝
35
+
36
+ ---
37
+
38
+ ## What it does
39
+
40
+ Once installed, you can ask Claude things like:
41
+
42
+ - *"Create these expense categories: Office Supplies, Shipping, Packaging, Equipment Rental, Software Subscriptions"*
43
+ - *"Create rules: 'Staples' → Office Supplies, 'UPS' → Shipping, 'USPS' → Shipping"*
44
+ - *"Run all rules to categorize my transactions"*
45
+ - *"What's my current account balance at Ally Bank?"*
46
+ - *"List all my categorization rules"*
47
+
48
+ No more going through a 3-page wizard 20 times to set up 20 categories. Just tell Claude what you need.
49
+
50
+ ---
51
+
52
+ ## Tools provided
53
+
54
+ ### Read Operations
55
+ | Tool | Description |
56
+ |------|-------------|
57
+ | `fintable_list_accounts` | List all connected bank accounts with balances |
58
+ | `fintable_list_categories` | List all transaction categories |
59
+ | `fintable_list_rules` | List categorization rules (with pagination) |
60
+ | `fintable_list_transactions` | List/search transactions with optional filtering |
61
+
62
+ ### Write Operations
63
+ | Tool | Description |
64
+ |------|-------------|
65
+ | `fintable_create_category` | Create a single category |
66
+ | `fintable_create_bulk_categories` | Create up to 50 categories at once |
67
+ | `fintable_create_rule` | Create a categorization rule |
68
+ | `fintable_create_bulk_rules` | Create multiple rules at once |
69
+ | `fintable_run_all_rules` | Execute all rules on uncategorized transactions |
70
+ | `fintable_delete_rule` | Delete a categorization rule |
71
+ | `fintable_sync_accounts` | Trigger bank account sync via Plaid |
72
+ | `fintable_resync_spreadsheets` | Push updates to Airtable/Google Sheets |
73
+
74
+ ---
75
+
76
+ ## Installation
77
+
78
+ ### Prerequisites
79
+
80
+ - Python 3.10+
81
+ - A [fintable.io](https://fintable.io) account with connected bank accounts
82
+ - Claude Desktop (or any MCP-compatible client — Cherry Studio, etc.)
83
+
84
+ ### 1. Clone this repo
85
+
86
+ ```bash
87
+ git clone https://github.com/jasoncbraatz/fintable-mcp.git
88
+ cd fintable-mcp
89
+ ```
90
+
91
+ ### 2. Install dependencies
92
+
93
+ ```bash
94
+ pip install -r requirements.txt
95
+ ```
96
+
97
+ Or with uv (faster):
98
+
99
+ ```bash
100
+ uv pip install -r requirements.txt
101
+ ```
102
+
103
+ ### 3. Get your session cookies
104
+
105
+ 1. Open Chrome and go to [fintable.io](https://fintable.io) — make sure you're logged in
106
+ 2. Open DevTools (F12 or Cmd+Option+I)
107
+ 3. Go to the **Network** tab
108
+ 4. Click on any request to fintable.io
109
+ 5. Find the **Cookie** header in Request Headers
110
+ 6. Copy the entire cookie string
111
+
112
+ ### 4. Configure Claude Desktop
113
+
114
+ Add the following to your Claude Desktop config file:
115
+
116
+ **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
117
+ **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
118
+
119
+ ```json
120
+ {
121
+ "mcpServers": {
122
+ "fintable": {
123
+ "command": "python",
124
+ "args": ["/absolute/path/to/fintable-mcp/fintable_mcp.py"],
125
+ "env": {
126
+ "FINTABLE_COOKIES": "your_full_cookie_string_here"
127
+ }
128
+ }
129
+ }
130
+ }
131
+ ```
132
+
133
+ > 💡 Replace `/absolute/path/to/fintable-mcp/fintable_mcp.py` with the actual path where you cloned this repo.
134
+
135
+ ### 5. Restart Claude Desktop
136
+
137
+ After saving the config, fully quit and relaunch Claude Desktop. The `fintable` tools will appear in Claude's tool list.
138
+
139
+ ---
140
+
141
+ ## Authentication
142
+
143
+ This server authenticates using your fintable.io browser session cookies — the same cookies your browser uses when you're logged in. Sessions are kept in memory only while the server is running.
144
+
145
+ **Your credentials are never stored to disk** — they live only in the environment variable you configure above.
146
+
147
+ ### Session Expiration
148
+
149
+ Your browser cookies will eventually expire. When they do, the server will return an authentication error. Just re-export your cookies from Chrome and update the `FINTABLE_COOKIES` environment variable.
150
+
151
+ ---
152
+
153
+ ## How it works (for the curious / developers)
154
+
155
+ Fintable.io is a Laravel application using Livewire 3 + Alpine.js for its frontend — there's no public REST API. This MCP server:
156
+
157
+ 1. **Authenticates** using your browser session cookies (CSRF token + session cookie)
158
+ 2. **Fetches pages** to extract Livewire component snapshots from `wire:snapshot` HTML attributes
159
+ 3. **Makes Livewire protocol calls** — POST requests to the `/livewire-{hash}/update` endpoint with component snapshots, method calls, and property updates
160
+ 4. **Parses HTML responses** to extract structured data (accounts, categories, rules, transactions)
161
+
162
+ The Livewire update path includes a hash (e.g., `/livewire-5c7ce5a8/update`) that can change when the app is redeployed. The server auto-discovers this path from the `data-update-uri` HTML attribute on each page load, so it stays resilient across deployments.
163
+
164
+ ---
165
+
166
+ ## Known Issues & Limitations
167
+
168
+ ### Livewire Hash Changes
169
+ The Livewire update endpoint includes a build hash (e.g., `/livewire-5c7ce5a8/update`) that changes on each deployment. The server auto-discovers this on every page fetch, but if Fintable significantly restructures their Livewire components or changes component names, things may break. This is inherent to working without an official API.
170
+
171
+ ### HTML Parsing Fragility
172
+ Since there's no JSON API, read operations depend on parsing HTML structure. If Fintable redesigns their UI layout, the parsing logic may need updating. This is the biggest maintenance burden of the current approach.
173
+
174
+ ### The Path Forward: JSON Endpoints
175
+ The ideal solution is for Fintable to expose lightweight JSON API endpoints. This would:
176
+ - Eliminate the fragile HTML parsing
177
+ - Remove the Livewire hash dependency
178
+ - Enable more reliable integrations
179
+ - Open the door for other community tools and integrations
180
+ - Be a great selling point for the product (MCP-ready financial tools are a differentiator!)
181
+
182
+ If you're the Fintable developer reading this — even a handful of authenticated JSON endpoints for categories, rules, and transactions would make this server rock-solid and dramatically easier to maintain. Happy to collaborate on the design. 🚀
183
+
184
+ ---
185
+
186
+ ## Security Model
187
+
188
+ This server runs **locally** on your machine as a stdio subprocess of your MCP client. It:
189
+
190
+ - Never exposes a network port
191
+ - Never stores credentials to disk
192
+ - Only communicates with fintable.io using your existing browser session
193
+ - Runs as a single-user, single-client process
194
+
195
+ Your session cookies are passed via environment variable and kept in memory only while the server is running.
196
+
197
+ ---
198
+
199
+ ## Contributing
200
+
201
+ PRs welcome! Some ideas for future improvements:
202
+
203
+ - Support for transaction date range filtering
204
+ - Category group management (create/rename groups)
205
+ - Rule priority reordering
206
+ - Export categories/rules as JSON for backup
207
+ - Support for multiple Fintable accounts
208
+
209
+ **Note on deletions:** Category deletion is intentionally not supported — that's a destructive action best done through the Fintable web UI where you can see the full impact. A little friction before deleting things is a feature, not a bug.
210
+
211
+ ---
212
+
213
+ ## Disclaimer
214
+
215
+ This project is not affiliated with, endorsed by, or officially supported by fintable.io. It was built by reverse-engineering the Livewire 3 frontend protocol (with the developer's blessing). Use at your own risk — the underlying Livewire protocol may change without notice.
216
+
217
+ ## License
218
+
219
+ MIT
@@ -0,0 +1,190 @@
1
+ # fintable-mcp
2
+
3
+ An unofficial MCP (Model Context Protocol) server for [fintable.io](https://fintable.io), enabling AI assistants like Claude to manage your financial categories, rules, and transactions directly — no more clicking through multi-step wizards.
4
+
5
+ > **Note**: This is a community project, not officially supported by fintable.io. It works by communicating with Fintable's Laravel Livewire 3 backend using your browser session. If you're the Fintable developer and would like to collaborate on an official MCP server or public API, please open an issue — we'd love to work with you! 🤝
6
+
7
+ ---
8
+
9
+ ## What it does
10
+
11
+ Once installed, you can ask Claude things like:
12
+
13
+ - *"Create these expense categories: Office Supplies, Shipping, Packaging, Equipment Rental, Software Subscriptions"*
14
+ - *"Create rules: 'Staples' → Office Supplies, 'UPS' → Shipping, 'USPS' → Shipping"*
15
+ - *"Run all rules to categorize my transactions"*
16
+ - *"What's my current account balance at Ally Bank?"*
17
+ - *"List all my categorization rules"*
18
+
19
+ No more going through a 3-page wizard 20 times to set up 20 categories. Just tell Claude what you need.
20
+
21
+ ---
22
+
23
+ ## Tools provided
24
+
25
+ ### Read Operations
26
+ | Tool | Description |
27
+ |------|-------------|
28
+ | `fintable_list_accounts` | List all connected bank accounts with balances |
29
+ | `fintable_list_categories` | List all transaction categories |
30
+ | `fintable_list_rules` | List categorization rules (with pagination) |
31
+ | `fintable_list_transactions` | List/search transactions with optional filtering |
32
+
33
+ ### Write Operations
34
+ | Tool | Description |
35
+ |------|-------------|
36
+ | `fintable_create_category` | Create a single category |
37
+ | `fintable_create_bulk_categories` | Create up to 50 categories at once |
38
+ | `fintable_create_rule` | Create a categorization rule |
39
+ | `fintable_create_bulk_rules` | Create multiple rules at once |
40
+ | `fintable_run_all_rules` | Execute all rules on uncategorized transactions |
41
+ | `fintable_delete_rule` | Delete a categorization rule |
42
+ | `fintable_sync_accounts` | Trigger bank account sync via Plaid |
43
+ | `fintable_resync_spreadsheets` | Push updates to Airtable/Google Sheets |
44
+
45
+ ---
46
+
47
+ ## Installation
48
+
49
+ ### Prerequisites
50
+
51
+ - Python 3.10+
52
+ - A [fintable.io](https://fintable.io) account with connected bank accounts
53
+ - Claude Desktop (or any MCP-compatible client — Cherry Studio, etc.)
54
+
55
+ ### 1. Clone this repo
56
+
57
+ ```bash
58
+ git clone https://github.com/jasoncbraatz/fintable-mcp.git
59
+ cd fintable-mcp
60
+ ```
61
+
62
+ ### 2. Install dependencies
63
+
64
+ ```bash
65
+ pip install -r requirements.txt
66
+ ```
67
+
68
+ Or with uv (faster):
69
+
70
+ ```bash
71
+ uv pip install -r requirements.txt
72
+ ```
73
+
74
+ ### 3. Get your session cookies
75
+
76
+ 1. Open Chrome and go to [fintable.io](https://fintable.io) — make sure you're logged in
77
+ 2. Open DevTools (F12 or Cmd+Option+I)
78
+ 3. Go to the **Network** tab
79
+ 4. Click on any request to fintable.io
80
+ 5. Find the **Cookie** header in Request Headers
81
+ 6. Copy the entire cookie string
82
+
83
+ ### 4. Configure Claude Desktop
84
+
85
+ Add the following to your Claude Desktop config file:
86
+
87
+ **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
88
+ **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
89
+
90
+ ```json
91
+ {
92
+ "mcpServers": {
93
+ "fintable": {
94
+ "command": "python",
95
+ "args": ["/absolute/path/to/fintable-mcp/fintable_mcp.py"],
96
+ "env": {
97
+ "FINTABLE_COOKIES": "your_full_cookie_string_here"
98
+ }
99
+ }
100
+ }
101
+ }
102
+ ```
103
+
104
+ > 💡 Replace `/absolute/path/to/fintable-mcp/fintable_mcp.py` with the actual path where you cloned this repo.
105
+
106
+ ### 5. Restart Claude Desktop
107
+
108
+ After saving the config, fully quit and relaunch Claude Desktop. The `fintable` tools will appear in Claude's tool list.
109
+
110
+ ---
111
+
112
+ ## Authentication
113
+
114
+ This server authenticates using your fintable.io browser session cookies — the same cookies your browser uses when you're logged in. Sessions are kept in memory only while the server is running.
115
+
116
+ **Your credentials are never stored to disk** — they live only in the environment variable you configure above.
117
+
118
+ ### Session Expiration
119
+
120
+ Your browser cookies will eventually expire. When they do, the server will return an authentication error. Just re-export your cookies from Chrome and update the `FINTABLE_COOKIES` environment variable.
121
+
122
+ ---
123
+
124
+ ## How it works (for the curious / developers)
125
+
126
+ Fintable.io is a Laravel application using Livewire 3 + Alpine.js for its frontend — there's no public REST API. This MCP server:
127
+
128
+ 1. **Authenticates** using your browser session cookies (CSRF token + session cookie)
129
+ 2. **Fetches pages** to extract Livewire component snapshots from `wire:snapshot` HTML attributes
130
+ 3. **Makes Livewire protocol calls** — POST requests to the `/livewire-{hash}/update` endpoint with component snapshots, method calls, and property updates
131
+ 4. **Parses HTML responses** to extract structured data (accounts, categories, rules, transactions)
132
+
133
+ The Livewire update path includes a hash (e.g., `/livewire-5c7ce5a8/update`) that can change when the app is redeployed. The server auto-discovers this path from the `data-update-uri` HTML attribute on each page load, so it stays resilient across deployments.
134
+
135
+ ---
136
+
137
+ ## Known Issues & Limitations
138
+
139
+ ### Livewire Hash Changes
140
+ The Livewire update endpoint includes a build hash (e.g., `/livewire-5c7ce5a8/update`) that changes on each deployment. The server auto-discovers this on every page fetch, but if Fintable significantly restructures their Livewire components or changes component names, things may break. This is inherent to working without an official API.
141
+
142
+ ### HTML Parsing Fragility
143
+ Since there's no JSON API, read operations depend on parsing HTML structure. If Fintable redesigns their UI layout, the parsing logic may need updating. This is the biggest maintenance burden of the current approach.
144
+
145
+ ### The Path Forward: JSON Endpoints
146
+ The ideal solution is for Fintable to expose lightweight JSON API endpoints. This would:
147
+ - Eliminate the fragile HTML parsing
148
+ - Remove the Livewire hash dependency
149
+ - Enable more reliable integrations
150
+ - Open the door for other community tools and integrations
151
+ - Be a great selling point for the product (MCP-ready financial tools are a differentiator!)
152
+
153
+ If you're the Fintable developer reading this — even a handful of authenticated JSON endpoints for categories, rules, and transactions would make this server rock-solid and dramatically easier to maintain. Happy to collaborate on the design. 🚀
154
+
155
+ ---
156
+
157
+ ## Security Model
158
+
159
+ This server runs **locally** on your machine as a stdio subprocess of your MCP client. It:
160
+
161
+ - Never exposes a network port
162
+ - Never stores credentials to disk
163
+ - Only communicates with fintable.io using your existing browser session
164
+ - Runs as a single-user, single-client process
165
+
166
+ Your session cookies are passed via environment variable and kept in memory only while the server is running.
167
+
168
+ ---
169
+
170
+ ## Contributing
171
+
172
+ PRs welcome! Some ideas for future improvements:
173
+
174
+ - Support for transaction date range filtering
175
+ - Category group management (create/rename groups)
176
+ - Rule priority reordering
177
+ - Export categories/rules as JSON for backup
178
+ - Support for multiple Fintable accounts
179
+
180
+ **Note on deletions:** Category deletion is intentionally not supported — that's a destructive action best done through the Fintable web UI where you can see the full impact. A little friction before deleting things is a feature, not a bug.
181
+
182
+ ---
183
+
184
+ ## Disclaimer
185
+
186
+ This project is not affiliated with, endorsed by, or officially supported by fintable.io. It was built by reverse-engineering the Livewire 3 frontend protocol (with the developer's blessing). Use at your own risk — the underlying Livewire protocol may change without notice.
187
+
188
+ ## License
189
+
190
+ MIT