zotero-fulltext
You can use this read-only MCP server to search and read a local Zotero library by metadata, citekey, and indexed fulltext.
Search library metadata and indexed fulltext by keywords, with optional collection/tag filters and limits.
Look up an item by exact citekey and get metadata, with near-match candidates on misses.
List Zotero collections.
Read an item’s indexed fulltext as numbered paragraphs, with paging via offset/limit.
Search within a single item’s fulltext and return matching paragraphs with surrounding context.
Work with Zotero 8+ local API, preserving creator roles and providing
zotero://URIs for items and attachments.
Provides tools to search, lookup, and read items from a Zotero library, including fulltext retrieval and in-document search.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@zotero-fulltext find papers on sustainability reporting"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Access your Zotero library with your favorite AI tool.

This MCP server for Zotero 8+ gives Claude and Codex access to your library via search and citekeys. It talks directly to Zotero's local API and aims to keep token usage low. Fulltext is fetched only on demand.
Quick Start
Make sure Zotero 8+ is running with the local API enabled (Settings → Advanced → "Allow other applications on this computer to communicate with Zotero").
Install the Claude Code plugin:
/plugin marketplace add statzhero/zotero-fulltext
/plugin install zotero@zotero-fulltextRun
/mcpto confirm the server is connected, then try a slash command:
/zotero:find sustainability reportingAlso works with Claude Desktop, Codex, and as a standalone MCP server without slash commands.
Related MCP server: zotero-mcp
Commands
The Claude Code plugin provides four slash commands:
Command | What it does |
| Search the whole library |
| Exact citekey metadata lookup |
| Numbered fulltext paragraphs |
| Search inside one paper's fulltext |
find searches the whole library. lookup is lightweight metadata confirmation. read returns the actual paper text. within searches only one item's indexed fulltext.
Without the plugin, all the same functionality is available through the MCP tools directly (see Tools).
Installation
Claude Code (plugin with slash commands)
/plugin marketplace add statzhero/zotero-fulltext
/plugin install zotero@zotero-fulltextThis installs the MCP server and slash commands. Run /mcp to confirm the server is connected.
Claude Code does not auto-update third-party marketplaces by default. To get new versions automatically, run /plugin, open the Marketplaces tab, select zotero-fulltext, and choose Enable auto-update. Updates install in the background and load in your next session.
Claude Desktop
Requires uv (install with brew install uv or curl -LsSf https://astral.sh/uv/install.sh | sh).
Open Claude Desktop → Settings → Developer → Edit Config, and add:
{
"mcpServers": {
"zotero": {
"type": "stdio",
"command": "uvx",
"args": ["zotero-fulltext"]
}
}
}Save the file, then fully quit and reopen Claude Desktop (closing the window is not enough). Open a new chat and confirm the server is available.
Codex (plugin with skills)
Note: The Codex plugin marketplace is still rolling out. The install flow below may change.
codex plugin marketplace add statzhero/zotero-fulltext
codex plugin add zotero@zotero-fulltextThis installs the MCP server and four skills (find, lookup, read, within).
Codex (manual MCP only)
Requires uv (install with brew install uv or curl -LsSf https://astral.sh/uv/install.sh | sh).
Add to ~/.codex/config.toml:
[mcp_servers.zotero]
command = "uvx"
args = ["zotero-fulltext"]Restart Codex, then run codex mcp list to verify the server appears.
Design
The server is intentionally simple and read-only. It relies on Zotero's own search index rather than building a second one.
Startup builds a metadata index mapping citekeys to items and attachments.
Library changes are tracked with Zotero version headers and incremental sync.
Fulltext is fetched only on demand and cached in memory (TTL/LRU).
All outputs are bounded by default: 10 search hits, 80 paragraphs with a character budget, 20 fulltext matches.
Item results include
item_uriandfulltext_uriso clients can attach standardzotero://...resources directly.Creator roles (author, editor, translator, etc.) are preserved and grouped in results.
If a lookup finds no citekey, it returns
found=falsewithcandidates, near keys to try. If a search finds nothing, it returnsresults=[]. There is no web fallback.
Tools
The server exposes five MCP tools. The slash commands above are convenience wrappers.
lookup(citekey)
Exact citekey lookup. Citekeys are resolved in order:
Native Zotero 8
citationKeyLegacy Better BibTeX
Citation Key:line inExtraDeterministic generated fallback
If an item later gains a real citekey, the generated key is kept as an alias.
A miss returns found=false and candidates, near citekeys with the same surname and a year within one.
search(query, collection?, tag?, limit?)
Matches creator surnames, title words, and year first, ignoring case and diacritics, then fills the remaining slots with Zotero's quick search (qmode=everything). Each result carries a match_source: citekey, metadata, or attachment. To check whether a paper is in the library, search by author surnames and year.
collections()
Lists collections in the current library.
fulltext(citekey, offset?, limit?)
Fetches indexed attachment fulltext, splits it into numbered paragraphs, and returns a bounded slice (default: 80 paragraphs). Large extracted paragraphs are split into smaller chunks, and each response has a soft character budget. If the response includes truncated=true, request the same citekey again with offset=next_offset to continue reading.
Fulltext responses include paging metadata:
Field | Meaning |
| Total available paragraph chunks for the item |
| Number of paragraph chunks in this response |
| Approximate text characters returned |
| Character budget used for this response |
| Whether more paragraph chunks remain |
| Offset to pass into the next |
|
|
fulltext_search(citekey, query, before?, after?, limit?)
Searches within a single item's paragraphized fulltext and returns matching paragraphs with surrounding context. Matching ignores case and diacritics, and finds words broken across lines. The response carries the same partial_index and page-count fields as fulltext.
Environment Variables
By default the server connects to a local personal library with no authentication. Set these variables to change that:
Variable | Default | Description |
|
|
|
|
| Zotero user or group ID (required for group libraries) |
| — | API key for authenticated or remote access |
|
| Base URL for the Zotero API |
|
| Maximum characters per returned fulltext chunk |
|
| Soft character budget for each |
|
| Directory for the persistent metadata index |
|
| Sync the library index once at startup |
|
| Minimum seconds between incremental index refreshes |
|
| Time-to-live for cached fulltext paragraphs |
|
| Maximum number of documents kept in the paragraph cache |
|
| Default number of search results |
|
| Default number of paragraphs per |
|
| Default paragraphs of context around each |
ZOTERO_USER_ID is accepted as an alias for ZOTERO_LIBRARY_ID. The ZOTERO_LIBRARY_ID default of 0 applies to user libraries; group libraries require an explicit ID.
Example for a group library in Claude Code:
{
"mcpServers": {
"zotero": {
"type": "stdio",
"command": "zotero-fulltext",
"env": {
"ZOTERO_LIBRARY_TYPE": "group",
"ZOTERO_LIBRARY_ID": "12345"
}
}
}
}Related Projects
Other MCP servers for Zotero, with different design goals:
54yyyu/zotero-mcp — Feature-rich: read-write operations, optional semantic search via ChromaDB, Web API support. Heavier dependencies.
kujenga/zotero-mcp — Minimal read-only server with Web API support via pyzotero. No citekey resolution or in-document search.
kaliaboi/mcp-zotero — Cloud-only (Zotero Web API). Metadata browsing, no fulltext.
To remove an existing Zotero MCP server before switching:
claude mcp remove zoteroOr delete the zotero entry from .mcp.json / claude_desktop_config.json / ~/.codex/config.toml manually.
Requirements
Zotero 8+ with the local API enabled
Python 3.11+
Better BibTeX (optional but recommended)
License
MIT • Ulrich Atz (ulrichatz)
Available Tools
5 toolscollectionsARead-onlyIdempotent
List Zotero collections in the current library.
Inputs: no named parameters. Returns: object
fulltextARead-onlyIdempotent
Return numbered paragraphs for a Zotero item's indexed fulltext. The citekey is a single token with no spaces (e.g. 'atz2022').
Inputs: citekey (required), limit, offset. Returns: object
fulltext_searchBRead-onlyIdempotent
Search within a Zotero item's indexed fulltext and return local paragraph context. The citekey is a single token with no spaces (e.g. 'atz2022').
Inputs: query (required), citekey (required), after, limit, +1 more. Returns: object
lookupARead-onlyIdempotent
Look up a Zotero item by its exact citekey (a single token with no spaces, e.g. 'atz2022' not 'atz 2022'). Use this first when you know the citekey.
Inputs: citekey (required). Returns: object
searchBRead-onlyIdempotent
Search Zotero metadata and indexed fulltext by keywords. For a known citekey (e.g. 'atz2022'), use lookup instead.
Inputs: query (required), tag, limit, collection. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Most tools have clear distinct purposes: lookup is for exact citekey metadata, fulltext retrieves paragraphs, search is global, and fulltext_search is scoped to one item. However, search and fulltext_search could be confused since both perform keyword searches, though descriptions help differentiate them.
Tool names follow mixed conventions: lookup and search are bare verbs, collections and fulltext are nouns, and fulltext_search is a noun+verb compound. There is no consistent verb_noun or resource_action pattern.
With 5 tools, the server is well-scoped for its purpose of Zotero fulltext retrieval. Each tool covers a distinct need without unnecessary bloat, fitting comfortably in the ideal 3-15 range.
The set covers lookup, search, collection listing, fulltext retrieval, and within-item search, which addresses core read-only workflows. Missing collection item listing and broader metadata browsing are minor gaps that can be worked around via search.
Maintenance
Related MCP Connectors
Zotero MCP server for Claude and ChatGPT: search, citations, safe writes, PDF passages and pages.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Remote MCP server for full read/write access to a Zotero library
- ORANO MCP ServerDeprecatedio.github.infotik
Read-only MCP server exposing a user ORANO library to their own AI agent.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceRead-only MCP server for browsing, searching, and exporting a Zotero library from AI assistants.-
- AlicenseAqualityDmaintenanceRead-only MCP server that lets Claude or any MCP client search and retrieve metadata, notes, full text, citations, and BibTeX from your local Zotero library via its built-in API.11MIT
- AlicenseNot gradedqualityDmaintenanceThis MCP server enables AI assistants like Claude to read and search your local Zotero bibliographic database directly from your machine.8MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for natural-language search over a local Zotero library, enabling tools to search, retrieve, and manage paper metadata, notes, and PDF fulltext via Claude.-