
A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A local option-pricing microservice that also exposes an MCP server for pricing options and computing Greeks, implied volatility, PnL attribution, and portfolio Greeks.
DeskPricer option pricing MCP server is cataloged as an MCP server attributed to johnjohnjohnjohn. A local option-pricing microservice that also exposes an MCP server for pricing options and computing Greeks, implied volatility, PnL attribution, and portfolio Greeks. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for DeskPricer option pricing MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes; European options use an analytic engine while American options use only binomial CRR or JR engines.
No; it is a local-only tool bound to localhost with no auth, TLS, or rate limiting by design.
README.md · 45c360474ddc · Fetched 2026-11-13 13:59:39 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
Local HTTP pricing microservice for vanilla European and American equity options. Designed for Excel WEBSERVICE + FILTERXML integration — no VBA, no Bloomberg terminal calls inside the service.
Design intent: DeskPricer is a local-only tool for personal desk pricing and option analytics. It is not intended to be run or served as a public/server-style service. All design choices — localhost binding, no auth, no TLS, no rate limiting, XML-by-default — reflect this.
DeskPricer is available as an MCP server. Add it to Cursor, Claude Desktop, or any MCP-compatible agent:
pip install deskpricer
Published on PyPI: https://pypi.org/project/deskpricer/
Cursor — add to ~/.cursor/mcp.json:
{
"mcpServers": {
"deskpricer": {
"command": "deskpricer-mcp",
"args": []
}
}
}
Claude Desktop — add to claude_desktop_config.json:
{
"mcpServers": {
"deskpricer": {
"command": "deskpricer-mcp"
}
}
}
If deskpricer-mcp is not on your PATH, use the full path to the executable in your virtualenv.
Tools: price_option, implied_volatility, pnl_attribution, portfolio_greeks — same pricing engine as the HTTP API.
See docs/mcp_quickstart.md for full setup, conventions, and example prompts.
Go from clean clone to a working pricing call in under 5 minutes:
# 1. Install
python -m venv .venv
.venv\Scripts\activate
pip install -e ".[dev]"
# 2. Run
python -m deskpricer.main
# 3. Test with curl
curl "http://127.0.0.1:8765/v1/greeks?s=100&k=105&t=0.25&r=0.05&q=0.02&b=0.0&v=0.20&type=call&style=european"
# 4. Test with Excel (copy into a cell)
# =FILTERXML(WEBSERVICE("http://127.0.0.1:8765/v1/greeks?s=100&k=105&t=0.25&r=0.05&q=0.02&b=0.0&v=0.20&type=call&style=european"),"//outputs/price")
Expected output for the curl call (XML):
<?xml version="1.0" encoding="UTF-8"?>
<greeks>
<meta>
<service_version>3.5.0</service_version>
<quantlib_version>1.42.1</quantlib_version>
<engine>analytic</engine>
<valuation_date>2026-06-10</valuation_date>
</meta>
<inputs>
<s>100.0</s>
<k>105.0</k>
<t>0.25</t>
<r>0.05</r>
<q>0.02</q>
<b>0.0</b>
<v>0.2</v>
<type>call</type>
<style>european</style>
</inputs>
<outputs>
<price>2.288743</price>
<delta>0.356244</delta>
<gamma>0.037206</gamma>
<vega>0.185519</vega>
<theta>-0.033315</theta>
<rho>0.083111</rho>
<charm>-0.001241</charm>
</outputs>
</greeks>
For JSON, send Accept: application/json or append ?format=json.
Open sample/DeskPricer_Bitcoin_Demo.xlsx for a ready-to-run example. It contains 3 sheets:
| Sheet | What it shows |
|---|---|
| Greeks | Bitcoin European Call — $75K spot, $100K strike, 3M expiry, 50% vol |
| ImpliedVol | Back out ~68.3% implied vol from a $3,398.71 market price |
| PnL Attribution | Decompose PnL when spot rallies $75K → $80K and vol widens 50% → 55% |
Each sheet has the actual WEBSERVICE and FILTERXML formulas pre-loaded. Just start DeskPricer and the cells will populate automatically.
WEBSERVICE + FILTERXML work out of the box; JSON available via Accept: application/json127.0.0.1; no network exposure| Greek | Unit / Convention |
|---|---|
delta | Absolute (∂V/∂S) |
gamma | Absolute (∂²V/∂S²) |
vega | Per 1% vol point |
theta | Per calendar day (ACT/365). Negative for typical long options (time decay). Sign is opposite of Bloomberg DM, which reports theta as positive decay. |
rho | Per 1% rate point (risk-free rate only; no dividend-yield or borrow-cost rho) |
charm | Per calendar day (∂delta/∂t) |
Borrow cost (b): Optional annualized stock borrow cost (decimal). Effective cost-of-carry is r − q − b. Omitted or 0.0 matches pre-3.4.0 behavior.
Time to expiry (t): Supplied in years under ACT/365. Internally converted to calendar days (round(t * 365)) with a hard floor of 1 day, then rolled to the next business day using the chosen calendar (hong_kong by default). Theta and charm are computed per calendar day, not per business day.
PnL attribution: calendar_days represents the actual elapsed calendar-day hold period. theta_pnl = theta × calendar_days_elapsed. If both valuation dates are omitted, calendar_days defaults to 1. Provide explicit dates for multi-day hold accuracy.
Download DeskPricer_v3.exe from the Releases page and run:
.\DeskPricer_v3.exe
The service starts on port 8765. To use a different port:
.\DeskPricer_v3.exe --port 9000
python -m venv .venv
.venv\Scripts\activate
pip install -e ".[dev]"
python -m deskpricer.main
Check that the service is running before pulling prices:
| Cell | Formula |
|---|---|
| Status | =IFERROR(FILTERXML(WEBSERVICE("http://127.0.0.1:8765/v1/health"),"//status"),"DOWN") |
Expected output: UP
Assume your sheet has:
| Column | Label | Example Value |
|---|---|---|
| C | Spot | 100 |
| K | Strike | 105 |
| T | Time to expiry (years) | 0.25 |
| R | Risk-free rate | 0.05 |
| Q | Dividend yield | 0.02 |
| B | Borrow cost (optional, default 0.0) | 0.0 |
| V | Volatility | 0.20 |
| TYPE | Option type | call |
| STYLE | Style | european |
Step 1 — Build the URL in a helper cell (e.g. H2):
="http://127.0.0.1:8765/v1/greeks?s="&C2&"&k="&K2&"&t="&T2&"&r="&R2&"&q="&Q2&"&b="&B2&"&v="&V2&"&type="&TYPE2&"&style="&STYLE2
Step 2 — Fetch the raw XML (e.g. I2):
=WEBSERVICE(H2)
Step 3 — Extract values into individual cells:
| Output | Formula |
|---|---|
| Price | =VALUE(FILTERXML(I2,"//outputs/price")) |
| Delta | =VALUE(FILTERXML(I2,"//outputs/delta")) |
| Gamma | =VALUE(FILTERXML(I2,"//outputs/gamma")) |
| Vega | =VALUE(FILTERXML(I2,"//outputs/vega")) |
| Theta | =VALUE(FILTERXML(I2,"//outputs/theta")) |
| Rho | =VALUE(FILTERXML(I2,"//outputs/rho")) |
| Charm | =VALUE(FILTERXML(I2,"//outputs/charm")) |
Expected output for the example above:
| Greek | Value |
|---|---|
| Price | 2.288743 |
| Delta | 0.356244 |
| Gamma | 0.037206 |
| Vega | 0.185519 |
| Theta | -0.033315 |
| Rho | 0.083111 |
| Charm | -0.001241 |
Tip: Wrap each
FILTERXMLinIFERROR(...,"ERR")so one bad row doesn't break the whole sheet.
You observe a mid-market price of 6.50 for the same option and want the implied vol.
Step 1 — Build the URL (e.g. H2):
="http://127.0.0.1:8765/v1/impliedvol?s="&C2&"&k="&K2&"&t="&T2&"&r="&R2&"&q="&Q2&"&b="&B2&"&price=6.50&type="&TYPE2&"&style="&STYLE2
Step 2 — Extract implied vol:
=VALUE(FILTERXML(WEBSERVICE(H2),"//outputs/implied_vol"))
Expected output: 0.417484 (≈ 41.7 % vol)
You had a position yesterday (t-1) and want to explain today's PnL.
Assume:
| Field | t-1 Value | t Value |
|---|---|---|
| Spot | 100 | 102 |
| Time | 0.25 | 0.2466 |
| Vol | 0.20 | 0.22 |
| Rate | 0.05 | 0.05 |
| Div | 0.02 | 0.02 |
| Borrow | 0.0 | 0.0 |
| Qty | 10 | — |
Step 1 — Build the URL:
="http://127.0.0.1:8765/v1/pnl_attribution?s_t_minus_1=100&s_t=102&k=105&t_t_minus_1=0.25&t_t=0.2466&r_t_minus_1=0.05&r_t=0.05&q_t_minus_1=0.02&q_t=0.02&b_t_minus_1=0.0&b_t=0.0&v_t_minus_1=0.2&v_t=0.22&type=call&style=european&qty=10&cross_greeks=true"
Step 2 — Extract attribution buckets:
| Bucket | Formula |
|---|---|
| Actual PnL | =VALUE(FILTERXML(WEBSERVICE(H2),"//outputs/actual_pnl")) |
| Delta PnL | =VALUE(FILTERXML(WEBSERVICE(H2),"//outputs/delta_pnl")) |
| Gamma PnL | =VALUE(FILTERXML(WEBSERVICE(H2),"//outputs/gamma_pnl")) |
| Vega PnL | =VALUE(FILTERXML(WEBSERVICE(H2),"//outputs/vega_pnl")) |
| Theta PnL | =VALUE(FILTERXML(WEBSERVICE(H2),"//outputs/theta_pnl")) |
| Rho PnL | =VALUE(FILTERXML(WEBSERVICE(H2),"//outputs/rho_pnl")) |
| Vanna PnL | =VALUE(FILTERXML(WEBSERVICE(H2),"//outputs/vanna_pnl")) |
| Volga PnL | =VALUE(FILTERXML(WEBSERVICE(H2),"//outputs/volga_pnl")) |
| Residual | =VALUE(FILTERXML(WEBSERVICE(H2),"//outputs/residual_pnl")) |
Expected output:
| Bucket | Value |
|---|---|
| price_t_minus_1 | 2.288743 |
| price_t | 3.448862 |
| Actual PnL | 11.601 |
| Delta PnL | 7.125 |
| Gamma PnL | 0.744 |
| Vega PnL | 3.710 |
| Theta PnL | -0.333 |
| Rho PnL | 0.0 |
| Vanna PnL | 0.343 |
| Volga PnL | 0.031 |
| Explained PnL | 11.621 |
| Residual | -0.020 |
The
residual_pnlcaptures higher-order effects and model differences between t-1 and t. Enablecross_greeks=trueto include vanna and volga contributions.
For book-level aggregation, use the POST /v1/portfolio/greeks endpoint via Power Query or a small VBA helper. The endpoint accepts a JSON body with multiple legs and returns per-leg and aggregate Greeks.
See docs/api.md for the full request/response schema.
| Greek | Unit | Notes |
|---|---|---|
| Delta | absolute | Per $1 spot move |
| Gamma | absolute | Per $1 spot move |
| Vega | per 1 vol point | i.e. decimal vol × 100 |
| Theta | per calendar day | Forward P&L of one calendar day passing (1-calendar-day revalue − today's price). Negative for a decaying long option. |
| Rho | per 1% rate point | i.e. decimal rate × 100 |
| Charm | per calendar day | ∂delta/∂t (delta at t − 1/365 − delta today). Negative for a long call — delta decays toward expiry |
DESKPRICER_LOG_DIR env var overrides the default (C:\ProgramData\DeskPricer\logs on Windows, ~/.local/share/deskpricer/logs elsewhere).logging module with a custom JSON formatter and RotatingFileHandler (10 MB rotation, 5 backups). This replaces the earlier hand-rolled open() approach.$env:DESKPRICER_LOG_DIR = "C:\MyLogs"
python -m deskpricer.main
If pip install fails on QuantLib, ensure you have a C++ compiler and CMake, or use a pre-built wheel. See docs/operator_guide.md for detailed steps.
t=0 is floored to 1 calendar day to prevent QuantLib collapse. You will get a small time-value premium rather than pure intrinsic. This is intentional.
style=european → only engine=analyticstyle=american → only engine=binomial_crr or binomial_jrExcel receives XML by default. For JSON, send Accept: application/json or ?format=json.
| Code | Meaning |
|---|---|
INVALID_INPUT | Business-rule or schema validation failed |
UNSUPPORTED_COMBINATION | Engine/style mismatch |
PRICING_FAILURE | Unexpected internal error (no traceback leaked) |
min(4, cpu_count()) workers (DESKPRICER_WORKERS). Portfolio legs batch in a single worker call per request.bump_spot_rel ≤ 0.1, bump_vol_abs ≤ 0.01, bump_rate_abs ≤ 0.01.pytest tests -v
DeskPricer is built as a personal desktop tool, not a public API. This explains every intentional omission:
127.0.0.1 can reach the service.WEBSERVICE function does not send Accept: application/json.If you need any of these features, DeskPricer is the wrong tool. Use a proper API gateway or a full-featured pricing platform.
QuantLib's Python bindings rely on a single process-global Settings.instance() object. Rather than serializing all requests with an asyncio.Lock, DeskPricer dispatches QuantLib work to a ProcessPoolExecutor. Each worker process has its own isolated settings, so concurrent agent or Excel calls can price in parallel without corrupting evaluation dates. Pool size defaults to min(4, cpu_count()) and is configurable via DESKPRICER_WORKERS.
Europeans and economically equivalent Americans bypass QuantLib entirely and use a pure-Python BSM implementation (bsm_fast), validated against QuantLib to six decimal places.
Excel's WEBSERVICE function only supports HTTP GET. Since the primary user of this service is Excel, the GET /v1/pnl_attribution endpoint is designed specifically for WEBSERVICE compatibility. Programmatic clients that need a cleaner JSON body can use POST /v1/portfolio/greeks today; a POST alternative for PnL attribution may be added in a future release.
DeskPricer/
├── pyproject.toml
├── README.md
├── src/deskpricer/ # FastAPI app + pricing core
│ ├── app.py # Thin composition root
│ ├── routers/ # APIRouter modules
│ ├── services/ # Pricing orchestration + QL lock
│ ├── pricing/ # QuantLib pricing engines
│ ├── schemas.py # Pydantic models
│ ├── responses.py # XML/JSON serializers
│ ├── errors.py # Custom exceptions
│ ├── logging_config.py # Structured JSON logging
│ └── main.py # Uvicorn entrypoint
├── tests/ # pytest + hypothesis
├── tests/fixtures/ # Regression baseline JSONs
├── scripts/ # Build + fixture generation
├── sample/ # Demo Excel workbook
└── docs/ # API ref + operator guide
MIT
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for DeskPricer option pricing MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/portall_ws)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.