Skip to main content
Glama
trivia-mcp-server

trivia-mcp-server

by Sankar2316

🧠 Trivia Quiz MCP Server for Kiro

A custom MCP server that connects Kiro to the Open Trivia Database (https://opentdb.com/) β€” giving Kiro the ability to fetch real quiz questions, categories, and stats to build interactive quiz applications.

πŸ”Œ What It Connects To

Open Trivia Database (opentdb.com) β€” a free, real API with 4,000+ trivia questions across 24 categories. No API key required.

Related MCP server: quiz-it

πŸ› οΈ Tools

Tool

Description

get_trivia_questions

Fetch random trivia questions by difficulty (easy/medium/hard)

list_trivia_categories

List all 24 available quiz categories

get_category_stats

Get question count stats per category

🎯 What I Built With It

An interactive HTML trivia quiz app that Kiro builds using real data from the MCP server β€” fetching live questions, showing multiple choice options, tracking score, and displaying results. This is only possible because of the MCP integration β€” without it, Kiro has no access to trivia data.

πŸŽ₯ Demo Video

Watch Demo

πŸ› οΈ Setup

Prerequisites

  • Node.js 18+

  • Kiro (latest version)

Installation

git clone https://github.com/Sankar2316/trivia-mcp-server.git cd trivia-mcp-server npm install npm run build

No API Key Needed! πŸŽ‰

Open Trivia DB is completely free β€” no signup, no authentication.

Configure in Kiro

The .kiro/settings/mcp.json is already included. Just open this folder in Kiro and the MCP server auto-connects.

Test

npx @modelcontextprotocol/inspector node dist/index.js

πŸ“ Project Structure

trivia-mcp-server/ β”œβ”€β”€ .kiro/ β”‚ └── settings/ β”‚ └── mcp.json β”œβ”€β”€ src/ β”‚ └── index.ts β”œβ”€β”€ dist/ β”œβ”€β”€ package.json β”œβ”€β”€ tsconfig.json └── README.md

πŸ“œ License

MIT

Available Tools

2 tools
get_trivia_questionsA

Get random trivia quiz questions from Open Trivia Database

Inputs: amount (required), difficulty.

list_trivia_categoriesA

List all available trivia quiz categories

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: one retrieves random questions, the other lists categories. No ambiguity.

    Naming Consistency5/5

    Both tools follow a consistent verb_noun pattern: get_trivia_questions, list_trivia_categories.

    Tool Count3/5

    With only 2 tools, the server feels thin. While it covers basic functionality, the small number is borderline for a trivia server.

    Completeness3/5

    The server lacks the ability to get questions filtered by category or difficulty, making the category list standalone and less useful. Notable missing operations.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      An MCP server that enables users to retrieve trivia questions and answers across various categories through the API-Ninjas Trivia API. It supports customizable result limits and filtering by categories like science, history, and entertainment.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides 100 IT/programming quiz questions with tools to retrieve questions by category, get random questions, check answers, and list categories, usable via Claude Desktop MCP or REST API.
      511 npm
      MIT