Trivia logo

Trivia

Fetches filtered trivia questions and Open Trivia Database category statistics through MCP.

Install Trivia

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "trivia": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-trivia"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 3 tools correctly ().

Overview

trivia MCP server retrieves quiz content from the Open Trivia Database without requiring upstream authentication. Its tools fetch questions with optional category, difficulty, and type filters, enumerate categories, and report per-category question counts by difficulty. Connect through the hosted gateway, call the HTTP endpoint directly, or run the npm stdio bridge when a local MCP process is preferred. Reach for trivia when an agent needs configurable quiz material or wants to check whether a category has enough questions before starting a round.

Use cases

  • Generate quiz questions by topic and difficulty
  • List available trivia categories for a game
  • Check category inventory before creating a quiz round
  • Ask for trivia data in natural language through the gateway

Key features

  • Fetches Open Trivia Database questions
  • Filters by category, difficulty, and question type
  • Lists categories with numeric IDs
  • Reports easy, medium, and hard question counts
  • Supports hosted MCP, HTTP, and npm stdio access

Tools3

What Trivia lets your agent do. Expand a tool for its parameters.

Verified live~333 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 77d

What it can do

From the 3 tools this server returned when we ran it; 3 declare their own safety hints.

Makes network requests · 3Read-only tools · 3
Network at startup4 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age203 days
Maintainers1

Observed 2026-11-04 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 1d ago via OSV.dev · @pipeworx/mcp-trivia (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads946Package downloads in the last 30 days.
Last commit13d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed3Callable tools this server registers over MCP.

How Trivia works

What trivia does

trivia connects agents to the Open Trivia Database, also known as Open Trivia DB or opentdb.com. It exposes three trivia-focused MCP tools:

  • get_questions retrieves quiz questions and supports optional filtering by category, difficulty, and question type.
  • list_categories returns the available trivia categories together with their numeric IDs.
  • get_category_stats reports the total inventory for one category, including easy, medium, and hard question counts.

The category statistics tool is useful before requesting a quiz round: an agent can check whether a topic contains enough questions at the desired difficulty instead of making an unsuitable request first.

How it works

The hosted MCP endpoint is available at https://gateway.pipeworx.io/trivia/mcp. An MCP client connects to that URL and discovers the trivia tools. The same gateway also exposes shared Pipeworx tools, including ask_pipeworx, discover_tools, search_within, and memory-related tools. A pack connection lists the trivia tools alongside those shared tools; initialize reports the exact scope for a connection.

The gateway can also be accessed at https://gateway.pipeworx.io/mcp, where the broader catalog is available directly. Both endpoints use the same gateway and can reach the catalog through ask_pipeworx.

For clients or scripts that do not use MCP, the HTTP tool API accepts requests such as a POST to https://gateway.pipeworx.io/v1/tools/get_questions with a JSON body. Tool details can be inspected through the corresponding GET endpoint.

Setup and configuration

For a hosted connection, add the following URL to an MCP client configuration:

config.json
{
  "mcpServers": {
    "trivia": {
      "url": "https://gateway.pipeworx.io/trivia/mcp"
    }
  }
}

The npm package @pipeworx/mcp-trivia provides a local stdio bridge. It can be started with npx and forwards requests to the hosted gateway:

config.json
{
  "mcpServers": {
    "trivia": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-trivia"]
    }
  }
}

The bridge needs network access and has no offline mode. Anonymous use is capped at 50 calls per day. A free Pipeworx account increases the allowance to 200 calls per day; set PIPEWORX_API_KEY in the MCP server's environment to use the account key. Set PIPEWORX_META_TOOLS=1 if the local bridge should also list the gateway-wide meta-tools. Behind an HTTPS proxy, newer Node releases may require NODE_USE_ENV_PROXY=1 for built-in fetch to honor proxy settings.

Tools and capabilities

get_questions is the main retrieval tool. It can narrow results by the category ID discovered through list_categories, by difficulty, and by question type. list_categories supplies the IDs needed by category-specific requests. get_category_stats accepts one of those numeric IDs and separates the available inventory into easy, medium, and hard totals.

Agents can alternatively use ask_pipeworx with a plain-language question. The gateway selects a suitable tool and fills its arguments automatically.

Limitations and notes

This is an independent, unofficial integration and is not affiliated with, endorsed by, or published by the Open Trivia Database. The npm bridge forwards calls to the online Pipeworx gateway rather than running a local question database. Hosted and npm usage are subject to the gateway's call limits and account-based allowance. Pack endpoints currently include shared gateway tools in addition to the pack-specific tools, and there is no option to mount a pack endpoint without them.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Trivia

trivia is an MCP server that connects AI agents to the Open Trivia Database through the Pipeworx gateway. Its main tools fetch filtered quiz questions, list available categories and IDs, and report category totals split by easy, medium, and hard difficulty. It supports hosted MCP, HTTP, and npm-based stdio connections.

Add the hosted URL https://gateway.pipeworx.io/trivia/mcp to your MCP client, or run the local bridge with npx -y @pipeworx/mcp-trivia. The npm option forwards requests to the online gateway, so it requires network access and does not provide offline operation.

Yes, trivia can be configured in Cursor through its hosted MCP URL. Add https://gateway.pipeworx.io/trivia/mcp as the server endpoint, then let Cursor discover the trivia tools and the shared Pipeworx gateway tools exposed on that connection.

Call get_questions with the desired category, difficulty, or question-type filters. Use list_categories first to obtain the numeric ID for a category, and use get_category_stats to inspect its total, easy, medium, and hard inventory before requesting questions.

Call get_category_stats with the numeric category ID returned by list_categories. The result gives the category's total question inventory and separate counts for easy, medium, and hard questions.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTrivia AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/trivia?style=directory)](https://allmcps.com/mcp/trivia)
HTML Embed
<a href="https://allmcps.com/mcp/trivia"><img src="https://allmcps.com/api/badge/trivia?style=directory" alt="Trivia on AllMCPs" /></a>