openclaw-zotero-mcp
Provides tools for searching, retrieving, exporting, creating, and organizing Zotero items and collections, and for uploading local files as attachments to Zotero items.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
openclaw-zotero-mcp
Zotero integration for OpenClaw.
This repository now provides two integration modes:
native OpenClaw plugin for the main agent
stdio MCP server for ACP/acpx workflows
What it provides
search_itemsget_itemexport_itemscreate_collectioncreate_itemadd_to_collectionattach_file
Related MCP server: zotero-mcp-server
Recommended mode: native OpenClaw plugin
If your goal is "talk to the main OpenClaw agent in Telegram and ask it to search Zotero in natural language", use the native plugin mode.
Plugin setup
Install dependencies:
npm installKeep
.envin this repo, or configure the API key in~/.openclaw/openclaw.json.Point OpenClaw at this plugin directory and enable it:
{
"plugins": {
"load": {
"paths": ["/absolute/path/to/openclaw-zotero-mcp"]
},
"entries": {
"zotero": {
"enabled": true
}
}
}
}Optional explicit plugin config:
{
"plugins": {
"entries": {
"zotero": {
"enabled": true,
"config": {
"apiKey": "your-zotero-api-key",
"libraryType": "user",
"libraryId": "123456"
}
}
}
}
}If plugins.entries.zotero.config.apiKey is unset, the plugin falls back to:
ZOTERO_API_KEYthis repo's
.envfile
Then restart OpenClaw.
What the native plugin gives you
It registers a main-agent tool named zotero, so the normal OpenClaw agent can use it directly from natural-language requests.
Examples:
"Search my Zotero library for transformer papers"
"Find 5 Zotero items about retrieval augmented generation"
"Export this Zotero item as BibTeX"
Secondary mode: ACP MCP server
If you specifically want ACP/acpx sessions such as codex to use Zotero through MCP, this repo still exposes the original stdio MCP server.
Setup
Copy
.env.exampleto.envFill in your Zotero API key
Install dependencies
npm installFor user libraries, the server resolves ZOTERO_LIBRARY_ID automatically from the API key.
If you want to inspect the resolved account manually:
curl -H "Zotero-API-Key: <your-key>" https://api.zotero.org/keys/currentUse explicit ZOTERO_LIBRARY_TYPE and ZOTERO_LIBRARY_ID only when you need to override the detected user library or connect to a group library.
ACP/acpx configuration
Add an acpx entry in ~/.openclaw/openclaw.json:
{
"acp": {
"enabled": true,
"dispatch": {
"enabled": true
},
"backend": "acpx",
"defaultAgent": "codex"
},
"plugins": {
"entries": {
"acpx": {
"enabled": true,
"config": {
"permissionMode": "approve-reads",
"nonInteractivePermissions": "fail",
"mcpServers": {
"zotero": {
"command": "node",
"args": [
"/absolute/path/to/openclaw-zotero-mcp/src/index.js"
]
}
}
}
}
}
}
}Use an absolute path for src/index.js. OpenClaw mcpServers config supports command, args, and env, but not a dedicated cwd, so absolute paths are the safest option.
After updating config, restart OpenClaw and spawn an ACP session such as:
/acp spawn codex --mode persistentThen ask the ACP agent to search or export Zotero items.
Running the MCP server directly
For manual testing:
node /absolute/path/to/openclaw-zotero-mcp/src/index.jsor from the project directory:
npm startThis starts a standard stdio MCP server. It is expected to be launched by an MCP client, not used as an interactive terminal program.
Environment variables
ZOTERO_API_KEY: Zotero API key with read access; write-enabled if you want to create collections/items or upload attachmentsZOTERO_LIBRARY_TYPE: optional override,userorgroupZOTERO_LIBRARY_ID: optional override for user libraries, required for group libraries
Native plugin tool behavior
The native plugin exposes one main tool:
zotero
Supported actions:
searchget_itemexport_itemscreate_collectioncreate_itemadd_to_collectionattach_file
MCP tool behavior
search_items
Searches top-level Zotero items by title, creator, or year.
get_item
Fetches one item as:
jsonbibtexcsljson
export_items
Exports one or more items as:
bibtexcsljson
create_collection
Creates a Zotero collection (folder).
create_item
Creates a Zotero item from metadata and can place it into one or more collections.
add_to_collection
Adds an existing Zotero item into a collection.
attach_file
Uploads a local file as an attachment under an existing Zotero item.
Current scope
Read and write access to Zotero items when the API key has write permission
Local file attachment upload is supported
Telegram-native file ingestion into Zotero is not implemented yet
Troubleshooting
If startup fails immediately:
check that
.envexistscheck that
ZOTERO_API_KEYis validcheck that the
nodecommand exists in the OpenClaw runtime environment
If OpenClaw cannot use the tools:
make sure
acp.enabledistruemake sure
acp.dispatch.enabledistruemake sure
plugins.entries.acpx.enabledistruemake sure the
mcpServers.zotero.args[0]path is absolute and correct
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Zotero MCP server for Claude and ChatGPT: search, citations, safe writes, PDF passages and pages.
Remote MCP server for full read/write access to a Zotero library
Search, read and cite documents. Add, replace and delete files with write access. OAuth required.
Unofficial OpenAlex MCP — wraps the OpenAlex API (scholarly works, free, no auth)
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables managing Zotero reference libraries with full CRUD operations, collections, notes, annotations, and attachments via the Zotero API.MIT
- AlicenseAqualityBmaintenanceEnables read and write access to a Zotero library via its Web API, allowing search, create, update, and delete of items, notes, and collections.121MIT
- FlicenseNot gradedqualityCmaintenanceMCP server for interacting with a Zotero library via the local API. Enables searching, retrieving, creating, updating, and deleting Zotero items, managing collections and tags, and generating citations.-
- AlicenseAqualityAmaintenanceEnables MCP clients to search a Zotero library, read items, take notes, organize collections, and perform semantic search over PDFs.8MIT