mendeley-mcp
This server connects your Mendeley reference library to LLM applications like Claude Desktop, enabling you to manage and search academic papers through natural language commands.
Personal Library Management:
Search your library by title, author, abstract, or notes
Retrieve complete metadata for specific documents using their Mendeley ID
List and browse documents with folder filtering, pagination, and sorting options
View all your folders and collections
Global Catalog Access:
Search Mendeley's catalog of 100M+ papers
Look up papers directly by DOI identifier
Library Modification:
Add new documents with comprehensive metadata including title, authors, year, abstract, identifiers (DOI, PMID, ISBN), and document type
Security & Integration:
Uses OAuth2 with secure credential storage in your system's native keyring
All communication happens locally between your machine and Mendeley's API
Compatible with MCP clients like Claude Desktop and Cursor
Enables searching and managing documents in your Mendeley reference library, browsing folders, retrieving metadata and abstracts, searching Mendeley's global catalog of 100M+ papers, looking up papers by DOI, and adding new documents to your library.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mendeley-mcpsearch my library for papers about transformer architectures"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
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
Related MCP server: Zotero MCP Connector
Prerequisites
Mendeley Account - Sign up at mendeley.com (uses Elsevier authentication)
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/callbackSelect "Authorization code" flow (not Legacy)
Note your Client ID and Client Secret
Installation
Using pip
pip install mendeley-mcpUsing uv (recommended)
uv tool install mendeley-mcpUsing Docker
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-mcpOr build locally:
git clone https://github.com/pallaprolus/mendeley-mcp.git
cd mendeley-mcp
docker build -t mendeley-mcp .From source
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:
mendeley-auth loginThis will:
Prompt for your Client ID and Client Secret
Open your browser to authorize the app
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
{
"mcpServers": {
"mendeley": {
"command": "mendeley-mcp"
}
}
}If installed with uv:
{
"mcpServers": {
"mendeley": {
"command": "uvx",
"args": ["mendeley-mcp"]
}
}
}3. Restart Claude Desktop
The Mendeley tools should now be available in Claude.
Available Tools
Tool | Description |
| Search documents in your library |
| Get full details of a specific document |
| List documents, optionally filtered by folder |
| List all folders/collections |
| Search Mendeley's global paper database |
| Look up a paper by DOI |
| Add a new document to your library |
| Update bibliographic fields on an existing document |
| Permanently delete a document from your library |
| Create a folder in your library, optionally under a parent folder or group |
| Rename an existing folder |
| Delete an existing folder |
| Add an existing document to an existing folder |
| Remove a document from a folder without deleting it |
| Get your PDF highlights and notes on a document |
| Export a document or folder as BibTeX |
| Download the first attached file for a library or catalog document |
| Extract the full text of a document's attached PDF so the model can read the paper |
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_pdfBest 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_idSupports sorting by
last_modified,created, ortitleUseful 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_idto reconstruct nestingUseful 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 textGood fallback when
mendeley_search_librarydoes 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_idplus richer catalog metadataUseful before
mendeley_add_documentormendeley_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)
Returns the document's state after the update
Useful for correcting a wrong year, adding a missing abstract, or fixing identifiers
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 foldersDoes 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_idfor one entry orfolder_idfor a whole collectionBibTeX is generated by Mendeley itself, not templated locally
Returns raw text ready to paste into a
.bibfile
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_idor acatalog_idReturns 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_BYTESenvironment 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_textinstead.
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_idor acatalog_idDownloads the attached PDF and extracts its text server-side, returning it as a text block the model can read directly — unlike
mendeley_get_file_content, this works regardless of whether the client supports embedded PDF resourcesBorn-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_CHARSenvironment 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:
{
"name": "Systematic Review 2026"
}Create a subfolder:
{
"name": "Screening",
"parent_id": "folder-123"
}Rename a folder:
{
"folder_id": "folder-123",
"name": "Included Studies"
}Delete a folder:
{
"folder_id": "folder-999"
}Add a document to a folder:
{
"folder_id": "folder-123",
"document_id": "doc-789"
}Folder Management Validation
mendeley_create_folderrequires a non-emptyname. You can optionally provideparent_idfor nested creation orgroup_idfor a group-scoped folder.mendeley_rename_folderrequires non-emptyfolder_idandname.mendeley_delete_folderrequires a non-emptyfolder_id.mendeley_add_document_to_folderrequires non-emptyfolder_idanddocument_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_idandgroup_idvalues 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:
# 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:
# 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:
{
"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
# Check authentication status
mendeley-auth status
# Show environment variables for manual config
mendeley-auth show-env
# Remove saved credentials
mendeley-auth logoutDevelopment
Setup
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
# Run tests
pytest
# Run with coverage
pytest --cov=mendeley_mcp
# Type checking
mypy src/mendeley_mcp
# Linting
ruff check src/Testing with MCP Inspector
# Install MCP inspector
npm install -g @modelcontextprotocol/inspector
# Run your server with inspector
npx @modelcontextprotocol/inspector mendeley-mcpArchitecture
┌─────────────────┐ ┌──────────────────┐ ┌───────────────────┐
│ 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 will attempt to refresh it automatically using your refresh token. 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
Check the config file path is correct for your OS
Ensure JSON is valid (no trailing commas)
Restart Claude Desktop completely
Check Claude's logs for errors
Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch
Make your changes
Run tests and linting
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
Model Context Protocol by Anthropic
FastMCP Python framework
Mendeley API documentation
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pallaprolus/mendeley-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server