zotero-mcp

zotero-mcp

A local-only, read-only MCP server for Zotero that lets Claude search and retrieve library items, collections, tags, and attachment full text from your Zotero desktop client.

Category
Visit Server

README

zotero-mcp

A local-only, read-only MCP server for Zotero.

AI disclosure

This tool was built by Claude and hardly verified by me. I advise against using it on your Zotero database (and if you ignore that advise, make sure you have up to date offline backups).

Features

  • Local-only. Talks to the Zotero desktop client's local API on 127.0.0.1:23119. No API key, no zotero.org account, no network traffic.
  • Read-only. Every tool is a retrieval call, enforced by an allowlist; the server has no code path that can add, edit, or delete anything. Note that the local API itself is not read-only — Zotero 10+ supports POST/PUT/ PATCH/DELETE on /api/ once a client obtains a local API key via POST /api/local/authorize. This server never requests such a key and holds api_key=None, so the write path stays unreachable; the read-only guarantee is enforced here, not by the API.
  • stdio transport only.

Requirements

  • Zotero 7 or newer, running
  • Python 3.13+
  • Zotero's local API enabled: Settings → Advanced → "Allow other applications on this computer to communicate with Zotero"

Without that setting the API returns 403 and every tool reports how to fix it.

Install

From a local checkout:

uv tool install .

Usage

Register it with Claude Code:

claude mcp add zotero -- uvx zotero-mcp

Or add it to your MCP client config directly:

{
  "mcpServers": {
    "zotero": {
      "command": "uvx",
      "args": [ "zotero-mcp" ]
    }
  }
}

Tools

Tool Purpose
search_items Search by keyword; optional item-type and tag filters. qmode="everything" searches attachment full text.
get_item Full metadata for one item key.
get_item_children Attachments and notes belonging to an item.
get_item_fulltext Indexed text of an attachment (PDF, snapshot), with truncation info.
list_collections Collections, optionally top-level only.
get_collection_items Items inside a collection.
list_tags Tags used in the library.
get_recent_items Most recently added items.
library_stats Item and collection counts.

Item keys are 8-character strings such as ABCD2345. To read a PDF's text, call get_item_children on a reference first to get its attachment key, then pass that to get_item_fulltext.

Why not read zotero.sqlite directly?

Zotero's developer documentation states that the SQLite schema is an internal implementation detail that may change between releases, and that direct access must be read-only to avoid corruption (Zotero's caching layer interferes with SQLite file locking). The local API is the supported interface, works while Zotero is running, and returns stable documented JSON.

The tradeoff: Zotero must be open. Reading the SQLite file would work with Zotero closed, at the cost of coupling to an unstable schema.

Notes

  • itemType negation: the API docs document exactly three forms — itemType=book, itemType=book || journalArticle (OR), and itemType=-attachment (NOT). Negating a group is not documented, and unsupported expressions fail open: they return 200 OK with the filter silently dropped rather than a 400. Measured on this library: -attachment → 578 results, -attachment || note → 1184 (the unfiltered total), -(attachment) → 1184. An unknown type such as garbagetype returns 0 results rather than erroring. Because a broken filter yields more rows than a working one, this server sends only the documented -attachment and drops remaining notes and annotations in code, over-fetching so the requested limit is still filled.
  • Results are condensed (envelope and empty fields stripped) to keep responses small; abstracts are truncated in list views but returned in full by get_item.
  • ZOTERO_LIBRARY_ID and ZOTERO_LOCALE can override the defaults (0, en-US).

Tests

uv run pytest

The suite mocks pyzotero, so it runs without Zotero open.

License

Released into the public domain under the Unlicense. See LICENSE.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured