Detailed instructions to get Zotero MCP up and running.
Before installing Zotero MCP, make sure you have the following prerequisites:
To use the local Zotero API:
If you plan to use the Zotero Web API, you'll need:
Smithery is a package manager for AI assistants that makes installing tools like Zotero MCP quick and easy:
npx
command).npx -y @smithery/cli install @54yyyu/zotero-mcp --client claude
This command will:
Follow these steps to install Zotero MCP using pip:
pip install git+https://github.com/54yyyu/zotero-mcp.git
Or install a specific version if needed:
pip install git+https://github.com/54yyyu/zotero-mcp.git@v0.1.0
After installation, run the auto-configuration tool to set up Zotero MCP with Claude Desktop:
zotero-mcp setup
The setup tool will:
To configure for local API use (default):
zotero-mcp setup
This will add the following to your Claude Desktop config:
{
"mcpServers": {
"zotero": {
"command": "zotero-mcp",
"env": {
"ZOTERO_LOCAL": "true"
}
}
}
}
To configure for Web API use:
zotero-mcp setup --no-local --api-key YOUR_API_KEY --library-id YOUR_LIBRARY_ID
Replace YOUR_API_KEY
and YOUR_LIBRARY_ID
with your actual Zotero API key and library ID.
You can also edit your Claude Desktop configuration file manually. The file is located at:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
Add the Zotero MCP configuration to the mcpServers
section of the file.
Instead of using the configuration file, you can also set environment variables:
# For local API
export ZOTERO_LOCAL=true
# For web API
export ZOTERO_API_KEY=your_api_key
export ZOTERO_LIBRARY_ID=your_library_id
export ZOTERO_LIBRARY_TYPE=user # or 'group' for group libraries
To verify that Zotero MCP is installed and configured correctly:
zotero-mcp version
You should see output showing the installed version of Zotero MCP.
/tools zotero
to activate the Zotero tool.If everything is set up correctly, Claude should be able to access your Zotero library and display results.