Socket
Book a DemoInstallSign in
Socket

@dennisk2025/random-fun-fact

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dennisk2025/random-fun-fact

Fetches a random, fun, real-world fact from the Useless Facts API. Each call returns a single quirky, surprising, or amusing fact, optionally specifying the language.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

random-fun-fact-mcp

Fetches a random, fun, real-world fact from the Useless Facts API. Each call returns a single quirky, surprising, or amusing fact, optionally specifying the language (English or German).

Installation

Install globally using npm:

npm install -g @dennisk2025/random-fun-fact-mcp

Or run instantly via npx (recommended for Claude Desktop):

npx @dennisk2025/random-fun-fact-mcp

Adding to Claude Desktop

Add the following JSON snippet to your Claude Desktop config file at:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "random-fun-fact": {
      "command": "npx",
      "args": ["@dennisk2025/random-fun-fact-mcp"]
    }
  }
}

Restart Claude Desktop and "random-fun-fact" will appear as a custom MCP tool.

Usage

This MCP provides one tool:

Tool: get_random_fun_fact

Returns a random fun fact in the specified language (English or German).

Parameters

  • language (optional):
    • Type: string
    • Allowed values: "en", "de"
    • Description: The language code for the fact. 'en' for English, 'de' for German. Defaults to 'en'.

Usage Examples

English (default)
{
  "name": "get_random_fun_fact",
  "arguments": {}
}
German
{
  "name": "get_random_fun_fact",
  "arguments": { "language": "de" }
}

Response Example

{
  "fact": "The unicorn is Scotland’s national animal.",
  "language": "en"
}

Available Tools

Tool NameDescriptionParameters
get_random_fun_factReturns a random fun fact (optionally specify language: 'en' or 'de').language (string)

Notes

  • No API keys required. All facts from uselessfacts.jsph.pl
  • Safe for use in production or personal chats!

FAQs

Package last updated on 25 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts