Mendeley MCP Serverのロゴ

Mendeley MCP Server

コミュニティ
pallaprolus

MCP server for Mendeley reference manager - search, retrieve, and manage your academic library from Claude and other MCP clients

公開者pallaprolus
リポジトリmendeley-mcp
言語Python
フォーク
15
スター
39
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Mendeley MCP Serverは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには39件のスターと15件のフォークがあります。

Mendeley MCP Server

An MCP (Model Context Protocol) server that connects your Mendeley reference library to LLM applications like Claude Desktop, Cursor, and other MCP-compatible clients.

CI License: MIT Python 3.10+ PyPI version PyPI Downloads Docker

Features

  • Search your library - Find papers by title, author, abstract, or notes
  • Manage folders - Browse, create, rename, delete, and nest collections
  • Get full metadata - Retrieve complete document details including abstracts
  • Search global catalog - Access Mendeley's 100M+ paper database
  • DOI lookup - Find papers by their DOI
  • Manage documents - Add, update, delete, and organize entries across folders
  • Read your annotations - Surface the highlights and notes you made on PDFs
  • Export BibTeX - Generate citation entries for a document or a whole folder
  • Download attached files - Retrieve document files when Mendeley exposes them

Prerequisites

  1. Mendeley Account - Sign up at mendeley.com (uses Elsevier authentication)
  2. Mendeley API App - Register at dev.mendeley.com/myapps.html
    • Sign in with your Elsevier credentials
    • Click "Register a new app"
    • Set redirect URL to http://localhost:8585/callback
    • Select "Authorization code" flow (not Legacy)
    • Note your Client ID and Client Secret

Installation

Using pip

bash
pip install mendeley-mcp

Using uv (recommended)

bash
uv tool install mendeley-mcp

Intel Macs. The cryptography library, pulled in by the MCP SDK, stopped publishing macOS x86_64 wheels at version 49. On Intel Macs this package pins cryptography below 49 so installation works without a Rust toolchain. That pinned version no longer receives upstream security fixes; Apple Silicon, Linux, and Windows are unaffected and get the latest release.

Using Docker

bash
docker run -it \
  -e MENDELEY_CLIENT_ID="your-client-id" \
  -e MENDELEY_CLIENT_SECRET="your-client-secret" \
  -e MENDELEY_REFRESH_TOKEN="your-refresh-token" \
  ghcr.io/pallaprolus/mendeley-mcp

Or build locally:

bash
git clone https://github.com/pallaprolus/mendeley-mcp.git
cd mendeley-mcp
docker build -t mendeley-mcp .

From source

bash
git clone https://github.com/pallaprolus/mendeley-mcp.git
cd mendeley-mcp
pip install -e .

Quick Start

1. Authenticate with Mendeley

Run the authentication wizard:

bash
mendeley-auth login

This will:

  1. Prompt for your Client ID and Client Secret
  2. Open your browser to authorize the app
  3. Save your credentials securely in your system keyring

2. Add to Claude Desktop

Edit your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

json
{
  "mcpServers": {
    "mendeley": {
      "command": "mendeley-mcp"
    }
  }
}

If installed with uv:

json
{
  "mcpServers": {
    "mendeley": {
      "command": "uvx",
      "args": ["mendeley-mcp"]
    }
  }
}

3. Restart Claude Desktop

The Mendeley tools should now be available in Claude.

Available Tools

ToolDescription
mendeley_search_librarySearch documents in your library
mendeley_get_documentGet full details of a specific document
mendeley_list_documentsList documents, optionally filtered by folder
mendeley_list_foldersList all folders/collections
mendeley_search_catalogSearch Mendeley's global paper database
mendeley_get_by_doiLook up a paper by DOI
mendeley_add_documentAdd a new document to your library
mendeley_update_documentUpdate bibliographic fields, tags, or keywords on an existing document
mendeley_delete_documentPermanently delete a document from your library
mendeley_create_folderCreate a folder in your library, optionally under a parent folder or group
mendeley_rename_folderRename an existing folder
mendeley_delete_folderDelete an existing folder
mendeley_add_document_to_folderAdd an existing document to an existing folder
mendeley_remove_document_from_folderRemove a document from a folder without deleting it
mendeley_get_annotationsGet your PDF highlights and notes on a document
mendeley_export_bibtexExport a document or folder as BibTeX
mendeley_get_file_contentDownload the first attached file for a library or catalog document
mendeley_get_document_textExtract the full text of a document's attached PDF so the model can read the paper

Resources

Besides the tools above, the server exposes two MCP resources. Resources take no arguments; a client that supports them lists them alongside the server and lets you attach one to a conversation as context, the way you would attach a file.

ResourceContents
mendeley://library/recentThe 10 most recently modified documents, in the same format as mendeley_list_documents
mendeley://library/foldersEvery folder in the library with its id, name, and parent_id

Tool Reference

mendeley_search_library

Use this when the paper should already exist in the user's library.

  • Searches title, authors, abstract, and notes
  • Returns concise metadata, formatted citation text, and has_pdf
  • Best first step before falling back to the catalog

mendeley_get_document

Use this after you already know the library document_id.

  • Returns fuller metadata than the search tool
  • Includes identifiers, keywords, tags, timestamps, abstract, and PDF presence
  • Best for inspection, summarization, and follow-up actions on a known document

mendeley_list_documents

Use this to browse the library instead of searching by keyword.

  • Can scope results to a specific folder_id
  • Supports sorting by last_modified, created, or title
  • Useful for reviewing recent additions or the contents of one collection

mendeley_list_folders

Use this to understand the collection hierarchy before listing documents by folder.

  • Returns folder IDs and names
  • Includes parent_id to reconstruct nesting
  • Useful when an LLM needs to navigate a library structure safely

mendeley_search_catalog

Use this when the reference is not in the user's library or when you want broader discovery.

  • Searches Mendeley's global catalog
  • Returns catalog_id, summary metadata, and truncated abstract text
  • Good fallback when mendeley_search_library does not find a match

mendeley_get_by_doi

Use this when a DOI is known and you want a higher-confidence lookup than free-text search.

  • Resolves the DOI in the Mendeley catalog
  • Returns catalog_id plus richer catalog metadata
  • Useful before mendeley_add_document or mendeley_get_file_content

mendeley_add_document

Use this to create a library entry from metadata you already have.

  • Creates a new Mendeley library record
  • Accepts title, authors, year, source, abstract, and identifiers
  • Does not upload a PDF by itself

mendeley_update_document

Use this to fix or enrich an existing library entry.

  • Updates only the fields you supply (title, type, authors, year, source, abstract, identifiers, tags, keywords)
  • A supplied tags or keywords list replaces the existing list; pass [] to clear it. To add a tag, read the current tags with mendeley_get_document and pass the combined list. Mendeley stores tags as a set and returns them sorted, not in the order sent
  • Returns the document's state after the update
  • Useful for correcting a wrong year, adding a missing abstract, fixing identifiers, or tagging papers during a literature review

mendeley_delete_document

Use this to permanently remove a document from the library.

  • Destructive and not reversible through the API
  • The tool description instructs the model to confirm with the user first

mendeley_remove_document_from_folder

Use this to take a document out of a folder while keeping it in the library.

  • Complements mendeley_add_document_to_folder — together they let you move documents between folders
  • Does not delete the document itself

mendeley_get_annotations

Use this to see what the user highlighted or noted in a paper's PDF.

  • Returns the user's own annotations: highlights and sticky notes
  • Includes note text, highlight color, and the page numbers involved
  • The most direct signal of what the user found important in a paper

mendeley_export_bibtex

Use this when the user needs citations in a real reference format.

  • Provide document_id for one entry or folder_id for a whole collection
  • BibTeX is generated by Mendeley itself, not templated locally
  • Returns raw text ready to paste into a .bib file

mendeley_get_file_content

Use this to try downloading the first file Mendeley exposes for a library document or catalog hit.

  • Accepts either a library document_id or a catalog_id
  • Returns structured metadata and an embedded PDF resource when available
  • If no file exists, returns a clear no-file result instead of failing silently
  • Catalog results often have no downloadable attachment for copyright or licensing reasons
  • Files larger than 10 MB are reported but not embedded, to avoid flooding the client's context window (adjust with the MENDELEY_MCP_MAX_FILE_BYTES environment variable)
  • Note: most MCP clients (including Claude Code) do not decode the embedded PDF resource into readable content — they pass it to the model as raw base64. To have the model actually read a paper, use mendeley_get_document_text instead.

mendeley_get_document_text

Use this when the user wants the model to read, summarize, or answer questions about a paper's contents.

  • Accepts either a library document_id or a catalog_id
  • Downloads the attached PDF and extracts its text server-side, returning it as a readable text block and in the structured result's text field. Clients that expose only structured content receive the same text (see #11). Both representations use the same truncation limit; the response carries the text twice for compatibility.
  • The structured result includes a message on every path, so explanations for missing files, scanned PDFs, and errors remain visible to structured-only clients.
  • Born-digital PDFs only; scanned or image-only PDFs have no text layer and are reported as such (they would need OCR)
  • Output is capped at 200,000 characters, with truncation flagged in the result (adjust with the MENDELEY_MCP_MAX_TEXT_CHARS environment variable)

Example Usage

Once configured, you can ask Claude things like:

  • "Search my Mendeley library for papers about transformer architectures"
  • "What papers do I have in my 'Machine Learning' folder?"
  • "Find the paper with DOI 10.1038/nature14539 and summarize it"
  • "Search the Mendeley catalog for recent papers on protein folding"
  • "Add this paper to my library: [title, authors, etc.]"
  • "Create a folder called 'Systematic Review 2026' in my Mendeley library"
  • "Create a subfolder called 'Screening' under folder ID folder-123"
  • "Create a folder called 'Weekly Reading' in group group-456"
  • "Rename folder folder-123 to 'Included Studies'"
  • "Delete folder folder-999 from my Mendeley library"
  • "Add document doc-789 to folder folder-123"
  • "Move document doc-789 from 'Screening' to 'Included Studies'"
  • "Fix the year on doc-456 — it should be 2024, not 2023"
  • "What did I highlight in the attention paper?"
  • "Export my 'Lit Review' folder as BibTeX"
  • "Download the PDF attached to the paper about protein folding"

For direct tool calls in an MCP client or inspector, the folder-management tools accept inputs like:

Create a root folder:

json
{
  "name": "Systematic Review 2026"
}

Create a subfolder:

json
{
  "name": "Screening",
  "parent_id": "folder-123"
}

Rename a folder:

json
{
  "folder_id": "folder-123",
  "name": "Included Studies"
}

Delete a folder:

json
{
  "folder_id": "folder-999"
}

Add a document to a folder:

json
{
  "folder_id": "folder-123",
  "document_id": "doc-789"
}

Folder Management Validation

  • mendeley_create_folder requires a non-empty name. You can optionally provide parent_id for nested creation or group_id for a group-scoped folder.
  • mendeley_rename_folder requires non-empty folder_id and name.
  • mendeley_delete_folder requires a non-empty folder_id.
  • mendeley_add_document_to_folder requires non-empty folder_id and document_id.
  • Required string inputs are trimmed before the request is sent. Blank or whitespace-only required values return a JSON error response instead of attempting the write.
  • Optional parent_id and group_id values are trimmed when provided and then forwarded upstream without additional local business rules.
  • Rename and delete operations surface upstream missing-folder, access, or context errors as JSON error responses instead of false success payloads.

mendeley_get_file_content accepts either a library document ID or a catalog_id. Catalog entries often do not have downloadable files, so a no-file result is expected in many cases.

Configuration

Environment Variables

If you prefer not to use mendeley-auth login, you can configure credentials via environment variables:

bash
# Required
export MENDELEY_CLIENT_ID="your-client-id"
export MENDELEY_CLIENT_SECRET="your-client-secret"

# One of the following (refresh token recommended - access tokens expire quickly)
export MENDELEY_REFRESH_TOKEN="your-refresh-token"
# OR
export MENDELEY_ACCESS_TOKEN="your-access-token"

Optional tuning variables:

bash
# Max size of a file embedded by mendeley_get_file_content (default 10 MB)
export MENDELEY_MCP_MAX_FILE_BYTES="10485760"

# Max characters of extracted text returned by mendeley_get_document_text (default 200000)
export MENDELEY_MCP_MAX_TEXT_CHARS="200000"

Or in your MCP config:

json
{
  "mcpServers": {
    "mendeley": {
      "command": "mendeley-mcp",
      "env": {
        "MENDELEY_CLIENT_ID": "your-client-id",
        "MENDELEY_CLIENT_SECRET": "your-client-secret",
        "MENDELEY_REFRESH_TOKEN": "your-refresh-token"
      }
    }
  }
}

Auth Commands

bash
# Check authentication status
mendeley-auth status

# Show environment variables for manual config
mendeley-auth show-env

# Remove saved credentials
mendeley-auth logout

Refreshed credential storage

When a saved login's access token expires, the server refreshes it and writes the new tokens back to the same place the login was stored: the system keyring, or the credentials file, which is replaced atomically with private permissions. The next server start therefore begins with a valid token instead of a refresh round trip.

Credentials supplied through environment variables are never written anywhere; those deployments manage token durability themselves. If saving fails, the running session keeps its refreshed tokens and logs a warning without credential details, and the next start may need mendeley-auth login again.

Development

Setup

bash
git clone https://github.com/pallaprolus/mendeley-mcp.git
cd mendeley-mcp
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

Testing

bash
# Run tests
pytest

# Run with coverage
pytest --cov=mendeley_mcp

# Type checking
mypy src/mendeley_mcp

# Linting
ruff check src/

Testing with MCP Inspector

bash
# Install MCP inspector
npm install -g @modelcontextprotocol/inspector

# Run your server with inspector
npx @modelcontextprotocol/inspector mendeley-mcp

Architecture

┌─────────────────┐     ┌──────────────────┐     ┌───────────────────┐
│  Claude Desktop │────▶│  mendeley-mcp    │────▶│   Mendeley API    │
│  (MCP Client)   │◀────│  (MCP Server)    │◀────│ api.mendeley.com  │
└─────────────────┘     └──────────────────┘     └───────────────────┘
                               │
                               ▼
                        ┌──────────────────┐
                        │  Local Keyring   │
                        │  (credentials)   │
                        └──────────────────┘

Important: This server runs locally on your machine. Your credentials and data never pass through any third-party servers - all communication is directly between your computer and Mendeley's API.

Credential Storage: Your OAuth tokens and client secret are stored securely in your system's native keyring (macOS Keychain, Windows Credential Locker, or Linux Secret Service). Only the non-sensitive client ID is stored in ~/.config/mendeley-mcp/credentials.json.

Rate Limits

Mendeley API rate limits are per-user. If you hit rate limits:

  • The server implements automatic token refresh
  • Wait a few minutes and retry
  • For heavy usage, consider spreading requests over time

Troubleshooting

"No credentials found"

Run mendeley-auth login to authenticate.

"Token expired"

Your access token has expired. The server refreshes it automatically using your refresh token and saves the new token to your keyring or credentials file. If this fails, run mendeley-auth login again.

"401 Unauthorized"

Your app may have been deauthorized. Re-authenticate with mendeley-auth login.

Server not appearing in Claude

  1. Check the config file path is correct for your OS
  2. Ensure JSON is valid (no trailing commas)
  3. Restart Claude Desktop completely
  4. Check Claude's logs for errors

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests and linting
  5. Submit a pull request

License

MIT License - see LICENSE file.

Disclaimer

This project is not affiliated with, endorsed by, or sponsored by Mendeley or Elsevier. Mendeley is a trademark of Elsevier B.V.

Acknowledgments

Contributors

  • @roych98 — reported the MCP SDK 2.x install break, supplied the interim pin, and wrote the SDK v2 migration (#8)
  • @im-alexandre — folder management tools, adapted from #2
  • @Storkholm — reported and isolated the structured-content client behavior (#11)
  • @HasiVS — requested tags and keywords on document update (#12)

インストール

TypingMind
{
  "mcpServers": {
    "mendeley-mcp": {
      "command": "mendeley-mcp",
      "args": []
    }
  }
}

Mendeley MCP ServerのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Mendeley MCP Serverに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Mendeley MCP Serverをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Mendeley MCP ServerのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "mendeley-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてMendeley MCP ServerのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Mendeley MCP ServerのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Mendeley MCP Serverを使ってこのタスクを手伝ってもらえますか?
Mendeley MCP Server
はい、読みました。
Mendeley MCP Serverで調べた結果をお伝えします。

よくある質問

Mendeley MCP Server MCPサーバーは何に使いますか?

Mendeley MCP Serverは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでMendeley MCP Server MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでMendeley MCP Serverを利用できます。

TypingMindでMendeley MCP Server MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Mendeley MCP Serverを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Mendeley MCP Server MCPをTypingMindに接続するにはどうすればよいですか?

Mendeley MCP ServerはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでMendeley MCP Server MCPのどのようなツールを利用できますか?

Mendeley MCP ServerはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Mendeley MCP Server MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Mendeley MCP Serverで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