{"_id":"@dennisk2025/random-trivia-question","name":"@dennisk2025/random-trivia-question","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@dennisk2025/random-trivia-question","version":"1.0.0","description":"Fetches a random trivia question, including category, difficulty, question, correct answer, and incorrect answers.","type":"module","main":"index.js","bin":{"random-trivia-question":"index.js"},"dependencies":{"@modelcontextprotocol/sdk":"latest","axios":"latest"},"author":{"name":"dennisk2025"},"license":"MIT","_id":"@dennisk2025/random-trivia-question@1.0.0","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-weXFJf4If4sDwnYMBg1cRqin767HidcRwg99YaxLLMUjRkj6Oao6imypEcRrzK6jFHb9sRPmwfi64R54r1Gh3A==","shasum":"b8ea734a4662882067c724d56984f824cea1f6e4","tarball":"https://registry.npmjs.org/@dennisk2025/random-trivia-question/-/random-trivia-question-1.0.0.tgz","fileCount":3,"unpackedSize":5913,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDQIniDbqZMm+HX5EwQ+hMJEFiMDj2Ex8z0JnxIOR8TaQIhANORma55M9ZL1fm5b+DVwH1oI+dXmPR6fWhDNocxXcIN"}]},"_npmUser":{"name":"dennisk2025","email":"4dennisk@gmail.com"},"directories":{},"maintainers":[{"name":"dennisk2025","email":"4dennisk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/random-trivia-question_1.0.0_1761425420460_0.31696448737006655"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-25T20:50:20.380Z","1.0.0":"2025-10-25T20:50:20.660Z","modified":"2025-10-25T20:50:20.912Z"},"maintainers":[{"name":"dennisk2025","email":"4dennisk@gmail.com"}],"description":"Fetches a random trivia question, including category, difficulty, question, correct answer, and incorrect answers.","author":{"name":"dennisk2025"},"license":"MIT","readme":"# random-trivia-question MCP Server\n\nFetches a random trivia question, including category, difficulty, question, correct answer, and incorrect answers using the Open Trivia Database (opentdb.com).\n\n## Installation\n\nInstall globally with npm:\n\n```\nnpm install -g @dennisk2025/random-trivia-question\n```\n\nOr run directly via npx:\n\n```\nnpx @dennisk2025/random-trivia-question\n```\n\n## Adding to Claude Desktop\n\nAdd the following JSON to your Claude Desktop configuration file:\n\n```json\n{\n  \"mcpServers\": {\n    \"trivia\": {\n      \"command\": \"npx\",\n      \"args\": [\"@dennisk2025/random-trivia-question\"]\n    }\n  }\n}\n```\n\nAdd this to your Claude Desktop config file at:\n- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`\n- **Windows**: `%APPDATA%\\Claude\\claude_desktop_config.json`\n\n## Usage\n\nOnce added to Claude Desktop, you can use the following tool:\n\n### Available Tool(s)\n\n#### get_random_trivia\nFetches a random trivia question and returns its details.\n\n**Parameters:**\n- _None_\n\n**Returns:**\n- `category`: string — The question's category\n- `difficulty`: string — The question's difficulty (`easy`, `medium`, `hard`)\n- `question`: string — The trivia question\n- `correct_answer`: string — The correct answer\n- `incorrect_answers`: array of strings — Incorrect answers\n\n### Example Tool Call\n\nRequest:\n\n```\n[get_random_trivia]\n{}\n```\n\nResponse Example:\n\n```\n{\n  \"category\": \"General Knowledge\",\n  \"difficulty\": \"medium\",\n  \"question\": \"What is the French word for 'hat'?\",\n  \"correct_answer\": \"Chapeau\",\n  \"incorrect_answers\": [\"Bonnet\", \"Echarpe\", \"Casque\"]\n}\n```\n\n## Error Handling\nIf the Open Trivia Database is not reachable or returns no results, you will receive a response indicating the error condition.\n\n## License\nMIT\n","readmeFilename":"README.md","_rev":"1-62459361885f6323e04355768e77f1d9"}