Zotero MCP serverand Python AI tasks
qbash hosts a Zotero MCP server you can use in Claude, ChatGPT, Codex, Cursor, Grok Bot and Muse. Developers use qbash Tasks to write cloud-hosted Python functions that pair Zotero with models such as Claude and GPT.
Add the qbash MCP
Use Zotero from Claude Code, Codex, Cursor and other MCP clients. Connect Zotero in qbash, and your agent can work with its data and build Tasks that call it.
claude mcp add --transport http qbash https://mcp.qbash.com/mcp
Then run /mcp in Claude Code and sign in with qbash.
- List and search items in your library or a group library
- Read one item with its fields, tags and collections
- Read the notes and attachment records under an item
- List collections, subcollections, tags and saved searches
- List your groups and My Publications
- Read item types and blank item templates
Write a Zotero task in Python
A qbash Task is a Python function hosted in the cloud. Python is the runtime and defines the process, and built-in inline prompts run on leading models such as Claude, GPT, Gemini and Grok.
Run a Task on a schedule, from an HTTP request or when a connected app sends an event. Your agents and chat tools call it over MCP.
Each run is logged with its inputs and results, and you can turn data logging off for any Task. Every Task has version control, and each run is locked to the version it ran.
Draft a literature review from a Zotero collection
list_items reads the papers in one collection with their abstracts. An inline prompt groups them by theme and drafts a short review that cites each paper by author and year.
result = qbash.integrations.zotero.list_items(
collection_key="QK7V2N8B",
top_level=True,
sort="date",
direction="asc",
limit=100,
)
papers = result.get("items", [])
if papers:
review = qbash.ai.run_prompt(
slug="zotero-literature-review",
variables={"papers": json.dumps(papers)},
)
qbash.output({"review": review, "more_available": bool(result.get("next_cursor"))})
else:
qbash.output("This Zotero collection has no papers yet.")
Sample list_items response
{
"items": [
{
"key": "X42A7DEE",
"version": 1187,
"itemType": "journalArticle",
"title": "Retrieval-augmented generation for knowledge-intensive NLP tasks",
"creators": [
{
"creatorType": "author",
"firstName": "Patrick",
"lastName": "Lewis"
},
{
"creatorType": "author",
"firstName": "Ethan",
"lastName": "Perez"
}
],
"date": "2020",
"publicationTitle": "Advances in Neural Information Processing Systems",
"abstractNote": "Large pre-trained language models store factual knowledge in their parameters but their ability to access and precisely manipulate knowledge is limited. We explore a general-purpose fine-tuning recipe for models that combine pre-trained parametric and non-parametric memory for language generation.",
"tags": [
{
"tag": "retrieval",
"type": 0
}
],
"collections": [
"QK7V2N8B"
],
"meta": {
"numChildren": 1
}
},
{
"key": "B9PC3R1M",
"version": 1192,
"itemType": "preprint",
"title": "Lost in the middle: how language models use long contexts",
"creators": [
{
"creatorType": "author",
"firstName": "Nelson F.",
"lastName": "Liu"
}
],
"date": "2023",
"repository": "arXiv",
"abstractNote": "We analyze language model performance on tasks that require identifying relevant information in long input contexts and find that performance is often highest when the information is at the beginning or end of the context.",
"DOI": "10.48550/arXiv.2307.03172",
"tags": [
{
"tag": "long context",
"type": 0
}
],
"collections": [
"QK7V2N8B"
],
"meta": {
"numChildren": 0
}
}
],
"next_cursor": null,
"total_results": 2,
"library_version": 1192
}
Custom MCP server
Build a custom MCP server with Zotero
Create a hosted MCP server that combines Zotero tools with your other connectors, Tasks and memory folders. You choose each tool it exposes, so a server can share Zotero reads with write tools left off.
Share the server with your team, and each person adds it to the client they already use.
How to set it up
- Connect Zotero on the qbash Connectors page.
- Create an MCP server and add the Zotero tools you want to share.
- Paste the server URL into your client. It connects with OAuth or an access token.
Zotero MCP questions
Does Zotero have an official MCP server?
Zotero does not publish one. Community servers such as zotero-mcp run on your machine against the desktop app or the Zotero Web API. The qbash server puts the Web API on one URL with your other connectors, and the same methods run in Python Tasks.
Can the Zotero MCP server delete items?
No. It can create items, collections, notes and linked attachment records, update fields, and set tags and collections. No method deletes anything, empties the trash or replaces a whole item, and every update is checked against the item's last-known version so it cannot overwrite newer changes.
Does the Zotero connector need the desktop app running?
No. It calls the Zotero Web API, so it reads the copy of your library that Zotero syncs to zotero.org. Items you add in the desktop app appear once they sync.
What does the Zotero connector need to connect?
A Zotero API key created at zotero.org/settings/keys/new and your numeric user ID. Allow library access for reads and write access to add or change things. Add group access only for the groups you need. A free Zotero account can create a key, and no OAuth step is involved.
Related research connectors
Build a Zotero task
Write it in Python with AI steps, or describe it to your coding agent through the qbash MCP.