{"_id":"@dennisk2025/random-country-info","name":"@dennisk2025/random-country-info","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@dennisk2025/random-country-info","version":"1.0.0","description":"Provides random information and fun facts about countries worldwide, including capital, population, region, and more.","type":"module","main":"index.js","bin":{"random-country-info":"index.js"},"dependencies":{"@modelcontextprotocol/sdk":"latest","axios":"latest"},"author":{"name":"dennisk2025"},"license":"MIT","_id":"@dennisk2025/random-country-info@1.0.0","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-NnN7MlRMWL9iWMzxP5zWJc+XFLmxiQJgo5WSbjOUz5N5w+2zMk1WMpgdWr0RKrWRkas4YzG8RVZBMj8bSd6xyA==","shasum":"5fe56445dba52d99954ff3d9d08a6f884ef7359f","tarball":"https://registry.npmjs.org/@dennisk2025/random-country-info/-/random-country-info-1.0.0.tgz","fileCount":3,"unpackedSize":12332,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGyutrVzYDKYpVoeeR0Ax79+/h23VQvTD8tyuaioABpQAiEArFvhxiYcuo/eXYLEEWmrKNgZkivQo9h72ISodwQEWpo="}]},"_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/random-country-info_1.0.0_1761425450546_0.9185265865518508"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-25T20:50:50.375Z","1.0.0":"2025-10-25T20:50:50.753Z","modified":"2025-10-25T20:50:51.165Z"},"maintainers":[{"name":"dennisk2025","email":"4dennisk@gmail.com"}],"description":"Provides random information and fun facts about countries worldwide, including capital, population, region, and more.","author":{"name":"dennisk2025"},"license":"MIT","readme":"# random-country-info\\n\\nProvides random information and fun facts about countries worldwide, including capital, population, region, flag, and more.\\n\\n## Features\\n- Get a random country's name, capital, population, region, flag, and a fun summary\\n- Query detailed country info by name\\n- Data from https://restcountries.com/v3.1/all\\n\\n## Installation\\n\\n### Using npm\\n\\n    npm install -g @dennisk2025/random-country-info\\n\\n### Using npx (recommended for latest version)\\n\\n    npx @dennisk2025/random-country-info\\n\\n## Adding to Claude Desktop\\n\\nAdd the following section to your `claude_desktop_config.json`:\\n\\n```json\\n{\\n  \"mcpServers\": {\\n    \"random-country-info\": {\\n      \"command\": \"npx\",\\n      \"args\": [\"@dennisk2025/random-country-info\"]\\n    }\\n  }\\n}\\n```\\n\\n**File Location:**\\n- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`\\n- **Windows:** `%APPDATA%\\\\Claude\\\\claude_desktop_config.json`\\n\\n## Usage\\n\\nAvailable tools:\\n\\n### 1. get-random-country\\n\\nReturns a random country's name, capital, population, region, flag, and a brief summary.\\n\\n**Input:**\\n```json\\n{}\\n```\\n\\n**Example Call:**\\n\\n- tool: `get-random-country`\\n- arguments: `{}`\\n\\n**Example Response:**\\n```json\\n{\\n  \"name\": \"Slovenia\",\\n  \"capital\": \"Ljubljana\",\\n  \"population\": 2110000,\\n  \"region\": \"Europe\",\\n  \"flag\": \"https://flagcdn.com/w320/si.png\",\\n  \"summary\": \"Slovenia is located in Europe, Southern Europe. Capital: Ljubljana. Population: 2,110,000. A principal language is Slovenian.\"\\n}\\n```\\n\\n---\\n\\n### 2. get-country-by-name\\n\\nFetches detailed information about a specific country by its common name (case-insensitive).\\n\\n**Input:**\\n```json\\n{\\n  \"country_name\": \"Japan\"\\n}\\n```\\n\\n**Example Call:**\\n- tool: `get-country-by-name`\\n- arguments: `{ \"country_name\": \"Japan\" }`\\n\\n**Example Response:**\\n```json\\n{\\n  \"name\": \"Japan\",\\n  \"capital\": \"Tokyo\",\\n  \"population\": 125836021,\\n  \"region\": \"Asia\",\\n  \"flag\": \"https://flagcdn.com/w320/jp.png\",\\n  \"summary\": \"Japan is located in Asia, Eastern Asia. Capital: Tokyo. Population: 125,836,021. It is one of the world's most populous countries. A principal language is Japanese.\",\\n  \"subregion\": \"Eastern Asia\",\\n  \"area_km2\": 377930,\\n  \"languages\": [\"Japanese\"],\\n  \"currencies\": [\"Japanese yen (JPY)\"],\\n  \"timezones\": [\"UTC+09:00\"],\\n  \"independent\": true,\\n  \"maps\": {\"googleMaps\": \"https://goo.gl/maps/NGTLSCSrA8bMrvnX9\", \"openStreetMaps\": \"https://www.openstreetmap.org/relation/382313\"},\\n  \"continents\": [\"Asia\"],\\n  \"flag_emoji\": \"\\ud83c\\uddef\\ud83c\\uddf5\"\\n}\\n```\\n\\n---\\n\\n## Tool Reference\\n\\n### get-random-country\\n- **Description:** Returns a random country's name, capital, population, region, flag, and a brief summary.\\n- **Input Schema:**\\n  ```json\\n  {\\n    \"type\": \"object\",\\n    \"properties\": {},\\n    \"required\": []\\n  }\\n  ```\\n\\n### get-country-by-name\\n- **Description:** Fetches detailed information about a specific country by its common name (case-insensitive).\\n- **Input Schema:**\\n  ```json\\n  {\\n    \"type\": \"object\",\\n    \"properties\": {\\n      \"country_name\": {\\n        \"type\": \"string\",\\n        \"description\": \"The common name of the country (case-insensitive).\"\\n      }\\n    },\\n    \"required\": [\"country_name\"]\\n  }\\n  ```\\n\\n---\\n\\n## Notes\\n- No authentication needed.\\n- Data sourced from [restcountries.com](https://restcountries.com/).\\n\\n---\\n\\nQuestions/contributions are welcome!\\n","readmeFilename":"README.md","_rev":"1-72b8caa1b6793c5a18b68d90a5c4916e"}