Skip to main content Switch to mobile version paper-library-kit 0.3.0 Git-native, anti-hallucination literature knowledge graph & AI-readable paper library toolkit for AI coding agents.
pip install paper-library-kit Copy PIP instructions
Stop letting AI coding agents hallucinate DOIs and burn tokens reading raw PDFs.
paper-library-kit is a Git-native, verbatim-verified literature knowledge graph, PDF-to-Markdown pipeline, and proactive debugging hook designed for Claude Code, Codex, Cursor, and Perplexity/Gemini research workflows.
English | 繁體中文版說明 (Traditional Chinese) | Live Interactive Evolution Graph Demo (16 Real AI-Agent/RAG Papers)
Standard reference managers (Zotero, Mendeley) are built for humans, while naive vector RAG stores often fail in rigorous engineering and academic workflows:
flowchart LR S1["1. Survey & Gaps\nplk lit / verify / chain / gap"] --> S2["2. PDF to AI-Readable\nplk ingest / ocr / audit-pdfs"] S2 --> S3["3. Verbatim Cards & Tags\nplk cards / check / meta-health"] S3 --> S4["4. Relation Graph & Timeline\nplk backfill / cites / graph build"] S4 --> S5["5. Retrieval & Proactive Hooks\nplk search / neighbors / paper_hint.py"] Real Anti-Hallucination Catch Examples
Catching misquoted metrics before they enter your notes (plk check):
✗ [number not found] M05: 5 datasets @ plug-and-play retrieval correction evaluation ✗ [value not in quote] M05: 5 «Experiments on five datasets demonstrate that CRAG» If the paper text says "five datasets" and an LLM rewrites "5", or attaches a model number like SM15T30A as 30 A, check_core_tags.py rejects it immediately.
Catching LLM-hallucinated DOIs (plk verify survey_notes.md):
| Verdict | Sim | DOI | Crossref Actual Title | In Lib | |----------------------|------|----------------------------|-------------------------------------------|--------| | OK | 1.00 | 10.48550/arxiv.2210.03629 | ReAct: Synergizing Reasoning and Acting | M01 | | MISMATCH (wrong ref) | 0.14 | 10.1109/jssc.2020.9999999 | Unrelated Journal Article | — |
Option A: Try the 15-Paper Demo Immediately (No PDFs Needed)
pip install paper-library-kit plk --lang en demo # builds sample AI-Agent/RAG library + interactive evo_graph.html Or test the MCP server with zero local setup via uvx:
uvx --from "paper-library-kit[mcp]" plk mcp --demo Option B: Start Your Own Research Library
pip install "paper-library-kit[all]" # or `pip install paper-library-kit` for core CLI only plk init ./my-research --preset ml_llm --agents all # presets: ml_llm | analog_power | bioinfo cd my-research plk --lang en import-bib refs.bib # import an existing Zotero / Overleaf .bib file plk ingest --arxiv 2310.06770 # or fetch arXiv PDF + metadata directly Edit config/paper_config.yaml for your domain (topics, themes swimlanes, controlled vocab, aliases, lang: en, and local pdf_archive_dir).
Optional system packages for scanned PDFs: poppler-utils (pdftoppm/pdftotext) and tesseract-ocr. Optional environment variable for high-rate OpenAlex queries: export OPENALEX_API_KEY=...
Unified plk Commands (pass --lang en or set lang: en in paper_config.yaml)
Ready-to-Use Prompt Templates, Domain Presets & Rule Adapters
English: prompts/en/ (00_AGENT_LITERATURE_RULES.md through 05_PROMPT_RELATION_NETWORK.md)
繁體中文: prompts/ (00_AGENT_LITERATURE_RULES.md through 05_PROMPT_RELATION_NETWORK.md)
Cursor / Windsurf / Codex (AGENTS.md): prompts/adapters/ (install into any project via plk agents all)
Domain Presets: config/presets/ (ml_llm, analog_power, bioinfo — apply via plk init --preset )
Listed on PyPI, the Official MCP Registry (io.github.Debiddo0506/paper-library-kit), and Glama.
Clients that support mcpServers (Claude Desktop, Claude Code, Cursor, etc.) can configure it directly:
{ "mcpServers": { "paper-library": { "command": "uvx", "args": [ "--from", "paper-library-kit[mcp]", "plk", "mcp", "--project-dir", "/absolute/path/to/my-research" ] } } } The client discovers four read-only tools:
Each tool returns the corresponding CLI --json value in a result field. For full-text queries, pass "fulltext": true with terms. For indexed queries, search also accepts block and text. Graph tools include citation edges by default. A disconnected path returns {"result": null}.
Glama MCP Directory & Online Testing
View the server listing on Glama MCP Servers before installing locally to:
Browse the server's tools (search, show, neighbors, path) and check its quality score
Test the server online using Glama MCP Inspector
Development, Tests & Contributing
python -m unittest discover -s tests -v Ready to contribute? Browse the open good first issue tickets or see ROADMAP.md (Marker/Docling backend, semantic reranker, quote-find helper, domain presets) and CONTRIBUTING.md.
Both files in this release have provenance metadata.
ai-agents anti-hallucination claude-code knowledge-graph literature-review pdf-to-markdown research-tools
Development Status 4 - Beta
Intended Audience Developers
License OSI Approved :: MIT License
Programming Language Python :: 3
Topic Scientific/Engineering
Release files for paper-library-kit 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 302.8 kB
Release files / paper_library_kit-0.3.0.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Security for paper-library-kit 0.3.0
Both files in this release have been uploaded with provenance metadata.
With provenance paper_library_kit-0.3.0.tar.gz Dec 3, 2026
Attestation for paper_library_kit-0.3.0.tar.gz
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 3, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




