Skip to main content
Glama
mcp-local-reference

mcp-local-reference

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FIGURE_DPINoResolution for cropped figures300
MCP_DATA_DIRNoPath for the vector index and other data~/.mcp-local-reference
ZOTERO_DATA_DIRNoPath to your Zotero data directory~/Zotero
MIN_FIGURE_PIXELSNoMinimum pixel area to count as a figure10000

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_referencesA

Search your Zotero library for references.

    Uses semantic (vector-similarity) search when the library has been
    indexed with ``index_library``.  Falls back to keyword search
    otherwise.

    Args:
        query: Search query — keywords or a natural-language description.
        limit: Maximum number of results (default 10).
        semantic: Prefer semantic search when an index exists (default True).
    
get_referenceA

Get full metadata for a Zotero reference.

    Args:
        item_key: The 8-character Zotero item key (shown in search results).
    
list_collectionsA

List every Zotero collection (folder) as a nested tree.

get_collection_itemsB

Get references inside a Zotero collection.

    Args:
        collection_key: The collection key (shown in list_collections output).
        limit: Maximum items to return (default 50).
    
format_citationC

Format a reference as a Harvard (Cite Them Right) citation.

    Args:
        item_key: The Zotero item key.
    
index_libraryA

Index your Zotero library into a vector store for semantic search.

Reads all references, embeds title + abstract + tags + authors, and stores them in a local ChromaDB database. Run this once after setup, or again whenever you add new references to Zotero.

get_pdf_textB

Extract text from a reference's PDF attachment.

    Args:
        item_key: The Zotero item key.
        start_page: First page to extract (0-indexed, default: first page).
        end_page: Last page to extract (exclusive, default: last page).
    
list_figuresA

Detect figures and images embedded in a reference's PDF.

    Returns a JSON list with each figure's page number, bounding box
    (in PDF points), and pixel dimensions.  Pass the bbox values to
    ``crop_figure`` to extract a specific figure as an image.

    Args:
        item_key: The Zotero item key.
    
crop_figureA

Crop a rectangular region from a PDF page and return it as an image.

    Use ``list_figures`` first to discover figure locations, then call
    this tool with the bounding-box coordinates.

    Args:
        item_key: The Zotero item key.
        page: Page number (0-indexed).
        x0: Left edge of the crop box (PDF points).
        y0: Top edge of the crop box (PDF points).
        x1: Right edge of the crop box (PDF points).
        y1: Bottom edge of the crop box (PDF points).
        dpi: Rendering resolution (default 300).
    
read_local_pdfA

Extract text from any PDF file on the local machine.

    Use this for PDFs that are NOT managed by Zotero — e.g. files in
    ~/Documents, ~/Downloads, or any other folder.  If LOCAL_PDF_DIR is
    set, relative filenames are resolved against that directory.

    Args:
        file_path: Path to the PDF (absolute, ~-relative, or relative to LOCAL_PDF_DIR).
        start_page: First page to extract (0-indexed, default: first page).
        end_page: Last page to extract (exclusive, default: last page).
    
list_local_figuresA

Detect figures and images in any local PDF file.

    Returns a JSON list of detected figures with page numbers, bounding
    boxes, and dimensions.  Pass the results to ``crop_local_figure``
    to extract a specific figure.

    Args:
        file_path: Path to the PDF (absolute, ~-relative, or relative to LOCAL_PDF_DIR).
    
crop_local_figureA

Crop a rectangular region from any local PDF page as an image.

    Use ``list_local_figures`` first to find figure locations.

    Args:
        file_path: Path to the PDF (absolute, ~-relative, or relative to LOCAL_PDF_DIR).
        page: Page number (0-indexed).
        x0: Left edge of the crop box (PDF points).
        y0: Top edge of the crop box (PDF points).
        x1: Right edge of the crop box (PDF points).
        y1: Bottom edge of the crop box (PDF points).
        dpi: Rendering resolution (default 300).
    
