zotero-mcp
Enables AI assistants to search and retrieve metadata, abstracts, and notes from a user's Zotero library through tools like search, get item, and list collections.
README
zotero-mcp
MCP server that gives Cursor AI live read access to your Zotero library. Ask Cursor to look up papers by author, topic, or collection — it queries your real library on demand.
This projcet is 100% vibe coded
Inspiration
The starting point was wanting Cursor to have context about academic papers alongside an analysis project . Result: a lightweight MCP server giving Cursor live read access to the Zotero web API on demand. The goal isn't to dump your whole library into context — it's to let the AI look things up, surface your notes, follow connections between papers, and reason about what you've been reading.
How it works
Cursor calls these tools exposed by this server:
| Tool | Purpose |
|---|---|
zotero_search |
Full-text search across your library (personal or group) |
zotero_get_item |
Full metadata + abstract for one item |
zotero_list_collections |
Browse your collections (personal or group) |
zotero_get_collection_items |
Items within a collection (personal or group) |
zotero_list_groups |
List all group libraries you have access to |
The server runs as a subprocess on stdio transport — Cursor spawns it, passes credentials via environment variables, and kills it when done.
Setup
1. Get credentials
Go to zotero.org/settings/keys:
- API key → "Create new private key", grant read-only library access
- User ID → shown on the same page as "Your userID for use in API calls" (a plain number)
2. Install dependencies
# in the zotero-mcp mamba/conda env
pip install -r requirements.txt
3. Add to Cursor (WSL + mamba)
Edit %APPDATA%\Cursor\User\settings.json and add to mcpServers:
{
"mcpServers": {
"zotero": {
"command": "wsl",
"args": [
"/home/cait/miniforge3/envs/zotero-mcp/bin/python",
"/mnt/c/Users/Cait/Projects/zotero-mcp/server.py"
]
}
}
}
Credentials are read from .env in the project directory — no need to repeat them in settings.json.
Restart Cursor after saving.
4. Smoke test
In your WSL terminal:
conda activate zotero-mcp
ZOTERO_API_KEY=yourkey ZOTERO_USER_ID=yourid python server.py
# Should hang waiting for stdin — that means it started correctly. Ctrl+C to exit.
Tool reference
zotero_search(query, limit=10, group_id=None)
Full-text search across your library. Includes notes; excludes attachments. Pass group_id to search a group library.
zotero_search("attention mechanism", limit=5)
zotero_search("chromatin potential", group_id="12345")
Returns: [{key, title, authors, year, abstract, item_type}, ...]
zotero_get_item(item_key, group_id=None)
Full metadata for one item. item_key is the 8-character Zotero key (e.g. "ABC12345").
zotero_get_item("ABC12345")
zotero_get_item("ABC12345", group_id="12345")
Returns: {key, title, authors, year, abstract, item_type, doi, url, publication, volume, issue, pages, publisher, tags, collections, date_added}
zotero_list_groups()
All group libraries you have access to.
Returns: [{id, name, description, num_items}, ...]
zotero_list_collections(group_id=None)
All collections in your library. Pass group_id to list a group library's collections.
Returns: [{key, name, item_count}, ...]
zotero_get_collection_items(collection_key, limit=20, group_id=None)
Items within a specific collection. Pass group_id to fetch from a group library.
zotero_get_collection_items("XYZ98765", limit=10)
zotero_get_collection_items("XYZ98765", group_id="12345")
Returns: [{key, title, authors, year, abstract, item_type}, ...]
Security
- API key is passed only via environment variable — never in code or on disk
- The server validates credentials at startup and exits with a clear error if any are missing
.envis gitignored; use.env.exampleas a template if you prefer local.envover Cursor'senvblock- Server has read-only access to Zotero (enforced by the API key permissions you set)
Changelog
Recent changes
- Group library support — new
zotero_list_groups()tool to discover group IDs; all existing tools now accept an optionalgroup_idparameter to query a group library instead of your personal one - Notes included in search — Zotero notes are no longer excluded from results; note content (HTML-stripped) is surfaced as title/abstract
Potential improvements
- Dedicated note search —
zotero_search_notes(query)tool that searches only within user notes, with full note content returned - Tag support — expose
zotero_get_tags()to list all tags in library, andzotero_search_by_tag(tag)to filter by tag - Tag colors — Zotero supports colored tags (position 1–9); surface these in tag metadata so Cursor can reason about your personal tagging system
- Auto-tag awareness — distinguish between user-created tags and auto-generated ones (e.g. from Zotero connectors or imports); Zotero marks these with
type: 1vstype: 0 - Tag search in
zotero_search— include tags in search results by default so Cursor sees how you've categorised a paper
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。