zotero-mcp-claude-code / zotero-mcp-plugin
CLAUDE.md41 starsChanged 6 months agoMITView on GitHub
A Zotero plugin that provides MCP (Model Context Protocol) server functionality, enabling AI assistants to interact with Zotero's library data. A GitHub Actions workflow at /.github/workflows/release.yml automates releases. Pushing a version tag triggers it.
- Installs packages
- Commits and pushes
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this CLAUDE.md into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 49
Commit, tag, and push:
- Distinctive: line 82
Use ztoolkit.log for logging
- Distinctive: line 83
Follow existing patterns in codebase
- Distinctive: line 84
Use English for all comments and code documentation
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Zotero MCP Plugin
Project Overview
A Zotero plugin that provides MCP (Model Context Protocol) server functionality, enabling AI assistants to interact with Zotero's library data.
Tech Stack
- TypeScript
- Zotero Plugin API (Firefox/Gecko-based)
- zotero-plugin-scaffold for building
- SQLite for semantic search index
Compatibility
- Zotero versions: 7, 8, and 9 (manifest declares
strict_min_version: "6.999",strict_max_version: "9.*"inupdate.json) - Runtime: Firefox/Gecko runtime shipped by Zotero. Zotero 7/8 are Firefox 115-era; Zotero 9 uses a newer ESR-era runtime.
- Platforms: developed/tested on macOS; standard Streamable HTTP MCP so should run anywhere Zotero does, but other platforms not verified by maintainer
Key Directories
src/- TypeScript source codeaddon/- Plugin assets (manifest, locales, preferences UI).scaffold/build/- Build outputupdate.json- Zotero auto-update manifest
Build Commands
npm run build # Production build
npm run start # Development with hot reload
npm run lint:check # Check formatting and linting
npm run lint:fix # Fix formatting and linting issuesRelease Process
A GitHub Actions workflow at /.github/workflows/release.yml automates releases. Pushing a version tag triggers it.
Steps
- Bump version in four files:
package.json—"version": "X.Y.Z"src/modules/httpServer.ts—export const SERVER_INFO_VERSION = "X.Y.Z"(single source of truth; consumed bystreamableMCPServer.tsand/capabilitiesendpoint)update.json/update-beta.json— regenerate withnpm run prepare-release../README.md— update version badge toX.Y.Z
- Update lockfile:
npm install --package-lock-only - Verify build:
npm run build - Commit, tag, and push:
git add package.json package-lock.json src/modules/httpServer.ts update.json update-beta.json ../README.md git commit -m "chore: bump version to X.Y.Z" git tag vX.Y.Z git push origin main --tags - GitHub Actions builds the XPI and creates the release with
.scaffold/build/zotero-mcp-for-claude-code.xpiand.scaffold/build/update.jsonas assets. The build-generated update manifest includes the XPI hash and must match the uploaded XPI filename.
Version files summary
| File | Field | Purpose |
package.json | version | npm/build version, used by scaffold |
src/modules/httpServer.ts | SERVER_INFO_VERSION | Single source of truth for runtime version; reported in /capabilities, /initialize, /mcp/status |
update.json | updates[] entry | Local/check-in auto-update manifest generated by npm run prepare-release; release uploads use .scaffold/build/update.json |
../README.md | Version badge | Display version in repo README |
Important Patterns
Preferences
- Prefix:
extensions.zotero.zotero-mcp-plugin - Defined in
addon/content/preferences.xhtml - Accessed via
Zotero.Prefs.get/set
Localization
- English:
addon/locale/en-US/preferences.ftl - Chinese:
addon/locale/zh-CN/preferences.ftl
Code Style
- Use ztoolkit.log for logging
- Follow existing patterns in codebase
- Use English for all comments and code documentation
- Chinese locale files in
addon/locale/zh-CN/are for UI translations only - Chinese stop word lists in NLP code are functional data and should remain
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

