Skip to main content
Glama
NameWheel MCP server

NameWheel MCP server

Official

NameWheel MCP server

An open source (MIT) MCP server for fair random picks: pick names from a list, split people into random teams, make wheel links, and check certified draws. It runs on your own machine over stdio (Node.js 20+ or Docker), and the same code also runs as a hosted Streamable HTTP server at https://mcp.namewheel.org/mcp.

In clients that show MCP Apps (Claude, ChatGPT and others), the NameWheel wheel spins to the result right in the chat. When other people need to check a result later, it runs a certified draw with a permanent public proof page.

Run it locally (stdio)

git clone https://github.com/namewheel/mcp && cd mcp
npm install && npm run build
node dist/stdio.js

Or with Docker:

docker build -t namewheel-mcp .
docker run -i --rm namewheel-mcp

What runs on your machine:

  • Picking winners (spin_wheel): Node's cryptographic random number generator (crypto.randomInt) in this process. No network needed.

  • Teams (make_teams) and wheel links (open_wheel_link): computed locally. No network needed.

  • Checking a certified draw (verify_draw): downloads the draw's public record and NameWheel's public key, then recomputes everything locally: the SHA-256 commitment, the HMAC-SHA256 winner and the Ed25519 signature.

  • Limits (check_plan): answered locally.

Only certified_draw, freeze_list and my_draws call the NameWheel API, because a certified draw is published on a public proof page at namewheel.org. They use your own free API key:

NAMEWHEEL_API_KEY=nw_live_... node dist/stdio.js
docker run -i --rm -e NAMEWHEEL_API_KEY=nw_live_... namewheel-mcp

Make a key in one press at namewheel.org/mcp. Without a key the server still starts and everything above works.

Claude Desktop, Cursor, Cline, Windsurf and other clients that start local servers:

{
  "mcpServers": {
    "namewheel": {
      "command": "node",
      "args": ["/absolute/path/to/mcp/dist/stdio.js"],
      "env": { "NAMEWHEEL_API_KEY": "nw_live_..." }
    }
  }
}

The env block is optional.

Related MCP server: mcp-random

Tools

Tool

What it does

Where it runs

spin_wheel

Pick one or more winners at random from a list, with the wheel shown in the chat.

Locally

make_teams

Split names into random teams or groups of even size.

Locally

open_wheel_link

A namewheel.org link that opens the full wheel with the names loaded.

Locally

verify_draw

Check a certified draw from its code or link: recomputes the winner, checks the commitment and the Ed25519 signature.

Locally, after fetching the public record

check_plan

What this connection can do, and certified draws left today.

Locally (with a key: reads your plan)

certified_draw

A TrueSpin certified draw: the winner is sealed before the spin and published on a public proof page (namewheel.org/v/CODE).

NameWheel API, your key

freeze_list

Lock an entry list in public before the draw (namewheel.org/f/CODE).

NameWheel API, your key

my_draws

Your certified draws and frozen lists with proof links.

NameWheel API, your key

Certified draws publish the title, every entry and the winner on the proof page. The tool description says so, so assistants tell people before running one.

