Skip to main content

Annotheca

A calm, local home for the bibliography of your research projects.
Paste a reference, get the BibTeX and the PDF, highlight, take notes, export one clean .bib.
Let Claude and other AI assistants file the papers they find, with verified metadata.

PyPI Python versions Tests

The library view of Annotheca

Why

Research projects live in stages (state of the art, method, experiments, writing) and the same paper often matters in several of them, for different reasons. Annotheca organises references the way the project is organised:

  • Projects and stage folders. Every project starts with a SoA (state of the art) folder; add as many folders as your project has stages.
  • Paste anything. BibTeX (one or many entries), DOIs, arXiv IDs, links to paper pages (publishers, HAL, IACR ePrint...), or a formatted citation copied from a paper (APA, IEEE, ...). Annotheca resolves it into clean BibTeX through doi.org, arXiv, Crossref and the page's own metadata, and refuses a citation it cannot match with certainty rather than guess.
  • PDFs found for you. Open-access PDFs are downloaded automatically from arXiv, Semantic Scholar and OpenAlex, following repository landing pages to their PDF. Otherwise, drop the PDF on the paper.
  • Highlights, sticky notes and general notes. Highlight passages in five colours, pin draggable post-its on the page, and keep general notes on each paper, next to it in the list or beside the PDF.
  • One paper, several folders, separate notes. A paper filed in two folders is stored once, but its highlights and notes are specific to each folder: what you underline for the state of the art is not what you underline for the method.
  • Share a project. Share downloads the project, with its folders, notes, highlights and PDFs, as one .annotheca file; whoever receives it opens it with the import button of the sidebar.
  • Works with AI assistants. Claude (or any MCP client) can file the papers it finds into your projects, add notes, read yours and get the .bib. See AI assistants.
  • One clean .bib. Export the whole project in one click; papers filed in several folders appear only once, with stable, unique citation keys.
  • English and French, light and dark themes, everything stored locally.

Reading a paper with highlights and a sticky note

Install

Three steps, about a minute. You do not need Python installed: the installer below takes care of it.

1. Install uv, the tool that installs Annotheca and the Python it needs. Copy this into a terminal:

  • Linux and macOS:

    curl -LsSf https://astral.sh/uv/install.sh | sh
    
  • Windows (PowerShell):

    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
    

Then close the terminal and open a new one, so that it finds uv.

2. Install Annotheca:

uv tool install annotheca

3. Start it:

annotheca

Your browser opens on Annotheca. That's it.

Optional, to let Claude use your library (see AI assistants):

annotheca connect

To update later: uv tool upgrade annotheca.

Something went wrong?
  • uv: command not found right after step 1: open a new terminal, or run source $HOME/.local/bin/env (Linux and macOS).
  • annotheca: command not found after step 2: run uv tool update-shell, then open a new terminal.
  • Already using pipx? pipx install annotheca works too.

Use

annotheca

The interface opens in your browser at http://127.0.0.1:8737. Running the command again while Annotheca is running simply reopens it.

Option or command Effect
--port PORT Serve on another local port (default 8737).
--data-dir DIR Keep the library somewhere else.
--no-browser Do not open the browser.
connect Make Annotheca available to Claude (see below).
mcp Serve the tools for AI assistants over stdio (used by connect).

Tips:

  • Ctrl+Enter adds what you pasted.
  • Click a citation key to copy \cite{key}.
  • Drop a PDF file on a paper to attach it.
  • In the reader, select text to highlight it; switch to Sticky note and click on the page to pin a note; click a highlight to recolour or delete it; Esc goes back.

AI assistants

When an assistant writes references itself, it can get a title, an author or a year wrong. With Annotheca, the assistant only says which paper it means (a DOI, an arXiv ID, a citation); Annotheca fetches the metadata from doi.org, arXiv and Crossref, files the paper with its PDF, and answers with the exact citation key, title and authors to use. Every paper an assistant adds is marked with its name, so you can always see, and filter, what it relied on.

