Historical Facts MCP Server
Provides tools to retrieve historical events, births, deaths, and holidays from Wikimedia's On This Day API for specific dates, today's date, and random dates.
Provides tools to fetch date-specific historical facts and related Wikipedia links from Wikipedia's On This Day API, including events, births, deaths, and holidays.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Historical Facts MCP Server π
A fun and engaging MCP (Model Context Protocol) server that provides fascinating historical facts from events that happened on the same date in history! Perfect for integration with ChatGPT, Claude, and other AI applications.
π Features
π Date-Specific Facts: Get historical events, births, deaths, and holidays for any specific date
π― Today's History: Quick access to what happened on today's date throughout history
π² Random Facts: Discover surprising historical events from random dates
π Rich Content: Detailed descriptions, context, and Wikipedia links for deeper exploration
β‘ Fast & Reliable: Uses Wikipedia's robust "On This Day" API
π§ Easy Integration: Simple MCP protocol for seamless AI app integration
Related MCP server: Timepoint MCP
π¨ ChatGPT Apps SDK Integration
This server now includes full ChatGPT Apps SDK compatibility with rich interactive components:
π°οΈ Timeline Explorer
Interactive historical timeline with filtering and favorites
Beautiful gradient header with statistics
Event cards with year badges and categories
JavaScript filtering functionality (All, Events, Births, Deaths, Holidays)
π Discovery Experience
Immersive historical discovery with smart recommendations
Animated discovery cards with staggered appearance
Color-coded year badges and category labels
Diverse content from different time periods
πΊοΈ World Map Visualization
Interactive world map with geographic markers
Historical event locations plotted on map
Color-coded legend for different event types
Professional styling with teal/green theme
β All components render properly in ChatGPT with embedded data templates, bypassing current Apps SDK limitations.
π οΈ Installation
Prerequisites
Python 3.10 or higher
Virtual environment (recommended)
Quick Setup
# Clone the repository
git clone https://github.com/oscar-fern-labs/historical-facts-mcp-server.git
cd historical-facts-mcp-server
# Create and activate virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txtTest the Installation
python test_api.pyπ― Available Tools
1. get_historical_facts
Get historical facts for a specific date.
Parameters:
month(required): Month (1-12)day(required): Day (1-31)event_type(optional): Type of events ("all", "events", "births", "deaths", "holidays")
2. get_todays_historical_facts
Get historical facts for today's date.
Parameters:
event_type(optional): Type of events ("all", "events", "births", "deaths", "holidays")
3. get_random_historical_fact
Get a random historical fact from a random date.
Parameters:
event_type(optional): Type of events ("events", "births", "deaths", "holidays")
π Running the Server
For ChatGPT Desktop (Recommended)
The server runs in STDIO mode for MCP protocol compatibility:
python historical_facts_server.pyConfiguration for ChatGPT
Add this configuration to your ChatGPT Desktop MCP settings:
{
"mcpServers": {
"historical-facts": {
"command": "python",
"args": ["/path/to/historical-facts-mcp-server/historical_facts_server.py"],
"env": {}
}
}
}π Example Usage
Once connected to your AI application, you can ask questions like:
"What happened on January 15th in history?"
"Tell me about historical events on my birthday (March 21)"
"Give me a random historical fact"
"What notable births occurred on July 4th?"
"Show me historical deaths on December 25th"
π Example Response
# Historical Facts for 1/15
## π
Historical Events
**2009**: US Airways Flight 1549 struck a flock of Canada geese during its climb out from New York City and made an emergency landing in the Hudson River.
*US Airways Flight 1549*: US Airways Flight 1549 was a regularly scheduled US Airways flight from New York City's LaGuardia Airport to Charlotte and Seattle...
## π Notable Births
π **1929**: Martin Luther King Jr., American minister and activist, was born.
*About Martin Luther King Jr.*: Martin Luther King Jr. was an American Baptist minister and activist who became the most visible spokesperson...π§ Development
Running Tests
python test_api.pyContributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
π API Reference
The server uses Wikipedia's "On This Day" API:
Base URL:
https://api.wikimedia.org/feed/v1/wikipedia/en/onthisday/Endpoints:
/all/MM/DD,/events/MM/DD,/births/MM/DD,/deaths/MM/DD,/holidays/MM/DD
π§ Technical Implementation
Server Architecture
Enhanced MCP Server:
enhanced_apps_sdk_server_fixed.py- ChatGPT-compatible version with embedded HTMLOriginal MCP Server:
historical_facts_server.py- STDIO MCP protocol for general useHTTP API Wrapper:
http_server.py- REST API for web applicationsFrontend Application: Beautiful web interface with modern UI
Performance & Reliability
Async HTTP Handling: Uses
asyncio.gather()for concurrent Wikipedia API callsError Handling: Robust exception handling with graceful fallbacks
Connection Management: Proper timeouts and connection limits
Response Times: Under 10 seconds including external API calls
Data Volume: Serves 20+ events per category with rich metadata
Apps SDK Features
Embedded Data Templates: Direct HTML generation bypassing ChatGPT limitations
Interactive Components: Timeline, Discovery, and Map visualizations
Professional Styling: Gradient backgrounds, animations, and responsive design
Rich Content: 31KB+ HTML with embedded historical data
Deployment
HTTPS Endpoint:
https://enhanced-apps-sdk-morphvm-87kmb6bw.http.cloud.morph.so/mcpLive Testing: Comprehensive visual verification completed
GitHub Integration: Automated deployment and version control
π€ License
MIT License - see LICENSE file for details.
π Acknowledgments
Wikipedia and Wikimedia Foundation for providing the excellent "On This Day" API
Anthropic for creating the Model Context Protocol
All the historians and editors who contribute to Wikipedia's historical content
π Issues & Support
Found a bug or need help? Please open an issue on our GitHub repository.
Made with β€οΈ for history enthusiasts and AI developers!
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Public holiday data for 30+ countries. Check holidays, working days and calendars via AI assistants.
Time and date math for AI agents: Unix timestamp conversion, DST-correct time zone conversion, durations, epoch arithmetic, cron schedules, and holiday countdowns. Eight tools, no key.
Count days between dates, add or subtract dates, and look up public holidays by country.
Free Japanese public-data tools for AI agents: holidays, business days, wareki, tax, postcodes.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides access to the Nager.Date Public Holiday API for querying global holiday information through the Model Context Protocol. It enables AI agents to interact with standardized tools for holiday-related date calculations and country-specific lookups.-

Timepoint MCPofficial
FlicenseNot gradedqualityBmaintenanceProvides structured access to a temporal knowledge platform for searching historical events and browsing a causal graph of over 2,000 years of history. It enables users to generate rich historical scenes, interact with period-appropriate characters, and run complex temporal simulations.-- AlicenseNot gradedqualityFmaintenanceEnables AI agents to search, read, and explore Wikipedia articles via tools like summaries, categories, and random articles, with no API keys required.1MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to access Wikipedia content, search articles, retrieve historical events, and fetch images through the Wikipedia API.423 npm1MIT