Skip to main content
Glama
PolyTax8949 MCP Server

PolyTax8949 MCP Server

by spleyapp
README.md
# PolyTax8949 MCP Server & CLI

**100% Read-Only Polymarket 2026 Tax-Loss Harvest Radar, Dangling `$0` Expired Losing Shares Detector & IRS Form 1099-DA Risk Oracle.**

- **Live Web App & Form 8949 / TurboTax / Koinly / Awaken CSV Exports ($29–$149):** https://polytax8949.netlify.app
- **PayAI x402 Machine-Payable API ($0.05 Base/Polygon USDC):** `GET https://polytax8949.netlify.app/api/x402/tax-audit?address=0x...`
- **Zero Wallet Connect / Zero Signing:** Uses public read-only `data-api.polymarket.com/v2` endpoints only.

## Quick Install (Claude Code / Cursor / Claude Desktop / OpenClaw)

```json
{
  "mcpServers": {
    "polytax-8949": {
      "command": "npx",
      "args": ["-y", "github:spleyapp/polytax-8949-mcp"]
    }
  }
}
```

## Instant CLI Mode

```bash
# Scan a live Polymarket leaderboard trader right now
npx -y github:spleyapp/polytax-8949-mcp --demo

# Audit any public Polygon 0x Polymarket wallet (100% read-only)
npx -y github:spleyapp/polytax-8949-mcp --wallet 0xYOUR_ADDRESS --bracket 32
```

## MCP Tools Exposed
- `scan_polymarket_taxes` — Computes 2026 FIFO vs. HIFO realized PnL, detects unredeemed dangling `$0` expired losing shares (missed write-offs dropped by generic crypto tax tools), flags Dec-31 tax-loss harvest opportunities, and audits ERC-1155 NegRisk `SPLIT`/`MERGE` complexity.
- `get_demo_whale_tax_audit` — Fetches a live leaderboard wallet and audits its 2026 tax-loss harvest exposure.
- `get_x402_payment_info` — Returns machine-readable PayAI Base/Polygon USDC x402 endpoint metadata.

## Disclaimer
Informational tax calculation & Form 8949 formatting tool; **not licensed CPA, tax, or legal advice**.