finance-calc-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.
- finance_calc_mcp-0.1.0/.gitignore +6 -0
- finance_calc_mcp-0.1.0/LICENSE +21 -0
- finance_calc_mcp-0.1.0/PKG-INFO +119 -0
- finance_calc_mcp-0.1.0/README.md +109 -0
- finance_calc_mcp-0.1.0/pyproject.toml +15 -0
- finance_calc_mcp-0.1.0/src/finance_calc_mcp/__init__.py +1 -0
- finance_calc_mcp-0.1.0/src/finance_calc_mcp/server.py +550 -0
- finance_calc_mcp-0.1.0/uv.lock +747 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 FellowTraveler
|
|
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,119 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: finance-calc-mcp
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Business, financial, and tax calculator — MCP server + CLI
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Requires-Dist: mcp>=1.0.0
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
|
|
11
|
+
# finance-calc-mcp
|
|
12
|
+
|
|
13
|
+
Business, financial, and tax calculator — MCP server + CLI.
|
|
14
|
+
|
|
15
|
+
Single command install. No cloning required.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Run directly (no install needed)
|
|
23
|
+
uvx finance-calc-mcp calc "185000 * 0.21"
|
|
24
|
+
|
|
25
|
+
# Or install permanently
|
|
26
|
+
uv tool install finance-calc-mcp
|
|
27
|
+
# or: pip install finance-calc-mcp
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Claude Desktop — MCP Config
|
|
33
|
+
|
|
34
|
+
Edit `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"mcpServers": {
|
|
39
|
+
"finance-calculator": {
|
|
40
|
+
"command": "uvx",
|
|
41
|
+
"args": ["finance-calc-mcp"]
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Restart Claude Desktop.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Claude Code — MCP Config
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
claude mcp add finance-calculator -- uvx finance-calc-mcp
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## CLI Usage
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# Evaluate any expression
|
|
63
|
+
finance-calc-mcp calc "185000 * 0.21"
|
|
64
|
+
finance-calc-mcp calc "(850000 - 612000) / 850000 * 100"
|
|
65
|
+
|
|
66
|
+
# Gross margin
|
|
67
|
+
finance-calc-mcp margin 850000 612000
|
|
68
|
+
|
|
69
|
+
# 2024 US federal income tax estimate
|
|
70
|
+
finance-calc-mcp tax 185000 single
|
|
71
|
+
finance-calc-mcp tax 320000 married_jointly
|
|
72
|
+
|
|
73
|
+
# Self-employment tax
|
|
74
|
+
finance-calc-mcp se-tax 95000
|
|
75
|
+
|
|
76
|
+
# Loan amortization (add --schedule for full table)
|
|
77
|
+
finance-calc-mcp amortize 400000 6.5 30
|
|
78
|
+
finance-calc-mcp amortize 400000 6.5 30 --schedule
|
|
79
|
+
|
|
80
|
+
# Payroll (optional: state SUTA rate %)
|
|
81
|
+
finance-calc-mcp payroll 95000
|
|
82
|
+
finance-calc-mcp payroll 95000 3.4
|
|
83
|
+
|
|
84
|
+
# Depreciation (straight-line default, or double_declining)
|
|
85
|
+
finance-calc-mcp depreciation 50000 5
|
|
86
|
+
finance-calc-mcp depreciation 50000 5 5000 --method double_declining
|
|
87
|
+
|
|
88
|
+
# Break-even analysis
|
|
89
|
+
finance-calc-mcp break-even 120000 49.99 18.50
|
|
90
|
+
|
|
91
|
+
# Percent change
|
|
92
|
+
finance-calc-mcp pct-change 1200000 1485000
|
|
93
|
+
|
|
94
|
+
# Format as currency
|
|
95
|
+
finance-calc-mcp format 1234567.89
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## MCP Tools Available to Claude
|
|
101
|
+
|
|
102
|
+
| Tool | Description |
|
|
103
|
+
|---|---|
|
|
104
|
+
| `calculate` | Safe eval of any math expression |
|
|
105
|
+
| `gross_margin` | Revenue, COGS → profit, margin %, markup % |
|
|
106
|
+
| `us_income_tax_estimate` | 2024 federal tax with bracket detail |
|
|
107
|
+
| `self_employment_tax` | SE tax + deductible half |
|
|
108
|
+
| `depreciation` | Straight-line or double-declining schedule |
|
|
109
|
+
| `payroll_summary` | Employer cost + employee FICA |
|
|
110
|
+
| `loan_amortization` | Monthly payment, total interest, optional full schedule |
|
|
111
|
+
| `percent_change` | % change between two values |
|
|
112
|
+
| `break_even` | Units + revenue to break even |
|
|
113
|
+
| `currency_format` | Format number as $USD |
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## License
|
|
118
|
+
|
|
119
|
+
MIT
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# finance-calc-mcp
|
|
2
|
+
|
|
3
|
+
Business, financial, and tax calculator — MCP server + CLI.
|
|
4
|
+
|
|
5
|
+
Single command install. No cloning required.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# Run directly (no install needed)
|
|
13
|
+
uvx finance-calc-mcp calc "185000 * 0.21"
|
|
14
|
+
|
|
15
|
+
# Or install permanently
|
|
16
|
+
uv tool install finance-calc-mcp
|
|
17
|
+
# or: pip install finance-calc-mcp
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Claude Desktop — MCP Config
|
|
23
|
+
|
|
24
|
+
Edit `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"mcpServers": {
|
|
29
|
+
"finance-calculator": {
|
|
30
|
+
"command": "uvx",
|
|
31
|
+
"args": ["finance-calc-mcp"]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Restart Claude Desktop.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Claude Code — MCP Config
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
claude mcp add finance-calculator -- uvx finance-calc-mcp
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## CLI Usage
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
# Evaluate any expression
|
|
53
|
+
finance-calc-mcp calc "185000 * 0.21"
|
|
54
|
+
finance-calc-mcp calc "(850000 - 612000) / 850000 * 100"
|
|
55
|
+
|
|
56
|
+
# Gross margin
|
|
57
|
+
finance-calc-mcp margin 850000 612000
|
|
58
|
+
|
|
59
|
+
# 2024 US federal income tax estimate
|
|
60
|
+
finance-calc-mcp tax 185000 single
|
|
61
|
+
finance-calc-mcp tax 320000 married_jointly
|
|
62
|
+
|
|
63
|
+
# Self-employment tax
|
|
64
|
+
finance-calc-mcp se-tax 95000
|
|
65
|
+
|
|
66
|
+
# Loan amortization (add --schedule for full table)
|
|
67
|
+
finance-calc-mcp amortize 400000 6.5 30
|
|
68
|
+
finance-calc-mcp amortize 400000 6.5 30 --schedule
|
|
69
|
+
|
|
70
|
+
# Payroll (optional: state SUTA rate %)
|
|
71
|
+
finance-calc-mcp payroll 95000
|
|
72
|
+
finance-calc-mcp payroll 95000 3.4
|
|
73
|
+
|
|
74
|
+
# Depreciation (straight-line default, or double_declining)
|
|
75
|
+
finance-calc-mcp depreciation 50000 5
|
|
76
|
+
finance-calc-mcp depreciation 50000 5 5000 --method double_declining
|
|
77
|
+
|
|
78
|
+
# Break-even analysis
|
|
79
|
+
finance-calc-mcp break-even 120000 49.99 18.50
|
|
80
|
+
|
|
81
|
+
# Percent change
|
|
82
|
+
finance-calc-mcp pct-change 1200000 1485000
|
|
83
|
+
|
|
84
|
+
# Format as currency
|
|
85
|
+
finance-calc-mcp format 1234567.89
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## MCP Tools Available to Claude
|
|
91
|
+
|
|
92
|
+
| Tool | Description |
|
|
93
|
+
|---|---|
|
|
94
|
+
| `calculate` | Safe eval of any math expression |
|
|
95
|
+
| `gross_margin` | Revenue, COGS → profit, margin %, markup % |
|
|
96
|
+
| `us_income_tax_estimate` | 2024 federal tax with bracket detail |
|
|
97
|
+
| `self_employment_tax` | SE tax + deductible half |
|
|
98
|
+
| `depreciation` | Straight-line or double-declining schedule |
|
|
99
|
+
| `payroll_summary` | Employer cost + employee FICA |
|
|
100
|
+
| `loan_amortization` | Monthly payment, total interest, optional full schedule |
|
|
101
|
+
| `percent_change` | % change between two values |
|
|
102
|
+
| `break_even` | Units + revenue to break even |
|
|
103
|
+
| `currency_format` | Format number as $USD |
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## License
|
|
108
|
+
|
|
109
|
+
MIT
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "finance-calc-mcp"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Business, financial, and tax calculator — MCP server + CLI"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
dependencies = ["mcp>=1.0.0"]
|
|
13
|
+
|
|
14
|
+
[project.scripts]
|
|
15
|
+
finance-calc-mcp = "finance_calc_mcp.server:main"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Finance Calculator MCP Server + CLI."""
|