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.
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
Browse folders - Navigate your collection structure
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
Add documents - Create new entries in your library
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
Using uv (recommended)
Using Docker
Or build locally:
From source
Quick Start
1. Authenticate with Mendeley
Run the authentication wizard:
This 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
If installed with uv:
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 |
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.]"
Configuration
Environment Variables
If you prefer not to use mendeley-auth login, you can configure credentials via environment variables:
Or in your MCP config:
Auth Commands
Development
Setup
Testing
Testing with MCP Inspector
Architecture
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