@dennisk2025/random-date-fact
v1.0.0
Published
Fetches an interesting historical fact or notable event that occurred on a specific date (month and day). Great for daily fun facts and discovering what happened on this day in history.
Readme
random-date-fact
Fetches an interesting historical fact or notable event that occurred on a specific date (month and day). Great for daily fun facts and discovering what happened on this day in history.
Installation
Run via NPX (no install needed):
npx @dennisk2025/random-date-factOr install globally:
npm install -g @dennisk2025/random-date-factAdding to Claude Desktop
Add the following to your claude_desktop_config.json file:
{
"mcpServers": {
"random-date-fact": {
"command": "npx",
"args": ["@dennisk2025/random-date-fact"]
}
}
}Place this file at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Usage & Available Tools
This MCP server provides the following tools:
1. get_fact_for_date
- Description: Gets a random historical fact or event for the given month and day.
- Parameters:
month(integer, required): Month of the year (1-12)day(integer, required): Day of the month (1-31)
Example Call
{
"name": "get_fact_for_date",
"arguments": { "month": 9, "day": 14 }
}Example Response
{
"year": "1814",
"description": "Francis Scott Key writes a poem which is later set to music and in 1931 becomes America's national anthem, 'The Star-Spangled Banner.'",
"link": "https://en.wikipedia.org/wiki/Francis_Scott_Key"
}2. get_fact_for_today
- Description: Gets a random historical fact or event for today’s date (month and day).
- Parameters: (none)
Example Call
{
"name": "get_fact_for_today",
"arguments": {}
}Example Response
{
"year": "1969",
"description": "Apollo 11 launches from Cape Kennedy, Florida, carrying Neil Armstrong, Buzz Aldrin and Michael Collins on the first mission to land on the Moon.",
"link": "https://en.wikipedia.org/wiki/Apollo_11"
}Error Handling
If there are no facts found or an API error occurs, you will receive an error message in the response.
License
MIT
