ForgeMesh Library — Public-Domain Knowledge Base for AI Agents
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
*A ForgeMesh Labs product.*
**A paid public-domain knowledge base, built for agents.** Full-text search, book metadata, chapters, notable quotes, flagship "ask this book a question" retrieval, and 100+ curated subject shelves over a growing corpus of public-domain books — no license, no API key, no account. Pay per call in USDC on Base via x402.
Retrieval only: every answer is a real, cited passage pulled from the indexed text. Nothing here is LLM-generated or summarized — that makes it safe to cite for tutoring agents, reading apps, quiz/curriculum generators, and any workflow where a hallucinated quote is worse than no quote.
Quick start (Claude Desktop / Claude Code / any MCP client)
WALLET_PRIVATE_KEY is a **dedicated low-balance Base wallet** for x402 micropayments — never your primary wallet. $1 of USDC buys dozens to hundreds of calls depending on the route.
Requirements
Node.js 20+ and a dedicated, low-balance Base wallet funded with USDC. The server refuses to sign for any payee other than the Library wallet, any network other than Base mainnet, any asset other than USDC, or any amount over the cap ($0.02 per call, $10 per session). The env vars X402_MAX_PRICE_USD and X402_SESSION_BUDGET_USD can only lower those caps. Requests are same-origin, time out after 60 seconds, are capped at 2 MB, and never follow redirects.
Tools
| Tool | Cost | What it does |
|---|---|---|
| search_literature | $0.02 | Full-text search across the entire corpus — real passages, any book |
| search_books | $0.005 | Search the corpus by title or author substring |
| get_book_metadata | $0.002 | Title, author, year, subjects, bookshelves, chapter range for a book_id |
| get_chapter | $0.005 | Full text of one chapter by book_id + chapter number |
| get_quotes | $0.005 | Notable passages from a book, optionally themed |
| ask_book | $0.01 | Ask a flagship book (Moby Dick, the Republic, Sherlock Holmes...) a question, get cited passages back |
| browse_shelf | $0.003 | Browse a curated category or subject shelf (gothic horror, Russian literature, detective fiction, 100+ shelves) |
| book_of_the_day | $0.001 | Deterministic daily book pick, date-seeded |
Prices are set by the live service and may change — the actual charge always comes from the x402 402 challenge at call time, not this table.
Who this is for
Built for **education-safe** agent use cases:
- Tutoring agents that need a real quote, not a paraphrase
- Reading apps and book-club bots
- Quiz and curriculum generators that cite public-domain source text
- Any agent that needs a large, cheap, license-free text corpus without hitting a rate-limited free API
Nothing here requires an account, an API key, or a license negotiation — the entire corpus is public domain, drawn in part from the Project Gutenberg collection. Not affiliated with or endorsed by Project Gutenberg.
Corpus size
The corpus is actively growing — it started at hundreds of books and is on a path from **17,000+ toward roughly 62,000** as more public-domain texts are indexed. Don't hardcode a book count anywhere downstream of this server; ask search_books or search_literature and let the live index answer.