OpenTrivia

OpenTrivia MCP Connector for Claude

F

Access a massive database of trivia questions — fetch quizzes by category, manage session tokens, and track global question statistics.

6 tools Official Updated Jun 28, 2026 Official Vinkius Partner

Connect to the Open Trivia Database (OpenTDB) and transform any AI agent into a trivia master or educational assistant. This server provides seamless access to thousands of verified user-contributed questions.

What you can do

  • Fetch Questions — Retrieve trivia questions with granular filters for amount (up to 50), category, difficulty (easy, medium, hard), and type (multiple choice or true/false).
  • Session Management — Use session tokens to ensure you never receive the same question twice within a 6-hour window.
  • Category Discovery — Browse the full list of trivia categories and their corresponding IDs to target specific knowledge areas.
  • Database Insights — Query real-time statistics on question counts per category or global database health (verified vs. pending questions).
  • Token Control — Request and reset session tokens to manage long-running trivia sessions or restart a quiz cycle.

How it works

  1. Subscribe to this server
  2. Use the tools to fetch categories or start a session
  3. Generate quizzes directly in your AI chat interface

Who is this for?

  • Developers — Build trivia bots, games, or learning apps without managing a backend database.
  • Educators — Instantly generate classroom quizzes or study materials across dozens of subjects.
  • Trivia Fans — Challenge yourself or others with fresh questions from a community-driven source.
triviaquiz-generatorknowledge-basegamificationeducational-tools

6 tools expose this connector's capabilities to your AI agent.

get_categories

Lookup all trivia categories

get_category_count

Get question count for a category

get_global_count

Get global question count

get_questions

Retrieve trivia questions

request_token

Tokens expire after 6 hours of inactivity. Retrieve a session token

reset_token

Reset a session token

See how to talk to your AI agent using OpenTrivia.

Get 5 medium difficulty multiple choice questions about Geography.

I've retrieved 5 medium-difficulty Geography questions for you. Topics include European capitals and world landmarks. Ready to start the quiz?

List all available trivia categories and their IDs.

Here are the available categories: General Knowledge (9), Entertainment: Books (10), Science & Nature (17), History (23), and many more. Which one interests you?

Show me the global question statistics for the entire database.

The global database currently contains over 4,000 verified questions, with several hundred pending review. Total questions across all categories are distributed between multiple choice and true/false formats.

First, use the `request_token` tool to generate a session token. Then, include this token in your `get_questions` requests. The API will track your history and exclude previously seen questions for 6 hours.

Related Connectors