suggest_tags_contextA

Gather everything Claude needs to suggest tags for one Zotero item.

    Returns the item's title, abstract (or first-page PDF snippet as a
    fallback when the abstract is empty), its current tags, and the
    most-used tags in your library — so suggestions can be anchored to
    your existing vocabulary instead of inventing synonyms.

    Args:
        item_key: The 8-character Zotero item key.
    
apply_tagsA

Add tags to a Zotero item via the Web API (append-only merge).

    Defaults to ``dry_run=True`` — pass ``dry_run=False`` to actually
    write. Tags are merged with the item's existing tags via set union;
    nothing is removed by this tool. Uses optimistic concurrency
    (``If-Unmodified-Since-Version``) so concurrent edits fail loudly
    rather than silently overwriting.

    Dry-run reads ``current_tags`` from the local Zotero SQLite (no
    Web API credentials required), which makes prompt iteration
    cheap. The real write always re-fetches from the Web API for
    the authoritative version number.

    Args:
        item_key: The 8-character Zotero item key.
        tags: Tags to add. Empty strings and duplicates are ignored.
        dry_run: If True (default), report the diff without writing.
    
remove_tagsA

Remove tags from a Zotero item via the Web API.

    Mirrors apply_tags but in reverse: tags listed here are *removed*
    from the item's tag list. Defaults to dry_run=True. Idempotent —
    tags not present on the item are silently skipped and reported
    under not_present in the response. Per-call cap matches apply_tags
    (25) to guard against runaway batch destruction.

    Designed for fixing tags that auto-tagging or import workflows
    added incorrectly. Should NOT be used on Claude's own judgment —
    only invoke when the user explicitly identifies tags to remove.

    Args:
        item_key: The 8-character Zotero item key.
        tags: Tags to remove. Empty strings and duplicates are ignored.
            Tags not currently on the item are silently skipped.
        dry_run: If True (default), report the diff without writing.
    
create_collectionA

Create a new Zotero collection (folder).

    Defaults to dry_run=True. If a collection with the same (name,
    parent_key) already exists, returns status='already_exists' with
    the existing key — no duplicate is created.

    Args:
        name: The collection name. Must be non-empty.
        parent_key: Parent collection key, or None to create at the
            library root.
        dry_run: If True (default), report the preview without writing.
    
rename_collectionB

Rename an existing Zotero collection.

    Defaults to dry_run=True. Refuses sibling-name collisions
    (a collection with the same new_name already under the same
    parent) for hygiene; Zotero itself permits this.
    
reparent_collectionB

Move a collection under a different parent.

    Pass new_parent_key=None to move to the library root.
    Refuses cycles (re-parenting a collection under itself or one
    of its descendants).
    
delete_collectionA

Delete a collection. Items inside are NOT deleted — they lose membership in this collection. Sub-collections become orphans. Dry-run lists both blast surfaces before any write.

add_items_to_collectionA

Add items to a Zotero collection (set-union per item).

    Defaults to dry_run=True. Per-call cap of 25 items. Each item
    is patched independently — partial failures are reported in the
    `failed` list while successful items are committed.
    
remove_items_from_collectionB

Remove items from a collection (set-difference per item).

    Mirror of add_items_to_collection. Items not currently in the
    collection are reported under `not_present` and silently skipped.
    Cap of 25, partial-failure semantics.
    
suggest_collection_placementA

Gather context for advising where an item should be filed.

Returns the item's title and abstract (or first-page PDF snippet when the abstract is empty), the full collection tree, the item's current memberships, and a per-collection item count so well-populated folders can be preferred over thinly-used ones. Read-only — no writes.

add_reference_by_doiA

Add a reference to Zotero by DOI.

    Resolves metadata via Crossref, deduplicates against the local library,
    and POSTs a new item if not duplicate.

    Args:
        doi: The DOI string (e.g., '10.1145/3458817.3476195').
        collection_key: Optional Zotero collection key to file the new item in.
        dry_run: If True (default), preview the resolved metadata without writing.
    
