Quotes

v0.2.1
io.github.pipeworx-io/quotes Checked 4 days ago Published 1 month ago

Quotes MCP — citation-grade quote API for public-domain authors.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

random_quote

Return a random quote from the corpus, optionally filtered by author, fame, verification status, or tag. Each result includes citation: work, year, speaker (for plays/fiction), and source URL.

ParameterTypeDescription
author_idstringOptional author id (e.g., "oscar-wilde", "william-shakespeare", "mark-twain"). Use list_authors to discover ids.
famous_onlybooleanIf true, only return famous/canonical quotes.
tagstringFilter by tag (e.g., "wit", "love", "misattributed", "commonly-misquoted").
verified_onlybooleanIf true, exclude misattributed quotes.

search_quotes

Search quotes by substring. Matches both canonical text and known popular paraphrases — searching for 'protest' finds Hamlet's 'The lady doth protest too much, methinks' even though the popular form 'Methinks the lady doth protest too much' is what most people remember.

ParameterTypeDescription
query *stringSubstring to search for (case-insensitive).
author_idstringOptional author filter.
limitnumberMax results to return (default 10, max 25).
verified_onlybooleanIf true, exclude misattributed quotes.

check_attribution

Given a quote and (optionally) the author it is claimed to be by, return one of four verdicts: "verified" (genuine, with citation), "misattributed" (no primary source — popular but fake), "paraphrase_of_verified" (popular corruption of a real quote, returns the actual text), or "no_match" (not in corpus). Useful for journalists, researchers, and anyone tired of fake Mark Twain quotes.

ParameterTypeDescription
text *stringThe quote text to check.
claimed_authorstringOptional: who the quote is popularly attributed to (e.g., "Oscar Wilde", "Mark Twain"). Narrows the check.

quote_by_location

Look up quotes by structural address within a work — act/scene for plays, chapter for novels. Example: author_id="william-shakespeare", work_title="Hamlet", act=3, scene=1 returns the "To be, or not to be" line.

ParameterTypeDescription
author_id *stringAuthor id (e.g., "william-shakespeare").
work_title *stringTitle of the work (e.g., "Hamlet", "The Picture of Dorian Gray").
actnumberAct number (plays only).
chapternumberChapter number (novels/essays).
scenenumberScene number (plays only).

list_authors

Return all authors available in the corpus — each entry includes author id (used as input to other tools), display name, birth/death dates, and public-domain status.

list_full_text_works

List works for which the full text (every scene, speech, and line) is loaded — beyond just the famous-quote excerpts. Use this to discover what is available for deep structural lookup via get_scene and get_act.

get_scene

Return the full text of a specific scene from a play (every speech, every line, in order). Example: author_id="william-shakespeare", work_slug="hamlet", act=3, scene=1 returns the entire "To be, or not to be" scene including all of Hamlet's soliloquy and the subsequent dialogue with Ophelia. Useful for context, citation, or close reading.

ParameterTypeDescription
act *numberAct number.
author_id *stringAuthor id (e.g., "william-shakespeare").
scene *numberScene number.
work_slug *stringWork slug (e.g., "hamlet").

get_act

Return the full text of an entire act (all scenes within it). Use this to read a full structural unit at once. Returned object contains nested scenes with their speeches and lines.

ParameterTypeDescription
act *numberAct number.
author_id *stringAuthor id (e.g., "william-shakespeare").
work_slug *stringWork slug (e.g., "hamlet").

get_chapter

Return the full text of a chapter from a novel/prose work (all paragraphs in order). Example: author_id="oscar-wilde", work_slug="the-picture-of-dorian-gray", chapter=2 returns the entire chapter where Lord Henry tempts Dorian. Use list_full_text_works to discover which works are chapter-based.

ParameterTypeDescription
author_id *stringAuthor id (e.g., "mark-twain").
chapter *numberChapter number.
work_slug *stringWork slug (e.g., "adventures-of-huckleberry-finn").