{"_id":"@dennisk2025/daily-random-fact","name":"@dennisk2025/daily-random-fact","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@dennisk2025/daily-random-fact","version":"1.0.0","description":"Fetches a new and interesting random fact each day from a public fact database (MCP server).","main":"index.js","bin":{"daily-random-fact":"index.js"},"scripts":{"start":"node index.js"},"author":{"name":"MCP Developer"},"license":"MIT","dependencies":{"@modelcontextprotocol/sdk":"^1.0.0","axios":"^1.6.7"},"engines":{"node":">=16"},"repository":{"type":"git","url":"git+https://github.com/dennisk2025/daily-random-fact.git"},"_id":"@dennisk2025/daily-random-fact@1.0.0","bugs":{"url":"https://github.com/dennisk2025/daily-random-fact/issues"},"homepage":"https://github.com/dennisk2025/daily-random-fact#readme","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-nn593WwK8kmNAbr3u5Hr4OaVneV2S1AxWJTvV5usSFFvq0msTK+KISshOSqIsFKW/bsI4NZT/VFc5qsCa5Fp9g==","shasum":"673f70fd71a33afcb421e090cda715373f40ae28","tarball":"https://registry.npmjs.org/@dennisk2025/daily-random-fact/-/daily-random-fact-1.0.0.tgz","fileCount":3,"unpackedSize":5338,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEBE3fGwl3+dVe6Hki1PAGlrMpNObo//dnvQnKade9B2AiEAocUQ2P94QhOCy+eMgpAW76PfdhrxSLFq9jDJheeJGwc="}]},"_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/daily-random-fact_1.0.0_1761419805332_0.29198962731665756"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-25T19:16:45.209Z","1.0.0":"2025-10-25T19:16:45.532Z","modified":"2025-10-25T19:16:45.808Z"},"maintainers":[{"name":"dennisk2025","email":"4dennisk@gmail.com"}],"description":"Fetches a new and interesting random fact each day from a public fact database (MCP server).","homepage":"https://github.com/dennisk2025/daily-random-fact#readme","repository":{"type":"git","url":"git+https://github.com/dennisk2025/daily-random-fact.git"},"author":{"name":"MCP Developer"},"bugs":{"url":"https://github.com/dennisk2025/daily-random-fact/issues"},"license":"MIT","readme":"Daily Random Fact MCP Server\n============================\n\nOverview\n--------\n\nThis MCP (Model Context Protocol) server provides a daily random fact fetched from the public [Useless Facts API](https://uselessfacts.jsph.pl/). It's designed to be integrated into any model context that supports MCP tool invocation.\n\nFeatures\n--------\n\n- Retrieves a new and interesting random fact each day.\n- Simple, robust stdio-based MCP server.\n- Can be used as an API tool for chat models and automation.\n\nInstallation\n------------\n\n1. **Install Node.js (v16 or newer required).**\n\n2. **Clone or download this repository, or install via npm:**\n\n   npm install -g daily-random-fact\n\n3. **Install dependencies:**\n\n   npm install\n\nUsage\n-----\n\nRun the server using the CLI or via Node:\n\n    daily-random-fact\n\nor\n\n    node index.js\n\nThis will start the MCP server, listening on stdio for protocol requests.\n\nExample Tool Call\n-----------------\n\n**Tool Name:** get_daily_fact\n\n**Description:** Retrieves a random fact of the day in English from a public API.\n\n**Input Schema:**\n\n    {}\n\n**Sample MCP Call (as JSON):**\n\n    {\n      \"tool\": \"get_daily_fact\",\n      \"input\": {}\n    }\n\n**Sample Output:**\n\n    {\n      \"fact\": \"The dot over the letter 'i' is called a tittle.\",\n      \"source\": \"unknown\",\n      \"permalink\": \"https://uselessfacts.jsph.pl/1573701123446.html\"\n    }\n\nConfiguration\n-------------\n\nNo configuration required. The server fetches facts from the live API. To change the data source, edit the `apiUrl` in `index.js`.\n\nTroubleshooting\n---------------\n\n- Ensure you have internet connectivity — the server must access the API at https://uselessfacts.jsph.pl/.\n- For verbose logs, check console output.\n\nLicense\n-------\n\nMIT License\n","readmeFilename":"README.md","_rev":"1-8d0769a74cac2f7bbd334fee01854cf6"}