Skip to main content
Glama
SAFE & Cap Table Calculator

SAFE & Cap Table Calculator

by MAASAI-Labs

SAFE & Cap Table Calculator (MCP server)

Live MCP URL (Streamable HTTP, no auth): https://safe-cap-table-mcp.vercel.app/mcp
Health check: https://safe-cap-table-mcp.vercel.app/health

An MCP server that lets Grok Bot (or any MCP client) model startup financings: SAFEs, convertible notes, priced rounds, option pool shuffles, fees, and multi-step financing histories. It returns cap tables before and after, per-holder dilution and fully diluted ownership, as a markdown table plus structured JSON.

It works for any country and any currency, because amounts are unitless and shown with a $ sign. It needs no API keys, makes no network calls and stores nothing. The math is deterministic.

Use in Cursor

From the Cursor Marketplace: once listed, install it from https://cursor.com/marketplace (publisher MAASAI Labs). The plugin manifest lives in https://github.com/MAASAI-Labs/cursor-plugins.

  1. Search the Marketplace for this plugin and click Install.

  2. Check the server is enabled under Cursor Settings, then MCP. Plugin servers show with a plugin- prefix.

Manually: add the hosted server to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

{
  "mcpServers": {
    "safe-cap-table": { "url": "https://safe-cap-table-mcp.vercel.app/mcp" }
  }
}

Related MCP server: Personal Finance MCP

Tools

Tool

What it does

safe_ownership

Implied ownership of post-money SAFEs (amount / post-money cap), combined SAFE dilution, MFN resolution, optional share estimates

safe_conversion_price

One SAFE or note: compares the cap price, discount price and round price, and returns the best-of conversion price and the share count

model_priced_round

Full round: converts post-money and pre-money SAFEs (cap, discount, MFN) and notes (with interest), issues new-money shares at a pre-money valuation or a fixed price, tops up the option pool (pre-money or post-money), and applies placement fees (cash and equity) and advisor grants

model_round_sequence

Runs events in order: SAFEs (including extensions at different caps), notes, priced rounds and milestone tranches at a fixed price or valuation

compare_pool_timing

The same round with the pool top-up in the pre-money vs the post-money, showing who bears the dilution

compare_scenarios

New in v1.1: Compare 2-6 scenarios side-by-side. Each scenario can be a full model input or a scenario token. Returns ownership % per holder, price per share, post-money valuation, and deltas vs baseline (in percentage points)

load_scenario

New in v1.1: Load and rerun a scenario from a scenario token (returned by modeling tools). Validates, decodes, and reruns the exact same scenario

explain_methodology

Returns the formulas and conventions used

All tools are read-only and idempotent. Invalid input returns a tool error that lists each bad field.

Scenario tokens (v1.1+)

Modeling tools (model_priced_round, model_round_sequence, compare_pool_timing) now return a scenarioToken: a versioned, compressed, base64url-encoded snapshot of the validated input. Tokens are:

  • Portable: share a scenario by copying the token

  • Deterministic: the same input always produces the same token

  • Self-contained: no external state or dependencies

  • Lossless: load_scenario reproduces the exact same result

Use load_scenario to rerun a saved scenario later, or pass tokens to compare_scenarios to compare multiple scenarios without duplicating full inputs.

Example prompts

  • "I raised $1M on a $10M post-money SAFE. What do I own after it, and after a $10M Series A at $40M pre?"

  • "Founders hold 8M shares and the pool is 2M. Model a $2M seed at $8M pre with the pool topped up to 10% post-money. Compare that with putting the pool in the post-money."

  • "We have a $500k SAFE at a $6M cap with a 20% discount, a $250k MFN SAFE, and a $300k note at 8% for 18 months with a $5M cap. Convert them all in a $3M round at $12M pre."

  • "Seed SAFE at a $10M cap, then an extension at $20M, then a Series A of $8M at $40M pre, then a second $2M tranche at $5/share. Show the cap table after each step."

  • "Add a 5% cash and 2% equity placement fee, plus an advisor with 0.5% from the pool."

  • New in v1.1: "Compare two scenarios: (A) Series A at $15M pre with 10% pre-money pool vs (B) same round with 10% post-money pool. Show founder ownership difference."

  • New in v1.1: "Here's my scenario token [sct1.priced_round.xyz...]. Rerun it and show the cap table."

Run locally

npm install
npm test            # unit tests (vitest)
npm run build
npm start           # Streamable HTTP at http://localhost:3000/mcp  (PORT to change)
npm run start:stdio # stdio transport for desktop MCP clients
npm run smoke       # lists tools and runs a sample round against the local HTTP server

Example stdio client config:

{ "mcpServers": { "safe-cap-table": { "command": "node", "args": ["/path/to/safe-cap-table-mcp/dist/main-stdio.js"] } } }

Deploy to Vercel

  1. Push this repo to GitHub and import it at vercel.com/new (Framework preset: Other). No environment variables are needed.

  2. Vercel serves api/mcp.ts as a Node function. vercel.json rewrites /mcp to /api/mcp and /health to /api/health.

  3. Your MCP URL is https://<project>.vercel.app/mcp. Check it with node scripts/smoke.mjs https://<project>.vercel.app/mcp.

The server is stateless (no sessions, JSON responses), so it scales on serverless without sticky sessions. A GET request returns 405 by design.

Methodology

  • Fully diluted (FD) = issued shares + granted options + unallocated pool.

  • Post-money SAFE (YC): cap price = cap / Company Capitalization, where Company Capitalization = pre-round FD + all conversion shares + any pre-money pool increase, but only to the extent promisedOptions exceeds the existing pool (per YC SAFE). New-money shares excluded. Ownership at conversion ~= amount / cap.

  • Pre-money SAFE and notes (default): cap price = cap / pre-round FD (excludes all converting securities and pool increase).

  • Notes convert principal + simple interest (rate x days/365).

  • Discount price = round price x (1 - discount). Holder gets the LOWEST of round, cap and discount prices.

  • MFN SAFE: adopts lowest cap and highest discount among SAFEs listed after it.

  • Pre-money pool: pool top-up counted in pre-money price (dilutes existing holders, pre-money instruments, and post-money SAFEs, but not new investors).

  • Post-money pool: top-up issued after pricing; dilutes everyone, including new investors.

  • Target pool % = unallocated pool / post-round FD (before advisor grants).

  • Equity placement fee: shares at round price worth (fee% x new money), priced like new-money shares.

  • Advisor grants: issued after close; fromPool=true reduces unallocated pool, otherwise new shares (percent sized so advisor holds that % of final FD).

  • Circular round math solved by deterministic fixed-point iteration; shares rounded down per holder; price unrounded internally.

  • This is a modelling tool, not legal, tax or investment advice. Confirm with counsel and your actual instruments.

YC references: Post-Money Safe User Guide (ycombinator.com/documents). A $1M SAFE on a $10M post-money cap owns 10% of the company capitalization at conversion, before new money.

Testing instructions for marketplace reviewers

