# trivia [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/pipeworx-io/mcp-trivia  
**GitHub Stars:** 0  
**npm Downloads (last month):** 946  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/trivia

## Description
Trivia MCP — wraps Open Trivia Database (free, no auth)

## Tools
Capabilities this server exposes over MCP:

- **get_questions** — Get trivia questions from the Open Trivia Database. Optionally filter by category, difficulty, and question type.
- **list_categories** — List all available trivia categories and their IDs.
- **get_category_stats** — Question inventory for one Open Trivia Database (opentdb.com) category, given the numeric category id from list_categories. Returns the total number of quiz questions in that category plus the easy, medium, and hard counts. Answers how many trivia questions the Open Trivia DB holds on a topic before requesting a quiz round of a given difficulty.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

## Documentation

## 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:

```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:

```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.

_Full upstream README: https://allmcps.com/mcp/trivia/readme_