The server also has 5 prompts (pick_student, split_teams, certified_draw_with_proof, make_a_decision, verify_a_draw) and 2 resources (namewheel://truespin, how certified draws work, and namewheel://limits).

Or use the hosted server (nothing to install)

The same server runs at https://mcp.namewheel.org/mcp (Streamable HTTP). Without an account: 30 calls a minute and 500 a day per connection. Certified draws need a free NameWheel account, connected through the sign-in flow your client shows.

Claude (web, desktop, mobile): Settings, Connectors, Add custom connector, paste https://mcp.namewheel.org/mcp.

Claude Code

claude mcp add --transport http namewheel https://mcp.namewheel.org/mcp

ChatGPT (web): Settings, Apps (Developer Mode), add https://mcp.namewheel.org/mcp.

Codex CLI

codex mcp add namewheel --url https://mcp.namewheel.org/mcp

Cursor: Install in Cursor, or ~/.cursor/mcp.json:

{ "mcpServers": { "namewheel": { "url": "https://mcp.namewheel.org/mcp" } } }

VS Code: Install in VS Code, or .vscode/mcp.json:

{ "servers": { "namewheel": { "type": "http", "url": "https://mcp.namewheel.org/mcp" } } }

Windsurf, ~/.codeium/windsurf/mcp_config.json:

{ "mcpServers": { "namewheel": { "serverUrl": "https://mcp.namewheel.org/mcp" } } }

Gemini CLI, ~/.gemini/settings.json:

{ "mcpServers": { "namewheel": { "httpUrl": "https://mcp.namewheel.org/mcp" } } }

To use your account without the sign-in flow, send your key as Authorization: Bearer nw_live_... or x-api-key: nw_live_....

Run the HTTP server yourself

npm install && npm run build
NAMEWHEEL_API_URL=https://namewheel.org PUBLIC_URL=https://your-host.example MCP_JWT_SECRET=<random hex> node dist/index.js

Settings: PORT (default 8791), HOST (default 127.0.0.1), PUBLIC_URL (the address clients reach, used for OAuth metadata), NAMEWHEEL_API_URL, MCP_JWT_SECRET (signs access tokens), STATE_DIR (OAuth clients, tokens and guest meters, default /var/lib/namewheel-mcp).

The HTTP server is an OAuth 2.1 authorization server (PKCE, dynamic client registration, client ID metadata documents, RFC 9728 and 8414 metadata). Tools that need no account need no sign-in. When a client calls a tool that needs an account, the server answers 401 and the client shows its Connect flow; the connect page asks for a NameWheel API key and binds the connection to it. Deleting the key in the NameWheel dashboard (Settings, API keys) disconnects every assistant that used it. A key can only run certified draws, freeze lists, read the plan and list its own draws: it cannot change the account, its payments or its data.

How certified draws work

  1. NameWheel's server makes a secret and publishes only its SHA-256 fingerprint before anything is revealed.

  2. The connection adds its own randomness.

  3. The winner is HMAC-SHA256 over that randomness and the fingerprint of the entry list, keyed with the secret.

  4. After the spin the secret is published and the record is signed with NameWheel's Ed25519 key (public key).

  5. The proof page lists every certified draw the same account ran on the same list, so re-rolling until a favourite wins is visible.

Spec: namewheel.org/truespin-spec. Independent verifier: namewheel/truespin-verifier. verify_draw runs the same checks (src/verify.ts).

The in-chat wheel

spin_wheel, make_teams, certified_draw and verify_draw link an MCP Apps view (ui://namewheel/wheel-v1.html, text/html;profile=mcp-app). It is one self-contained HTML file in widget/wheel.html: no outside scripts, fonts or requests. Clients without MCP Apps get the same result as text.

Privacy

Spins, teams and wheel links never store the names. Certified draws and frozen lists are stored by NameWheel and published on their proof pages, as on the website. The hosted server meters calls without an account by IP address and keeps request logs (tool, number of entries, client name, address, outcome, never the names) for 30 days. Policy: namewheel.org/privacy.

License

MIT. NameWheel and TrueSpin are names of Outline Technologies LLC.

Available Tools

8 tools
certified_drawRun a certified drawAInspect

Run a TrueSpin certified draw on NameWheel: the winner is sealed by NameWheel's server before it is revealed, randomness from this connection is added, and the result is published on a permanent public proof page (namewheel.org/v/CODE) that anyone can check, with a button that recomputes the draw. Use it when the result must be provable to other people: a class prize, a team decision, a draw announced to a group. IMPORTANT: the title, every entry and the winner become public on the proof page, so only use names the person is happy to publish, and tell them so. Needs a connected NameWheel account (free). To draw against a list locked earlier with freeze_list, pass frozen_code instead of entries.

Inputs: title (required), entries, entropy, frozen_code.

check_planCheck what this connection can doA
Read-onlyIdempotent
Inspect

Say what this NameWheel connection can do: without an account (spins, teams, wheel links, checking draws) or with a connected account (certified draws, frozen lists, the account's draws), and how many certified draws are left today. Use it when the person asks about limits, their account, or why a request was refused.

Inputs: no named parameters.

freeze_listFreeze an entry listAInspect

Lock a list of entries in public before a draw, at namewheel.org/f/CODE, with a fingerprint and the exact time. Nobody can add or remove a name after that, and when certified_draw later uses this list (frozen_code), the frozen page links to the result. Use it when entries close before the draw happens. The title and every entry are public. Needs a connected NameWheel account (free).

Inputs: title (required), entries (required).

make_teamsSplit into random teamsA
Read-only
Inspect

Split a list of names into random teams or groups of even size, and show them as cards in the chat. Use it for class groups, project teams, game sides, rotations. Give either how many teams or how many people per team. Works without an account.

Inputs: entries (required), teams, title, team_size, +1 more.

my_drawsList my certified drawsA
Read-onlyIdempotent
Inspect

List this account's recent NameWheel certified draws (or frozen lists) with their winners and proof links, newest first. Needs a connected NameWheel account.

Inputs: limit, frozen_lists.

spin_wheelSpin the wheelA
Read-only
Inspect

Pick one or more winners at random from a list of names or options, and show the wheel spinning to the result in the chat. Use it whenever the person wants something chosen at random: a student to answer, who goes first, where to eat, a raffle winner among friends. Works without an account. The pick is fair (a cryptographic random number generator), but it is not a certified record; when other people need to be able to check the result later, use certified_draw instead.

Inputs: entries (required), title, winners, allow_repeat_winners.

verify_drawCheck a certified drawA
Read-onlyIdempotent
Inspect

Check whether a NameWheel certified draw is genuine, from its code or its namewheel.org/v/ link: recomputes the winner from the published secret, the added randomness and the entries, checks the commitment made before the spin, and checks NameWheel's Ed25519 signature on the record. Also says how many draws the host ran on this exact list. Use it when someone asks whether a draw or a giveaway result was real. Works without an account.

Inputs: code (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool targets a clearly distinct operation: casual spinning (spin_wheel), team splitting (make_teams), link generation (open_wheel_link), provable draws (certified_draw), pre-locking entries (freeze_list), verification (verify_draw), history (my_draws) and capability/limits (check_plan). The descriptions explicitly resolve the most likely confusion by contrasting spin_wheel (casual, not a record) with certified_draw (provable, account-backed).

    Naming Consistency4/5

    All names use snake_case, and most follow a verb_noun pattern (spin_wheel, make_teams, open_wheel_link, freeze_list, verify_draw, check_plan). Minor deviations exist in certified_draw (adjective_noun) and my_draws (possessive noun), but the set remains predictable and readable.

    Tool Count5/5

    Eight tools is well-scoped for a random-selection and certified-draw service, with each tool earning its place across casual use, account-backed draws and verification. No redundant or filler endpoints appear in the set.

    Completeness4/5

    The surface covers the full lifecycle from casual selection through list freezing, certified drawing, public verification, history review and quota checking, so core workflows have no dead ends. Gaps are minor, such as managing or deleting previously frozen lists or editing draw metadata.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables random selection tools including lottery drawing from option lists, dice rolling with customizable sides and counts, and coin flipping. Supports both single and multiple draws with duplicate control options.
      3
      2
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server providing true randomness capabilities to Claude, enabling cryptographically secure random number generation for games, decision-making, sampling, simulations, and any operation requiring genuine randomness.
      13
      2
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides true random generation tools for AI agents, including coin flip, dice roller, random numbers, and wheel of fortune, enabling decisions and TTRPG sessions.
      -
    • A
      license
      Not graded
      quality
      A
      maintenance
      MCP server enabling provably-fair random selection and winner picking using drand randomness, with tools for instant picks, scheduled draws, and verification.
      MIT