@dennisk2025/random-trivia-fact-history
v1.0.0
Published
Fetches a random historical trivia fact, including the event, date, and a short description.
Readme
random-trivia-fact-history
Fetches a random historical trivia fact, including the event, date, and a short description.
Features
- Retrieves a random, notable event from world history from the MuffinLabs API
- Includes date, summary, year, and related links
- Designed for Claude Desktop and any MCP-compatible client
Installation
Using npx (Preferred)
npx @dennisk2025/random-trivia-fact-historyOr Install Globally
npm install -g @dennisk2025/random-trivia-fact-history
random-trivia-fact-historyAdding to Claude Desktop
Add the following configuration to your Claude Desktop config file at one of these locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"history-facts": {
"command": "npx",
"args": ["@dennisk2025/random-trivia-fact-history"]
}
}
}Usage
After adding to Claude Desktop or running via CLI, you can use the available tool:
Available Tool
- random_historical_fact: Returns a random trivia fact from history, including the date, summary, and event details.
Parameters
- This tool takes no parameters.
Example Tool Call
Tool name: random_historical_fact
Parameters: {}
Example Result:
{
"year": "1896",
"date": "6/12",
"title": "Japan annexes the Ryukyu Islands",
"summary": "1896 – Japan formally annexes the Ryukyu Islands, ending the Ryukyu Kingdom.",
"links": [
{
"title": "Ryukyu Kingdom",
"link": "https://en.wikipedia.org/wiki/Ryukyu_Kingdom"
}
]
}Error Handling
If the API is unavailable or an error occurs, a friendly error message will be returned.
Tool Reference
| Tool Name | Description | Parameters | |--------------------------|--------------------------------------------------------------------------|--------------| | random_historical_fact | Returns a random trivia fact from history, including date and description | (none) |
