360 Secure SkillHub
360 安全技能中心

Zotero MCP

该技能通过MCP服务器实现与Zotero文献库的交互,核心功能涵盖搜索文献、获取条目详情、管理馆藏、提取PDF内容及搜索注释。适用于论文检索、馆藏整理、文献内容提取等场景。需先开启Zotero API权限并安装zotero-mcp包,以JSON-RPC格式发送请求获取结果。

qyqsdtc
qyqsdtc
热度 25.83
最近更新 2026-05-20 03:27:44
分类:知识依赖:代码执行 / 第三方 API / MCP 服务应用场景:API 集成 / 研究 / 笔记整理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add zotero-mcp
Metadata
name
zotero-mcp
description
Search and access Zotero reference library via MCP (Model Context Protocol) server. Use when working with Zotero literature databases, searching papers, getting item details, managing collections, or extracting PDF content and annotations. Requires Zotero running with API enabled (Edit, Preferences, Advanced, Network: Allow other applications to access Zotero).

Zotero MCP Skill

This skill provides tools to interact with your Zotero library via the MCP (Model Context Protocol) server.

Prerequisites

  1. Zotero must be running with API enabled:

    • Open Zotero → Edit → Preferences → Advanced → Network
    • Check "Allow other applications to access Zotero"
  2. Install zotero-mcp package:

    npm install -g zotero-mcp
    
  3. The MCP server connects to Zotero API at http://127.0.0.1:23119

Available Tools

Search Library

# Search papers by keyword
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search","arguments":{"q":"deep learning"}}' | node $(which zotero-mcp-server)

Get Item Details

# Get full details of an item by key
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_item_by_key","arguments":{"key":"ITEM_KEY"}}' | node $(which zotero-mcp-server)

List Collections

echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_collections","arguments":{}}}' | node $(which zotero-mcp-server)

Get Collection Items

echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_collection_items","arguments":{"collectionKey":"COLLECTION_KEY"}}}' | node $(which zotero-mcp-server)

Extract PDF Content

echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_pdf_content","arguments":{"itemKey":"ITEM_KEY"}}}' | node $(which zotero-mcp-server)

Search Annotations

echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_annotations","arguments":{"q":"keyword"}}}' | node $(which zotero-mcp-server)

Direct API Access

You can also access Zotero API directly without MCP:

# Get user ID
curl http://127.0.0.1:23119/api/users/0/items

# Get all collections
curl http://127.0.0.1:23119/api/users/7120115/collections

# Search items
curl "http://127.0.0.1:23119/api/users/7120115/items?q=keyword"

Troubleshooting

  • Port 23119 not responding: Check Zotero preferences → Advanced → Network
  • No items found: Try different search keywords or check collection key
  • MCP errors: Restart Zotero and try again