{"_id":"@dennisk2025/random-cocktail-recipe","name":"@dennisk2025/random-cocktail-recipe","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@dennisk2025/random-cocktail-recipe","version":"1.0.0","description":"Fetches a random cocktail recipe including ingredients, instructions, and an image, helping users discover new drinks.","type":"module","main":"index.js","bin":{"random-cocktail-recipe":"index.js"},"dependencies":{"@modelcontextprotocol/sdk":"latest","axios":"latest"},"author":{"name":"dennisk2025"},"license":"MIT","_id":"@dennisk2025/random-cocktail-recipe@1.0.0","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-Wp7YPGRC3LJfIVyrpey+YASOEpBSTmJMQhAyMNSM6kOoYCqsEA2HY4c74swN3z1I5mm10ujx9p0JoLb1PFX0dg==","shasum":"c872bab6a584eccae0c6dd89a0016e02e0051bb2","tarball":"https://registry.npmjs.org/@dennisk2025/random-cocktail-recipe/-/random-cocktail-recipe-1.0.0.tgz","fileCount":3,"unpackedSize":6088,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAz+Ou24OMJEL+2ruw75H+TEuyPcMUQo7eskMhzXxAYFAiBlmYPvIGVPjW5Nz0Qs7If7TpFqT6YTJzy38rSUFUxLYg=="}]},"_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-cocktail-recipe_1.0.0_1761425462073_0.7403663294865539"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-25T20:51:01.962Z","1.0.0":"2025-10-25T20:51:02.272Z","modified":"2025-10-25T20:51:02.592Z"},"maintainers":[{"name":"dennisk2025","email":"4dennisk@gmail.com"}],"description":"Fetches a random cocktail recipe including ingredients, instructions, and an image, helping users discover new drinks.","author":{"name":"dennisk2025"},"license":"MIT","readme":"# random-cocktail-recipe\n\nFetches a random cocktail recipe including ingredients, instructions, and an image, helping users discover new drinks.\n\n## Installation\n\nYou can use this MCP server locally or via npx. It will auto-install dependencies:\n\n```\nnpx @dennisk2025/random-cocktail-recipe\n```\n\nOr install globally:\n\n```\nnpm install -g @dennisk2025/random-cocktail-recipe\n```\n\nOr as a project dependency:\n\n```\nnpm install @dennisk2025/random-cocktail-recipe\n```\n\n## Adding to Claude Desktop\n\nAdd the following 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### Example claude_desktop_config.json Section\n\n```json\n{\n  \"mcpServers\": {\n    \"random-cocktail-recipe\": {\n      \"command\": \"npx\",\n      \"args\": [\"@dennisk2025/random-cocktail-recipe\"]\n    }\n  }\n}\n```\n\n## Usage\n\nWhen added to Claude or running as a local MCP server, you get the following tool:\n\n### Available Tools\n\n- **get_random_cocktail**\n  - **Description:** Returns a random cocktail recipe with name, ingredients, instructions, and image.\n  - **Parameters:** _None_\n\n### Example Tool Call\n\n**Tool:** `get_random_cocktail`\n\n**Input:**\n```json\n{}\n```\n\n**Response (example):**\n```json\n{\n  \"name\": \"Margarita\",\n  \"category\": \"Ordinary Drink\",\n  \"alcoholic\": \"Alcoholic\",\n  \"glass\": \"Cocktail glass\",\n  \"ingredients\": [\n    { \"ingredient\": \"Tequila\", \"measure\": \"1 1/2 oz\" },\n    { \"ingredient\": \"Triple sec\", \"measure\": \"1/2 oz\" },\n    { \"ingredient\": \"Lime juice\", \"measure\": \"1 oz\" },\n    { \"ingredient\": \"Salt\", \"measure\": null }\n  ],\n  \"instructions\": \"Rub the rim of the glass with the lime slice to make the salt stick to it. Take care to moisten.. (etc)\",\n  \"image\": \"https://www.thecocktaildb.com/images/media/drink/wpxpvu1439905379.jpg\"\n}\n```\n\n## Error Handling\n\nIf the cocktail API is unavailable or returns an error, the tool will return a clear error message and log details to stderr for diagnosis.\n\n---\n\nDiscover new drinks every time you run the tool. Enjoy responsibly!\n","readmeFilename":"README.md","_rev":"1-67344393a5b6ee08bb785a1f93698d44"}