@dennisk2025/random-space-fact
v1.0.0
Published
Fetches a random interesting fact about space, astronomy, or the universe via MCP protocol.
Downloads
7
Readme
random-space-fact MCP Server
Fetches a random interesting fact about space, astronomy, or the universe.
This MCP server provides a tool for retrieving a random fact about a celestial body in our solar system using live data from the Le Systeme Solaire API.
Installation
You can use this package with Claude Desktop or any compatible MCP-compatible client.
Install globally with npm (recommended):
npm install -g @dennisk2025/random-space-factOr run directly via npx (no install required):
npx @dennisk2025/random-space-factAdding to Claude Desktop
Add the following to your claude_desktop_config.json configuration file:
{
"mcpServers": {
"random-space-fact": {
"command": "npx",
"args": ["@dennisk2025/random-space-fact"]
}
}
}Config file location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Usage
Once added to Claude Desktop, you can invoke the tool directly by its tool name:
Available tool: get_random_space_fact
Description: Returns a random fact about a celestial body in our solar system.
Parameters: None (no input required).
Example Tool Call
To request a random space fact:
{
"tool": "get_random_space_fact",
"parameters": {}
}Example response:
{
"fact": "The surface gravity on Mars is approximately 3.71 m/s².",
"body": {
"englishName": "Mars",
"bodyType": "Planet",
"isPlanet": true,
"discoveryDate": "",
"discoveryBy": "",
"semimajorAxis": 227943824,
"density": 3.94,
"gravity": 3.71,
"meanRadius": 3389.5
}
}List of Available Tools
- get_random_space_fact
- Parameters: (none)
- Returns: Random fact and details about a celestial body
Enjoy exploring our solar system!
