All tools / Captble / For developers

Captble for developers and AI

Work with your cap table from the terminal, your own code, or an AI assistant like Claude, instead of clicking through the app. Everything goes through the same rules as the app: your access, your plan, two-factor, and the checks on shares, pools and 409A prices.

1. Create an API key

In Captble, open Settings, then API. A key belongs to you and one company. Read keys can only look; read and write keys can add stakeholders, issue shares, grant options and record SAFEs. You see the key once; revoke it any time.

Get an API key in Captble

2. Use it with Claude, ChatGPT or Cursor (MCP)

Captble runs a Model Context Protocol server, so AI assistants can read your cap table and, with write access, make changes you ask for.

claude.ai, Claude Desktop and ChatGPT: add a custom connector with the address below. You sign in to Captble, choose the company and read or read-and-write access, and that's it. No key to copy. Disconnect it any time in Settings, API.

Connector address

https://captble.com/mcp

Claude Code

claude mcp add --transport http captble https://captble.com/mcp --header "Authorization: Bearer cpt_YOUR_KEY"

Cursor and other apps configured by file (mcp.json), after installing the command-line tool below

{
  "mcpServers": {
    "captble": {
      "command": "captble",
      "args": [
        "mcp"
      ],
      "env": {
        "CAPTBLE_API_KEY": "cpt_YOUR_KEY"
      }
    }
  }
}

Then ask things like: “Who owns more than 5% fully diluted?”, “Grant Priya Nair 10,000 options at the current 409A” or “What changed on the cap table this week?”. Assistants are told to confirm before changing anything.

Moving your cap table in: connect with read and write access to a new, empty company, attach your spreadsheet, certificates, SAFEs and board consents to the chat, and ask “Import this cap table into Captble.” The assistant checks it with a preview first, shows you the totals and every holder, and only saves when you confirm.

3. The command-line tool

npm install -g https://captble.com/cli/captble.tgz
captble login
captble cap-table
captble options grant --to "Priya Nair" --shares 10000
captble safes add --investor "Northlight Ventures" --amount 500000 --cap 10000000
captble history --limit 20

Run captble help for every command. Add --json to any reading command for raw output. The key can also come from the CAPTBLE_API_KEY environment variable.

4. REST API

Send the key as a bearer token. Responses are {'data': ...} or {'error': '...'}.

curl https://captble.com/api/v1/cap-table -H "Authorization: Bearer cpt_YOUR_KEY"

curl -X POST https://captble.com/api/v1/options \
  -H "Authorization: Bearer cpt_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"stakeholder": "Priya Nair", "shares": 10000}'
GET/api/v1/company
GET/api/v1/cap-table
GET/api/v1/stakeholders
POST/api/v1/stakeholders
POST/api/v1/shares
GET/api/v1/options
POST/api/v1/options
GET/api/v1/convertibles
POST/api/v1/convertibles
GET/api/v1/valuations
GET/api/v1/history
GET/api/v1/documents

GET /api/v1 lists every operation with its arguments as JSON Schema. Stakeholders can be named by id or exact name. Option grants default to the 409A in effect and are refused below it unless you pass allow_below_fmv.

Security

Apps that sign in use OAuth 2.1 with PKCE and dynamic client registration; their access tokens last an hour and their refresh tokens rotate on every use. Keys are stored only as a SHA-256 fingerprint. Each request acts as you through a short-lived token, so you can never do more through the API than in the app, and every change appears in the company's history with your name. Keys stop working the moment you revoke them or leave the company. Requests are rate limited.