API & MCP
Everything a person can do on Movie Night Consensus Picker, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://movienightconsensuspicker.usefulweb.site/api/v1/calculate– run Movie Night Consensus PickerGET https://movienightconsensuspicker.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Movie Night Consensus Picker
List the candidate films (or restaurants, games, holiday spots), then let each person rank them and veto the ones they cannot stand. The picker runs four voting methods — Borda count, approval, instant-runoff and Condorcet/Schulze — shows each winner and why, and breaks ties fairly with a seed.
| Field | Type | Default | Description |
|---|---|---|---|
candidates (required) | list | — | Candidates (one per line) |
ballots (required) | table | — | Ballots |
vetoMode | select (remove, ignore) | "remove" | Vetoes |
approvalCount | integer | — | Approval: top N of each ranking count as approved. Empty = half of the candidates, rounded up. |
seed | text | — | Tie-break seed (optional). Ties are broken by a seeded random order of the candidates. Empty = derived from the inputs. |
Example request
Five friends, four films, one veto
curl -X POST https://movienightconsensuspicker.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"candidates":["Dune: Part Two","Paddington 2","Alien","Amélie"],"ballots":[{"voter":"Ana","ranking":"Dune: Part Two > Alien > Amélie > Paddington 2"},{"voter":"Ben","ranking":"Paddington 2 > Amélie > Dune: Part Two","veto":"Alien"},{"voter":"Cleo","ranking":"Amélie > Paddington 2 > Dune: Part Two > Alien"},{"voter":"Dev","ranking":"Dune: Part Two > Paddington 2 > Amélie > Alien"},{"voter":"Eli","ranking":"Paddington 2 > Dune: Part Two > Amélie > Alien"}],"vetoMode":"remove"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://movienightconsensuspicker.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
movie_night_consensus_picker - Local stdio connector:
node src/mcp-stdio.ts --tool=movie-night-consensus-picker
{
"mcpServers": {
"movie-night-consensus-picker": { "type": "http", "url": "https://movienightconsensuspicker.usefulweb.site/mcp" }
}
}