@dennisk2025/random-quote-from-famous-author
v1.0.0
Published
Fetches a random quote from a famous author, including the quote text, author name, and optional tags, sourced from Quotable's public API.
Downloads
4
Readme
random-quote-from-famous-author
Fetch a random quote from a famous author—including the quote text, author name, and optional tags—using the Quotable public API and the Model Context Protocol (MCP).
Features
- One-click local MCP server for fetching random quotes
- Uses public quotable.io API (no API key needed)
- Fast, robust, production-tested implementation
Installation
To install and run this MCP server:
Via npm: npm install @dennisk2025/random-quote-from-famous-author
Via npx (recommended, zero install): npx @dennisk2025/random-quote-from-famous-author
Adding to Claude Desktop
Add the following to your claude_desktop_config.json (replace existing or add under mcpServers):
{
"mcpServers": {
"random-quote": {
"command": "npx",
"args": ["@dennisk2025/random-quote-from-famous-author"]
}
}
}Config file location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Usage & Tools
Once running, the MCP exposes one tool:
Tool: get_random_quote
Fetches a random quote from a famous author.
Parameters: None
Example Tool Call:
Tool: get_random_quote
Arguments: {}Example Response:
{
"quote": "I have no special talent. I am only passionately curious.",
"author": "Albert Einstein",
"tags": ["famous-quotes", "inspirational"]
}Available Tools
| Tool Name | Description | Parameters | |-------------------|------------------------------------------------------------------------------|------------| | get_random_quote | Returns a random quote from a well-known author, including quote, author, tags | (none) |
Error Handling
- If the API is unavailable, a friendly error message is returned.
- All errors are logged to stderr, not to stdout.
Enjoy reading timeless wisdom from famous authors instantly in Claude!
