How 54yyyu/zotero-mcp works
Zotero MCP exposes research-library operations through an MCP server and CLI, with a separate Zotero-embedded chat plugin. The principal workflow is an assistant request routed to search or retrieval tools, which read Zotero data and return metadata or extracted paper text; optional semantic search indexes text with embeddings. Other documented branches cover writing, annotations, and Scite. The plugin adds an in-Zotero chat path with an agent session and Zotero context. Relationships for unsampled subsystems are limited to README statements or SOURCE INDEX references; those references do not establish every runtime call.
Main entry points: server.py MCP server · retrieval.py Read tools · semantic_search.py Semantic indexing · search.py Search tools
Components 22
Assistant entry points
- MCP server
src/zotero_mcp/server.py - Zotero CLI
src/zotero_mcp/cli.py
Library operations
- Search tools
src/zotero_mcp/tools/search.py - Read tools
src/zotero_mcp/tools/retrieval.py - Annotation tools
src/zotero_mcp/tools/annotations.py - Write tools
src/zotero_mcp/tools/write.py - Scite lookup
src/zotero_mcp/tools/scite.py - Shared tool helpers
src/zotero_mcp/tools/_helpers.py
Zotero data access
- Library facade
src/zotero_mcp/library.py - Zotero client
src/zotero_mcp/client.py - Local reader
src/zotero_mcp/local_db.py - Text extraction
src/zotero_mcp/extract.py
Semantic search
- Semantic indexing
src/zotero_mcp/semantic_search.py - Vector store
src/zotero_mcp/chroma_client.py - Embedding providers
src/zotero_mcp/embeddings/registry.py
Zotero Agent
- Chat UI
plugin/src/ui/index.ts - Agent session
plugin/src/agent/session.ts - Agent runtime
plugin/src/agent/runtime.ts - Zotero context
plugin/src/zotero/context.ts
Other components
- AI assistant
- Scite service
- Zotero user
Connections 22
- AI assistant → MCP server: requests tools
README.md - MCP server → Search tools: registers tools
src/zotero_mcp/server.py - MCP server → Read tools: registers tools
src/zotero_mcp/server.py - MCP server → Annotation tools: registers tools
src/zotero_mcp/server.py - MCP server → Write tools: registers tools
src/zotero_mcp/server.py - Search tools → Library facade: queries library
src/zotero_mcp/tools/search.py - Search tools → Semantic indexing: runs semantic query
src/zotero_mcp/tools/search.py - Read tools → Local reader: reads locally
src/zotero_mcp/tools/retrieval.py - Read tools → Zotero client: reads Zotero
src/zotero_mcp/tools/retrieval.py - Read tools → Text extraction: extracts full text
src/zotero_mcp/extract.py - Write tools → Zotero client: writes items
src/zotero_mcp/tools/write.py - Write tools → Shared tool helpers: uses helpers
src/zotero_mcp/tools/write.py - Annotation tools → Zotero client: annotates library
README.md - Semantic indexing → Text extraction: extracts content
src/zotero_mcp/extract.py - Semantic indexing → Vector store: stores vectors
src/zotero_mcp/semantic_search.py - Semantic indexing → Embedding providers: creates embeddings
src/zotero_mcp/semantic_search.py - Scite lookup → Scite service: fetches citations
README.md - Zotero user → Chat UI: chats in Zotero
README.md - Chat UI → Agent session: sends chat input
- Agent session → Agent runtime: opens agent
plugin/src/agent/runtime.ts - Chat UI → Zotero context: uses open item context
README.md - Zotero CLI → AI assistant: serves shell agents
README.md