annotheca connect registers Annotheca as an MCP server for Claude Code (in every project) and Claude Desktop when they are installed, and prints the configuration to paste into other MCP clients (Cursor, Codex, Gemini CLI...). The assistant then just needs to be asked:

Find recent papers on contact-implicit trajectory optimisation and add the three most relevant to the SoA of my PhysProx project, with a note on each.

What did I highlight in posa2013direct? Write the related-work paragraph citing the papers of the Method folder.

Tool What the assistant can do
list_projects See the projects and their folders.
create_project, create_folder Create them.
add_references File papers from DOIs, arXiv IDs, BibTeX or citations, with a note; get back verified metadata.
list_papers List the papers of a project with your notes.
read_paper Read a paper's BibTeX, your notes, highlights and sticky notes, and the path of its PDF.
add_note Add a signed paragraph to a paper's notes.
get_bibtex Get the project's .bib.

Nothing else is needed: the server explains itself to the assistant. Papers it adds appear in the interface as soon as you come back to the window.

Your data

Everything stays on your machine, in ~/.local/share/annotheca (or $XDG_DATA_HOME/annotheca, or $ANNOTHECA_HOME):

library.db   SQLite database: projects, folders, BibTeX, notes, annotations
pdfs/        one PDF per paper

Back it up by copying that directory. The only network requests are the lookups of references and PDFs, sent to doi.org, arXiv, Crossref, Semantic Scholar, OpenAlex and the repositories they point to.

Dark theme

Development

git clone https://github.com/melissa-colin/annotheca
cd annotheca
uv venv && uv pip install -e '.[test]'
.venv/bin/pytest
.venv/bin/annotheca --data-dir /tmp/annotheca-dev

Releases are made by the maintainer: only accounts with write access to this repository can push tags, and PyPI only accepts packages built by this repository's release workflow from a v* tag. To release, set the new version in pyproject.toml, commit, then push a matching tag; the tests run and the package is published:

git tag v0.2.0 && git push origin v0.2.0

The code follows the Google Python and JavaScript style guides. The backend is a small FastAPI app over SQLite (src/annotheca); the interface is dependency-free JavaScript modules with pdf.js vendored, so there is no build step.

src/annotheca/
  cli.py         command line entry point
  api.py         HTTP API and static files
  library.py     storage: projects, folders, papers, placements, annotations
  bundle.py      .annotheca files to share a project
  mcp_server.py  tools for AI assistants (Model Context Protocol)
  models.py      validated shapes shared by the API and the bundles
  bibtex.py      BibTeX parsing, formatting, citation keys, identifiers
  sources.py     doi.org, arXiv, Crossref, Semantic Scholar, OpenAlex lookups
  static/        web interface

License

MIT. pdf.js is distributed under the Apache License 2.0 (src/annotheca/static/vendor/pdfjs/LICENSE).

Metadata

Release files for annotheca 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for annotheca 0.1.2
File Size Uploaded Provenance Actions
annotheca-0.1.2.tar.gz 1.9 MB With provenance Details for annotheca-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for annotheca 0.1.2
File Interpreter ABI Platform Actions
annotheca-0.1.2-py3-none-any.whl Python 3 none any Details for annotheca-0.1.2-py3-none-any.whl

Total release size: 2.4 MB

Release files / annotheca-0.1.2.tar.gz

Download URL annotheca-0.1.2.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
1df3615642432177d7bf72c1f2fdab9cb87d0183af60a9d010c6a78dc0ac6676
BLAKE2b-256 checksum
How to use checksums
5316aab1a058fccf8acd4b085b7f13e19c25a852159625f306c4b4db165a7f8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / annotheca-0.1.2-py3-none-any.whl

Download URL annotheca-0.1.2-py3-none-any.whl
Size 572.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e735fbbe9593f6593d7d25729e3d1fb7cb732e420af99dddaee9433e791cb6bb
BLAKE2b-256 checksum
How to use checksums
e1b24fc79eaf103935f7005ac25927510caf7af2e24e8e3a5d6ddb691d94b80b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Security for annotheca 0.1.2

Provenance

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for annotheca-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page