MCP Zotero
v2.1.1Unofficial Zotero server: search your library, add papers by DOI, import PDFs, cite in Word
Values you need
| Variable | What it is | |
|---|---|---|
ZOTERO_API_KEY | required secret | Zotero Web API key (zotero.org/settings/keys) with library read/write and file access |
ZOTERO_USER_ID | required | Your numeric Zotero user ID (shown on zotero.org/settings/keys); the default library is this user's |
ZOTERO_LIBRARY_TYPE | optional | Default library type: 'user' (personal library) or 'group' Default: user |
ZOTERO_LIBRARY_ID | optional | Numeric group ID; required when ZOTERO_LIBRARY_TYPE is 'group', otherwise defaults to ZOTERO_USER_ID |
UNPAYWALL_EMAIL | optional | Email sent to the Unpaywall API to find open-access PDFs; if unset, OA PDF lookup is skipped |
UNSAFE_OPERATIONS | optional | Deletions allowed: 'none' (default, all blocked), 'items' (delete_items) or 'all' (also delete_collection) Default: none |
npm (npx)
Requires Node.js 18+
Run in a terminal
claude mcp add mcp-zotero -e 'ZOTERO_API_KEY=<ZOTERO_API_KEY>' -e 'ZOTERO_USER_ID=<ZOTERO_USER_ID>' -- npx -y @xevos117/mcp-zotero@2.1.1Add to
claude_desktop_config.json{
"mcpServers": {
"mcp-zotero": {
"args": [
"-y",
"@xevos117/mcp-zotero@2.1.1"
],
"command": "npx",
"env": {
"ZOTERO_API_KEY": "<ZOTERO_API_KEY>",
"ZOTERO_USER_ID": "<ZOTERO_USER_ID>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp-zotero": {
"args": [
"-y",
"@xevos117/mcp-zotero@2.1.1"
],
"command": "npx",
"env": {
"ZOTERO_API_KEY": "<ZOTERO_API_KEY>",
"ZOTERO_USER_ID": "<ZOTERO_USER_ID>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "ZOTERO_API_KEY",
"id": "zotero-api-key",
"password": true,
"type": "promptString"
},
{
"description": "ZOTERO_USER_ID",
"id": "zotero-user-id",
"password": true,
"type": "promptString"
}
],
"servers": {
"mcp-zotero": {
"args": [
"-y",
"@xevos117/mcp-zotero@2.1.1"
],
"command": "npx",
"env": {
"ZOTERO_API_KEY": "${input:zotero-api-key}",
"ZOTERO_USER_ID": "${input:zotero-user-id}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp-zotero]
command = "npx"
args = ["-y", "@xevos117/mcp-zotero@2.1.1"]
env = { "ZOTERO_API_KEY" = "<ZOTERO_API_KEY>", "ZOTERO_USER_ID" = "<ZOTERO_USER_ID>" }For AI agents
- Ask the user for: ZOTERO_API_KEY, ZOTERO_USER_ID. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json