Source Library

Search and cite 500+ translated historical texts (alchemy, Hermeticism, Renaissance) with DOI-backed academic citations. Access rare Latin and German manuscripts from the 15th-18th centuries.

Source Library MCP Server

npm version

Search, read, and cite 1,200+ rare historical texts from the terminal or via MCP. 7 research tools, CLI + MCP server, no API key needed.

Quick Start

Claude Code

claude mcp add source-library -- npx -y @source-library/mcp-server

Claude Desktop

Add to your Claude Desktop config:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "source-library": {
      "command": "npx",
      "args": ["-y", "@source-library/mcp-server"]
    }
  }
}

CLI

# Install globally
npm install -g @source-library/mcp-server

# Or run directly
npx @source-library/mcp-server search "philosopher's stone"

From Source

git clone https://github.com/Embassy-of-the-Free-Mind/sourcelibrary-v2.git
cd sourcelibrary-v2/mcp-server
npm install && npm run build
npm start

7 Tools

Search & Discovery

search_library

Full-text search across books and page content. Returns matching books and pages with citation URLs.

ParameterTypeRequiredDescription
querystringYesSearch query
languagestringNoFilter: Latin, German, Greek, Sanskrit, etc.
year_fromnumberNoPublication year start
year_tonumberNoPublication year end
has_doibooleanNoOnly books with DOIs
has_translationbooleanNoOnly translated books
sortstringNorelevance, date_asc, date_desc, title
limitnumberNoMax results (default 10, max 100)

search_translations

Search inside translated text across the entire library. Find what historical authors wrote about any topic. Returns passage snippets with page numbers, book info, and citation URLs.

ParameterTypeRequiredDescription
querystringYesSearch inside page text
languagestringNoFilter by book's original language
year_fromnumberNoPublication year start
year_tonumberNoPublication year end
book_idstringNoSearch within a specific book only
limitnumberNoMax results (default 20, max 50)

search_within_book

Search inside a specific book's pages. Returns matching pages with snippets and citation URLs.

ParameterTypeRequiredDescription
book_idstringYesThe book ID to search within
querystringYesSearch query

list_books

Browse the collection with filters. Returns title, author, language, year, and translation progress.

ParameterTypeRequiredDescription
searchstringNoFilter by title/author (diacritic-insensitive)
languagestringNoFilter by language
categorystringNoFilter by category
sortstringNorecent-translation, recent, title-asc, title-desc
limitnumberNoMax results (default 100, max 200)

Reading

get_book

Detailed book metadata: summary, index stats, chapters, edition info, DOI.

ParameterTypeRequiredDescription
book_idstringYesBook ID

get_book_text

Read a book. Returns 50+ pages of text in one call, each with a citation URL. OCR, translation, or both.

ParameterTypeRequiredDescription
book_idstringYesBook ID
contentstringNoocr, translation, or both (default)
fromnumberNoStart page (inclusive)
tonumberNoEnd page (inclusive)
formatstringNojson (structured) or plain (concatenated text)

Gallery

search_images

Search 50,000+ historical illustrations, emblems, engravings, and diagrams.

ParameterTypeRequiredDescription
querystringNoText search across descriptions
typestringNowoodcut, engraving, emblem, diagram, etc.
subjectstringNoSubject (alchemy, astronomy, anatomy)
figurestringNoDepicted figure (Mercury, philosopher, king)
symbolstringNoSymbol (ouroboros, caduceus, sun)
year_fromnumberNoPublication year start
year_tonumberNoPublication year end
book_idstringNoOnly images from a specific book
min_qualitynumberNoMin quality score 0-1 (default 0.5)
limitnumberNoMax results (default 20, max 50)

CLI

The same 7 tools are available as a standalone CLI with colored terminal output.

# Search the collection
source-library search "Paracelsus" --language=German

# Search inside translations
source-library translations "harmony of the spheres"

# Read a book
source-library text 694f49d3... --from=1 --to=50

# Book details
source-library book 694f49d3...

# Browse the gallery
source-library images --subject=alchemy --type=emblem

# JSON output for piping
source-library search "alchemy" --json | jq .results

Example Research Prompts

"Search for references to 'prima materia' across the collection. Which authors discuss it, and how do their treatments differ?"

"Read the full translation of Fludd's History of Both Worlds, pages 1-50. Summarize the cosmological framework."

"Find all alchemical emblems depicting the ouroboros. What texts are they from?"

"What does Copernicus say about the Sun's centrality in De Revolutionibus? Find the key passages with citation URLs."

Citation URLs

Every page returned by the tools includes a citation URL:

https://sourcelibrary.org/book/fludd-utriusque?page=57

Published editions include DOIs minted via Zenodo.

Development

npm run dev    # Run with hot reload (tsx)
npm run build  # Compile TypeScript
npm start      # Run compiled version
npm run cli    # Run CLI in dev mode

License

MIT

Links

Related Servers