Skip to main content
Glama
Sankar2316

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: Trivia By Api Ninjas MCP Server

πŸ› οΈ 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

ParametersJSON Schema
NameRequiredDescriptionDefault
amountYesNumber of questions (1-20)
difficultyNoDifficulty level

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description bears full burden. It describes a read operation ('Get'), which is non-destructive, but lacks details such as randomness guarantees, duplicate behavior, or data source limitations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, 10 words, front-loaded with purpose, no unnecessary information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with two well-described parameters, no output schema, and a clear sibling, the description is sufficient but could mention randomness in more detail.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema has 100% description coverage, so baseline is 3. The description adds context ('random') but does not enhance understanding of individual parameters beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Get' and resource 'random trivia quiz questions', and differentiates from the sibling tool 'list_trivia_categories' which lists categories, not questions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for retrieving questions, but does not explicitly state when to use this tool versus the sibling list_trivia_categories or provide any conditions or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_trivia_categoriesA

List all available trivia quiz categories

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, and the description does not disclose any behavioral traits such as return format, pagination, or side effects. Given the simplicity of the tool (no parameters, listing only), the minimal description is acceptable but leaves room for improvement.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence that conveys the tool's purpose without unnecessary words. It is appropriately concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is complete enough for a simple listing tool with no parameters and no output schema. It tells the agent exactly what the tool does, though adding context about relationship to 'get_trivia_questions' would improve completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are zero parameters, so schema coverage is effectively 100%. The description does not need to add parameter meaning; a baseline of 4 is appropriate for a parameterless tool.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (list) and resource (all available trivia quiz categories). It distinguishes from the sibling tool 'get_trivia_questions' by focusing on categories rather than questions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool vs the sibling. While the purpose is clear, the description could mention that this tool is a prerequisite for getting questions for a specific category.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 2 tool updatesv1.0.0
    • First observedget_trivia_questions
    • First observedlist_trivia_categories

TDQS

A3.9/5.0
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

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Enables retrieval of random inspirational quotes from various categories including age, art, business, courage, education, friendship, happiness, leadership, and many more through the API Ninjas Quotes API.
    1
    MIT
  • 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
    C
    maintenance
    Enables searching and retrieving anime and manga data from Kitsu's catalogue, including top lists and categories, through natural language queries via Pipeworx gateway.
    14
    1
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables users to search and retrieve board game data via the Board Game Atlas API, including game details, ratings, and availability.
    17
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sankar2316/trivia-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server