add_reference_by_arxivA

Add a reference to Zotero by arXiv ID.

    Resolves metadata via the arXiv API, deduplicates, POSTs the item, and
    attempts to attach the open-access PDF as a child item (non-fatal if
    the PDF can't be fetched).

    Args:
        arxiv_id: The arXiv identifier (e.g., '2401.12345' or 'hep-th/0211177').
            Optional 'vN' version suffix preserved on the PDF URL.
        collection_key: Optional Zotero collection key.
        dry_run: If True (default), preview without writing.
    
add_reference_by_isbnA

Add a reference to Zotero by ISBN.

    Resolves metadata via Open Library, deduplicates, POSTs a new book item.

    Args:
        isbn: ISBN-10 or ISBN-13, hyphenated or not. Checksum validated.
        collection_key: Optional Zotero collection key.
        dry_run: If True (default), preview without writing.
    
delete_itemA

Delete a single item from Zotero via the Web API.

    Dry-run-by-default. Previews the item title and any child attachments
    that would become orphaned (Zotero's DELETE does not cascade).

    Args:
        item_key: The 8-character Zotero item key.
        dry_run: If True (default), preview only. If False, perform the
            delete via the Web API with optimistic concurrency.
    
index_pdfsA

Build a passage-level index of your PDF attachments for RAG search.

    Reads each reference's PDF attachment, splits it into overlapping
    chunks, and embeds them with a multilingual model.  Subsequent
    runs skip references that are already indexed unless ``force=True``.

    Args:
        item_keys: If provided, only index these specific items. Otherwise
            indexes every reference in your library that has a PDF.
        force: Re-index even items already present in the chunk store.
    
search_passagesA

Search PDF passages for the natural-language query.

    Returns up to *limit* passages, each with the item_key and page so
    you can cite them.  Use ``format_citation(item_key)`` to render a
    proper Harvard reference.

    Args:
        query: Natural-language query — a question, claim, or topic.
        limit: Max passages to return.
        item_key: If provided, restrict search to one paper's PDF.
        max_per_paper: Cap chunks-per-paper to force result diversity.
            Set to 0 or negative to disable.
    

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 28 tools

Disambiguation4/5

Most tools have clearly distinct purposes, and the parallel Zotero-vs-local PDF triples (get_pdf_text/read_local_pdf, list_figures/list_local_figures, crop_figure/crop_local_figure) are explicitly distinguished in their descriptions. Remaining ambiguities are mild: search_references vs search_passages (metadata vs full-text) and index_library vs index_pdfs require careful reading, though the descriptions resolve them.

Naming Consistency4/5

Nearly all tools follow a verb_noun snake_case pattern (list_collections, create_collection, add_items_to_collection, delete_item) and related operations mirror each other cleanly, e.g. apply_tags/remove_tags and add_items_to_collection/remove_items_from_collection. Minor deviations exist where synonymous verbs are used for equivalent actions (get_pdf_text vs read_local_pdf) and the suggest_* family mixes context-gathering with action verbs.

Tool Count3/5

At 28 tools this sits above the comfortable range and feels heavy, especially since six of them are near-duplicate PDF tools split only by storage location and three add_reference_by_* variants could arguably collapse into one resolver. The domain is genuinely broad (library search, collections, tags, PDFs, RAG, imports), so most tools do earn a place, but the surface is borderline bloated.

Completeness4/5

Coverage is strong: read/search items, three import paths, delete, full collection CRUD with membership management, tag add/remove with dry-run, citation formatting, PDF text/figure extraction, and passage-level RAG search. Notable gaps remain — there is no tool to update an item's metadata, add a manual (non-DOI/arXiv/ISBN) reference, manage notes/annotations, or read/manage attachments beyond PDF text.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues