ZotLink

by TonybotNi

一个轻量级、生产环境就绪的 MCP 服务器,能够通过一条命令将开放的学术资源引入 Zotero。支持像 arXiv、CVF、bioRxiv、medRxiv 和 chemRxiv 这样的开放预印本源。可选的浏览器模式需要 Playwright 和 Chromium。可以通过环境变量或位于 ~/.zotlink/config.json 的配置文件自定义本地 Zotero 数据库和存储路径。

Education & sciencestdioCommunity

Repository-wide counts · Cached 2025-11-01

Overview

The ZotLink MCP server is a publicly available project. Review the upstream repository for installation instructions, supported tools, compatibility, permissions, and current maintenance status.

Configuration

Configuration, transport, authentication, and runtime requirements vary by project. Open the repository before connecting and use the smallest set of credentials and permissions required.

Open the ZotLink repository to read the latest documentation.

KEEP EXPLORING

Compare source, connection, and authentication details before choosing an implementation.

View the complete category

Deep Research

u14app

Community

Deep Research 使用强大的 AI 模型快速生成深入的研究报告。支持 SSE API 和 MCP 服务器。需要在 .env 文件中配置环境变量以设置服务器端的 API 密钥和相关参数。

TorchLeet

Exorust

Community

TorchLeet provides 68 PyTorch problems from real ML/AI interviews at companies like Google, Meta, and Anthropic. It includes an AI Tutor MCP server that gives AI assistants access to problems, hints, prep plans, and learning paths with a no-spoilers teaching style.

Zotero MCP

54yyyu

Community

用于 Zotero 的模型上下文协议(MCP)服务器,将您的 Zotero 研究库与 Claude 及其他 AI 助手连接。支持本地和 Web API 访问、PDF 注释提取以及高级搜索功能。完整本地 API 功能需要 Python 3.10 及 Zotero 7 以上版本。配置可以通过环境变量或 JSON 配置文件进行设置。

mcp-brasil

mcp-brasil

Community

MCP Server for 70 Brazilian public data sources covering economy, legislation, transparency, judiciary, elections, environment, health, education, public security, and more. Some APIs require optional API keys configured via environment variables (e.g., TRANSPARENCIA_API_KEY, DATAJUD_API_KEY, META_ACCESS_TOKEN).

FROM THE SOURCE

Repository README

Build-time snapshot · Retrieved 2026-10-05

View original
ZotLink Logo

MCP Server for Zotero Connector

Python 3.10+ MCP License: MIT Platforms

🌍 Language / 语言选择: 🇺🇸 English | 🇨🇳 中文

A lightweight, production-ready MCP server that brings open scholarly sources into Zotero with one command.

❤️ Like ZotLink? Give it a star 🌟 to support the development!

✨ Core Features

  • 🌐 Open Preprint Coverage: arXiv, CVF (OpenAccess), bioRxiv, medRxiv, chemRxiv
  • 🧠 Rich Metadata Extraction: title, authors, abstract, DOI, subjects, comments
  • 📄 Smart PDF Attachment: auto-attach when available; validated link fallback
  • 📚 One-Click Collection Save: list + save (updateSession, treeViewID: C{id})
  • 🧭 Adaptive Browser Strategy: Playwright for tough sites; HTTP for the rest
  • 💻 Client Compatibility: Works with Claude Desktop and Cherry Studio
  • 🧩 Deep MCP Interoperability: Integrates with literature-related MCPs such as arxiv-mcp-server and Zotero MCP
  • 📝 Unified Logging: ~/.zotlink/zotlink.log

🎥 Demo Video

Watch the video

Click the image above to watch a 1-minute demo video on Bilibili.


🚀 Quick Start

1️⃣ Install

pip install zotlink
python -m playwright install chromium

Requires Python 3.10+. Includes full browser support for all preprint servers by default!

2️⃣ One-Command Configuration ✨

Use zotlink init to automatically generate MCP configuration:

# Auto-detect Zotero path
zotlink init

# Or specify path manually
zotlink init /Users/yourname/Zotero

The command outputs ready-to-use configuration JSON, for example:

{
  "mcpServers": {
    "zotlink": {
      "command": "/opt/homebrew/.../zotlink",
      "args": [],
      "env": {
        "ZOTLINK_ZOTERO_ROOT": "/Users/yourname/Zotero"
      }
    }
  }
}

3️⃣ Add to Claude Configuration

Copy the generated configuration to your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/claude/claude_desktop_config.json
  • Windows: ~/AppData/Roaming/Claude/claude_desktop_config.json

Restart Claude Desktop and you're ready to go!


🛠️ Development Installation

git clone https://github.com/your-org/ZotLink.git
cd ZotLink
pip install -e .
python -m playwright install chromium

MCP Configuration Details

If you need manual configuration (without using zotlink init), see examples below:

📝 Manual Configuration Examples (click to expand)

Recommended configuration (simple - just specify Zotero directory):

{
  "mcpServers": {
    "zotlink": {
      "command": "/path/to/zotlink",
      "args": [],
      "env": {
        "ZOTLINK_ZOTERO_ROOT": "/Users/yourname/Zotero"
      }
    }
  }
}

Advanced configuration (specify paths separately):

{
  "mcpServers": {
    "zotlink": {
      "command": "/path/to/zotlink",
      "args": [],
      "env": {
        "ZOTLINK_ZOTERO_DB": "/Users/yourname/Zotero/zotero.sqlite",
        "ZOTLINK_ZOTERO_DIR": "/Users/yourname/Zotero/storage"
      }
    }
  }
}

Minimal config (auto-detect Zotero paths):

{
  "mcpServers": {
    "zotlink": { "command": "zotlink", "args": [] }
  }
}

Note: Using env variables follows MCP standard and works with all MCP clients (Claude Desktop, Cherry Studio, etc.).

🧰 Available Tools

  • check_zotero_status: Check if Zotero is running and reachable
  • get_zotero_collections: List collections (tree view) from the local DB
  • save_paper_to_zotero: Save a paper by URL (arXiv/CVF/rxiv), attach PDF/metadata
  • extract_arxiv_metadata: Extract full arXiv metadata (title/authors/subjects/DOI/comment)
  • Cookie helpers (stubs prepared) for auth-required sources

📁 Logging

Logs are written to ~/.zotlink/zotlink.log.

🌐 Browser Mode

Browser-driven extraction is included by default! All preprint servers (bioRxiv, medRxiv, chemRxiv) work automatically.

The server switches to browser strategy automatically when needed (falls back to HTTP mode on Windows).

Linux may require additional system dependencies:

sudo apt-get install -y libnss3 libatk1.0-0 libatk-bridge2.0-0 libdrm2 libxkbcommon0 libgbm1 libasound2

Advanced: Custom Zotero Paths

🔧 Environment Variable Configuration (click to expand)

Recommended - Single directory:

# macOS/Linux
export ZOTLINK_ZOTERO_ROOT=/Users/yourname/Zotero

# Windows PowerShell
$env:ZOTLINK_ZOTERO_ROOT='C:\Users\YourName\Zotero'

Advanced - Separate paths:

# macOS/Linux
export ZOTLINK_ZOTERO_DB=/Users/yourname/Zotero/zotero.sqlite
export ZOTLINK_ZOTERO_DIR=/Users/yourname/Zotero/storage

# Windows PowerShell
$env:ZOTLINK_ZOTERO_DB='C:\Users\YourName\Zotero\zotero.sqlite'
$env:ZOTLINK_ZOTERO_DIR='C:\Users\YourName\Zotero\storage'

Local config file ~/.zotlink/config.json:

{
  "zotero": {
    "database_path": "/Users/yourname/Zotero/zotero.sqlite",
    "storage_dir": "/Users/yourname/Zotero/storage"
  }
}

Configuration precedence: ENV vars > MCP env config > local config file > auto-detection

🧩 Supported Sources (Open)

  • arXiv (preprint)
  • CVF (OpenAccess) (CVPR/ICCV/WACV)
  • bioRxiv / medRxiv / chemRxiv (preprint servers)

Auth-required sources (e.g., Nature) are planned via bookmark-based cookie sync.

🧰 Troubleshooting

  • Zotero not detected: ensure Zotero Desktop is running (port 23119)
  • No PDF attached: some pages only expose links; the server falls back to link attachments
  • Browser mode errors: verify Playwright is installed and Chromium is available
    • Install error: ensure Python 3.10+ is installed

🧪 Development

pip install -e .
python -m playwright install chromium
zotlink  # or: python run_server.py

See docs/DEVELOPMENT.md for code structure, adding new extractors, and release tips.

🗺️ Roadmap (To‑Do)

  • Sources

    • arXiv
    • CVF (OpenAccess)
    • bioRxiv
    • medRxiv
    • chemRxiv
    • Nature (cookies)
    • Science (cookies)
    • IEEE Xplore (cookies)
    • Springer (cookies)
    • ACM Digital Library (cookies)
    • OpenReview
    • PLOS / PMC / Frontiers / MDPI
  • Stability & Quality

    • Configurable Zotero DB path (ENV + ~/.zotlink/config.json)
    • HTTP fallback when browser fails (Windows compatibility)
    • PDF download retry mechanism (3 retries with exponential backoff)
    • Windows playwright optimization (current limitation: Python asyncio ProactorEventLoop + MCP event loop nesting)
    • Post-save title correction when placeholder detected
    • Enhanced PDF heuristics and alternative URL strategies
    • Crossref DOI enrichment as fallback
    • Unified error taxonomy with auto-retry/backoff
  • Integration & DX

    • Cookie sync bookmark flow for Nature-family and other publishers
    • Example templates for Claude Desktop / Cherry Studio
    • Extended MCP interoperability docs and samples
    • CI and tests (unit/integration) for extractors
    • Packaged releases (optional)

📄 License

MIT (see SPDX identifier in packaging metadata)

🌟 GitHub Star History

Star History Chart

Made with ❤️ for Zotero community