{"_id":"@dennisk2025/random-news-headline","name":"@dennisk2025/random-news-headline","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@dennisk2025/random-news-headline","version":"1.0.0","description":"Fetches a random, recent news headline from around the world, including its source and direct link to the article.","type":"module","main":"index.js","bin":{"random-news-headline":"index.js"},"dependencies":{"@modelcontextprotocol/sdk":"latest","axios":"latest"},"author":{"name":"dennisk2025"},"license":"MIT","_id":"@dennisk2025/random-news-headline@1.0.0","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-hD5aDnNL1A8yJ5fHoz9iPwPE+8j7Z1ysuRyftOqUSIHcDycaw/Qblth6wApw4/cELl1voXA0v9r4TsP0DzMGgQ==","shasum":"891afade88e29b872362867120295cceacf9176e","tarball":"https://registry.npmjs.org/@dennisk2025/random-news-headline/-/random-news-headline-1.0.0.tgz","fileCount":3,"unpackedSize":5683,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIA4LEnEOdFPY/PJK/+0hcRofc9L6+w51glxOmLWfUTBTAiAEYK5FjN0oH7+LPgLYc+yLfj2kdxeOOW9eCLUZrMLhbA=="}]},"_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-news-headline_1.0.0_1761425816993_0.2843292344006416"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-25T20:56:56.908Z","1.0.0":"2025-10-25T20:56:57.202Z","modified":"2025-10-25T20:56:57.439Z"},"maintainers":[{"name":"dennisk2025","email":"4dennisk@gmail.com"}],"description":"Fetches a random, recent news headline from around the world, including its source and direct link to the article.","author":{"name":"dennisk2025"},"license":"MIT","readme":"# random-news-headline MCP Server\n\nFetches a random, recent news headline from around the world, including its source and direct link to the article. The server is built for Model Context Protocol (MCP) clients such as Claude Desktop, and provides a simple, zero-configuration API tool.\n\n## Features\n- Fetches a random recent news headline from sources like Inshorts\n- Returns title, source, and direct article URL\n- No API keys or signup required\n\n## Installation\n\nYou can run this server instantly using npx or install it globally:\n\n**Run with npx:**\n\nnpx @dennisk2025/random-news-headline\n\n**Or install globally:**\n\nnpm install -g @dennisk2025/random-news-headline\n\n## Adding to Claude Desktop\n\nAdd the following block to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"random-news-headline\": {\n      \"command\": \"npx\",\n      \"args\": [\"@dennisk2025/random-news-headline\"]\n    }\n  }\n}\n```\n\nAdd this to your Claude Desktop config file at:\n- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`\n- **Windows:** `%APPDATA%\\Claude\\claude_desktop_config.json`\n\n## Usage\n\nAfter starting Claude Desktop and adding the config, you can use the tool via tool-calls in compatible assistants.\n\n### Example: Get a random news headline\n\nTool name: `get-random-headline`\n\n**Parameters:** None\n\n**Sample request:**\n```json\n{\n  \"name\": \"get-random-headline\",\n  \"arguments\": {}\n}\n```\n\n**Sample response:**\n```json\n{\n  \"headline\": \"NASA Prepares to Launch Next Mars Rover\",\n  \"source\": \"BBC News\",\n  \"url\": \"https://www.bbc.com/news/science-environment-53583379\"\n}\n```\n\n## Available Tools\n\n### get-random-headline\n- **Description:** Retrieves a random recent news headline, its news source, and a direct URL to the article.\n- **Input Parameters:** none\n- **Output:** JSON object with `headline` (string), `source` (string), and `url` (string|null)\n\n---\n\nFor questions or support, contact the package author.\n","readmeFilename":"README.md","_rev":"1-79e9c7d08c22a8773bf98e7de45d4d37"}