No credentials, accounts or API keys are needed.

  1. Connect the MCP URL (or run npm install && npm run build && npm start, then use http://localhost:3000/mcp).

  2. List tools. You should see 8 tools (6 from v1.0, plus compare_scenarios and load_scenario from v1.1).

  3. Call model_priced_round with:

    {"capTable":[{"name":"Founders","shares":9000000},{"name":"Option pool","shares":1000000,"class":"pool"}],
     "safes":[{"name":"Seed SAFE","amount":1000000,"valuationCap":10000000}],
     "round":{"preMoneyValuation":40000000,"newInvestors":[{"name":"Lead","amount":10000000}]}}

    Expected: SAFE converts at $0.90 into 1,111,111 shares, the Series A price is $3.60, Lead holds 20.00%, the SAFE holds 8.00% and Founders hold 64.80%. The result includes a scenarioToken field.

  4. Call compare_pool_timing with founders at 10,000,000 shares, $8M pre, $2M raise and targetPoolPercent: 0.1. Expected: Founders get 70.00% with a pre-money pool vs 72.00% with a post-money pool. The price is $0.70 vs $0.80.

  5. v1.1 new: Call load_scenario with the scenarioToken from step 3. Expected: the same cap table and round summary as the original result.

  6. v1.1 new: Call compare_scenarios with two scenarios: the example from step 3 at $40M pre, and the same round at $50M pre. Expected: a markdown table showing ownership % for each holder in both scenarios, plus deltas vs baseline.

  7. Send bad input (for example round: {}). Expected: a clear validation error, not a crash.

Disclaimer

This is a modelling aid, not legal, tax or investment advice. Real instruments vary (for example pro-rata side letters, pay-to-play, or a non-standard definition of "Company Capitalization"). Check final numbers against your documents and counsel.

Privacy and terms

License

MIT

Available Tools

6 tools
compare_pool_timingOption pool shuffle comparisonA
Read-onlyIdempotent

Run the same round with the option pool top-up in the pre-money vs the post-money, showing price per share and who bears the dilution. Requires round.targetPoolPercent.

Inputs: round (required), capTable (required), notes, safes, +1 more.

explain_methodologyExplain the mathB
Read-onlyIdempotent

Return the documented conventions and formulas this calculator uses.

Inputs: no named parameters.

model_priced_roundModel a priced roundA
Read-onlyIdempotent

Full priced-round model: converts all SAFEs (post- and pre-money, cap/discount/MFN) and convertible notes, issues new investor shares at pre-money valuation or fixed price, tops up the option pool (pre- or post-money), applies placement fees (cash and equity) and advisor grants. Returns before/after cap table, per-holder dilution, FD ownership and markdown.

Inputs: round (required), capTable (required), notes, safes, +1 more.

model_round_sequenceModel multi-tranche / extension roundsA
Read-onlyIdempotent

Apply a sequence of events in order: SAFE issuances (e.g. extensions at different caps), notes, priced rounds (which convert outstanding instruments), and tranche closes at fixed price or valuation (milestone tranches). Returns each step and the final cap table vs start.

Inputs: events (required), capTable (required).

safe_conversion_priceSAFE / note conversion priceA
Read-onlyIdempotent

For one SAFE or note: compare cap price, discount price and round price, return the conversion price (best-of for the holder) and shares.

Inputs: amount (required), roundPricePerShare (required), discount, valuationCap, +1 more.

safe_ownershipSAFE ownership snapshotB
Read-onlyIdempotent

Implied ownership of post-money SAFEs (amount / post-money cap), combined SAFE dilution, MFN resolution, and optional share estimates. Use before a priced round.

Inputs: safes (required), preSafeShares.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 6 tools

    Disambiguation4/5

    Tools are distinguished by scope: single-instrument conversion (safe_conversion_price), aggregate SAFE ownership (safe_ownership), and full modeling (model_priced_round, model_round_sequence). model_priced_round and model_round_sequence overlap somewhat since both do full cap-table modeling, but the single-round vs multi-event sequence distinction is stated clearly.

    Naming Consistency4/5

    All names use consistent snake_case and read predictably. A couple (safe_conversion_price, safe_ownership) are noun phrases rather than verb_noun, while others (model_*, explain_*, compare_*) use verbs, but the convention is coherent and unsurprising.

    Tool Count5/5

    Six tools is well-scoped for a specialized SAFE/cap-table calculator. Each tool covers a distinct modeling need (conversion, ownership, priced round, methodology, sequence, pool timing) with no filler.

    Completeness4/5

    The surface covers SAFE conversion, ownership, priced rounds, round sequencing, and pool-timing comparison, which spans the core lifecycle of the domain. Minor gaps like explicit cap-table input/export or convertible-note-only tooling, but these are largely absorbed into the modeling tools.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides startup verification tools including domain/package/org availability checks, unit economics, runway, market size, and cap table calculations with transparent formulas and warnings to prevent common agent errors.
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Provides 77 deterministic financial calculators, live market data, and a meta-advisor that chains tools into prioritized plans from plain-language descriptions.
      77
      22 PyPI
      7
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Startup valuation calculators for AI agents: 14 MCP tools covering 80+ formulas from the Startup Valuation textbook — probability, time value, CAPM, pre-revenue methods (Scorecard, Berkus, VC Method), options, comparables, SaaS, marketplace, fintech, biotech, hardware, international, stakeholder equity, and emerging methods.
      14
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Exposes twelve tools (fourteen with company requests enabled) that let agents search and read verified funding rounds, company funding histories with total raised, investor profiles and rankings, and the news behind each record. Filters cover stage, sector, amount, certainty, and date windows.
      10
      MIT