Skip to main content
Glama

MCP ゾテロ

NPMバージョン鍛冶屋のバッジ

Claude が Zotero ライブラリと対話できるようにする、Zotero 統合用のモデル コンテキスト プロトコル サーバー。

設定

  1. Zotero の認証情報を取得します:

    # First, create an API key at https://www.zotero.org/settings/keys
    # Then use it to get your user ID:
    curl -H "Zotero-API-Key: YOUR_API_KEY" https://api.zotero.org/keys/current

    応答は次のようになります。

    {
      "userID": 123456,
      "username": "your_username",
      "access": {
        "user": {
          "library": true,
          "files": true,
          "notes": true,
          "write": true
        }
      }
    }

    必要なのはuserID値です。

  2. 環境変数を設定します。

    export ZOTERO_API_KEY="your-api-key"
    export ZOTERO_USER_ID="user-id-from-curl"
  3. 資格情報を確認してください:

    # Test that your credentials work:
    curl -H "Zotero-API-Key: $ZOTERO_API_KEY" \
         "https://api.zotero.org/users/$ZOTERO_USER_ID/collections"

    応答にコレクション リストが表示されます。

  4. インストールして実行:

    # Install globally (recommended)
    npm install -g mcp-zotero
    mcp-zotero
    
    # Or run directly with npx
    npx mcp-zotero

Related MCP server: Zotero MCP

Claude Desktopとの統合

このサーバーを Claude Desktop で使用するには、Claude Desktop の構成に以下を追加します。

{
  "mcpServers": {
    "zotero": {
      "command": "mcp-zotero",
      "env": {
        "ZOTERO_API_KEY": YOUR_API_KEY,
        "ZOTERO_USER_ID": YOUR_USER_ID
      }
    }
  }
}

利用可能なツール

  • get_collections : ライブラリ内のすべてのコレクションを一覧表示する

  • get_collection_items : 特定のコレクション内のアイテムを取得する

  • get_item_details : 論文の詳細情報を取得する

  • search_library : ライブラリ全体を検索

  • get_recent : 最近追加された論文を取得する

トラブルシューティング

問題が発生した場合:

  1. 環境変数が設定されていることを確認します。

    echo $ZOTERO_API_KEY
    echo $ZOTERO_USER_ID
  2. インストールを確認します:

    npm list -g mcp-zotero
  3. 再インストールしてみてください:

    npm uninstall -g mcp-zotero
    npm install -g mcp-zotero

Available Tools

5 tools
get_collection_itemsC

Get all items in a specific collection

Inputs: collectionKey (required).

get_collectionsB

List all collections in your Zotero library

Inputs: no named parameters.

get_item_detailsC

Get detailed information about a specific paper

Inputs: itemKey (required).

get_recentC

Get recently added papers to your library

Inputs: limit.

search_libraryC

Search your entire Zotero library

Inputs: query (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: get_collection_items retrieves items within a collection, get_collections lists collections, get_item_details provides details on a specific paper, get_recent shows recent additions, and search_library searches the entire library. The descriptions reinforce these distinctions, making misselection unlikely.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with snake_case (e.g., get_collection_items, get_collections, get_item_details, get_recent, search_library). The naming is predictable and readable throughout, with no deviations in style or convention.

    Tool Count4/5

    With 5 tools, the count is well-scoped for a Zotero library management server, covering core operations like listing, searching, and retrieving details. It is slightly lean but reasonable, as it includes essential functions without being overwhelming or too sparse.

    Completeness3/5

    The tool set covers read operations well (get, list, search) but lacks create, update, or delete capabilities for collections or items, which are typical in library management. This creates notable gaps that agents might need to work around, though the existing tools handle basic retrieval tasks adequately.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers