Quotes
live QuotesReferenceResearchCitation-grade quote API with provenance and attribution checking. Curated public-domain corpus (Shakespeare, Twain, Wilde) plus full-text search across plays and novels — every quote returns work, year, speaker, and location (act/scene/chapter).
Tools
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, and source URL.
author_id opt string — famous_only opt boolean — verified_only opt boolean — tag opt string — Try it
search_quotes
required: query Search quotes by substring across canonical text and known popular paraphrases.
query req string — author_id opt string — limit opt number — Try it
check_attribution
required: text Check whether a quote is genuinely attributed to a claimed author. Catches commonly misattributed quotes.
text req string — claimed_author opt string — Try it
quote_by_location
required: author_id, work_title Look up quotes from a specific work and location (act/scene for plays, chapter for novels).
author_id req string — work_title req string — act opt number — scene opt number — chapter opt number — Try it
list_authors List authors available in the curated quote corpus with their work counts.
No parameters required.
Try it
list_full_text_works List complete works available for full-text browsing (plays by act/scene, novels by chapter).
No parameters required.
Try it
get_scene
required: author_id, work_slug, act, scene Fetch a single scene from a play (e.g., Hamlet act 3, scene 1). Returns all speeches in order with speaker labels.
author_id req string — work_slug req string — act req number — scene req number — Try it
get_act
required: author_id, work_slug, act Fetch all scenes from one act of a play.
author_id req string — work_slug req string — act req number — Try it
get_chapter
required: author_id, work_slug, chapter Fetch a chapter from a novel (e.g., Huck Finn chapter 14). Returns all paragraphs in order.
author_id req string — work_slug req string — chapter req number — Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/quotes/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' curl -X POST https://gateway.pipeworx.io/quotes/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"random_quote","arguments":{}}}' Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("random_quote", {}); // Or ask in plain English:
const answer = await px.ask("citation-grade quote api with provenance and attribution checking");