Build with Poll across the command line, AI clients, and TypeScript.

Poll developer platform

Build social betting apps.
Automate with agents.

Integrate Poll with the REST API, CLI, MCP server, scoped authentication, and a type-safe Solana SDK.

Built for friend-to-friend social betting on Solana.

Install in one line

$ npm install -g @solworks/poll-cli

Then run poll auth login to connect your account.

One platform, four surfaces

Everything you need to build social betting into your workflow.

Bet from your terminal

Browse, wager, and track bets without leaving the command line.

Terminal
Install the Poll CLI

Connect your AI

28 tools for Claude, Cursor, or any MCP client.

claude_desktop_config.json
{
  "mcpServers": {
    "pollfun": {
      "command": "npx",
      "args": ["-y", "@solworks/poll-mcp"],
      "env": {
        "POLL_API_TOKEN": "polld_xxxxx"
      }
    }
  }
}
Claude Desktop Setup

Scoped access

Tokens grant only the permissions you allow.

readBrowse bets, portfolio, leaderboard
betCreate, wager, vote, settle
profileUpdate display name
socialFriends, favourites

Private keys, account deletion, and fund transfers are never accessible via tokens.

Authentication

Let AI bet for you

Natural language in, wagers out.

you

“Put $50 on Brazil to win the final”

search_bets("World Cup final")
place_wager(betAddr, optionIndex: 2, 50)
✓ Placed $50 on “Brazil” for “Who wins the final?”
MCP Documentation

Zero to wager in 30 seconds

A short path from install to action.

Install

01
$ npm install -g @solworks/poll-cli

One package, zero config.

Login

02
$ poll auth login
✓ Logged in successfully

Browser opens, approve, done.

Browse

03
$ poll bets trending
1 Who wins the final? $12,450 3d
2 Lakers win tonight? $8,200 8h

See what people are betting on.

Wager

04
$ poll bets wager 1 --amount 50 --outcome-index 2
✓ Wager placed: $50 on Brazil

Binary or multi-outcome, from the terminal.