MCP Connector

Access medRxiv Medical Research via AI

Search medRxiv health sciences preprints by keyword or advanced filters, and fetch paper metadata by DOI, from an AI assistant.

Works with medrxiv

Maintainer of this project? Claim this page to edit the listing.


91
Spark score
out of 100
Updated Mar 2025
Version 1.0.0
Models
universal

Add to Favorites

Why it matters

Bridge AI assistants with the medRxiv preprint repository to enable seamless search and access to medical scientific articles. Facilitate research and analysis by providing efficient data retrieval and metadata access.

Outcomes

What it gets done

01

Search medRxiv articles by keywords or advanced parameters.

02

Retrieve detailed metadata for specific articles using their DOI.

03

Access and download article content for local storage and faster retrieval.

04

Utilize specialized prompts for in-depth article analysis.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/vb-medrxiv | bash

Capabilities

Tools your agent gets

search_medrxiv_key_words

Search for articles in medRxiv by keywords with optional result limit

search_medrxiv_advanced

Advanced search for articles in medRxiv with multiple search parameters including authors

get_medrxiv_metadata

Retrieve medRxiv article metadata by DOI

Overview

medRxiv MCP Server

medRxiv MCP Server lets an AI assistant search health sciences preprints by keyword or advanced filters and fetch paper metadata by DOI. Full paper download and reading are planned but not yet implemented. Use it for searching medRxiv preprints and retrieving metadata by DOI. Not yet applicable for downloading or reading full paper content - those tools are still on the roadmap.

What it does

medRxiv MCP Server bridges AI assistants to medRxiv's health sciences preprint repository through the Model Context Protocol, letting a model search for preprints and retrieve their metadata programmatically.

When to use - and when NOT to

Use it when you want an AI assistant to search medRxiv for recent preprints on a health sciences topic (by keyword or advanced filters like author, title, section, or date range) or fetch detailed metadata for a specific paper by its DOI. Do not expect it to download or read full paper content yet - download_paper, read_paper, and list_papers are listed as planned (TODO) capabilities, not currently implemented; today's tools cover search and metadata only. This is a research tool - respect medRxiv's terms of service and use it responsibly.

Capabilities

  • search_medrxiv_key_words: search for articles by a keyword string (key_words), with an optional num_results (default 10).
  • search_medrxiv_advanced: advanced search with optional term, title, author1, author2, abstract_title, text_abstract_title, section, start_date/end_date (YYYY-MM-DD), and num_results (default 10).
  • get_medrxiv_metadata: fetch full metadata (title, authors, publication date, abstract, format links) for a paper by its doi.

Example: search_medrxiv_advanced({"term": "COVID-19", "author1": "MacLachlan", "start_date": "2020-01-01", "end_date": "2023-12-31", "num_results": 3}).

Also included (as a TODO alongside download/read/list) is a deep-paper-analysis research prompt that, given just a paper_id, walks through a systematic paper-analysis workflow covering an executive summary, research context, methodology analysis, results evaluation, practical and theoretical implications, future research directions, and broader impacts.

How to install

Install automatically for Claude Desktop, Cursor, Windsurf, or Cline via Smithery:

npx -y @smithery/cli@latest install @JackKuo666/medrxiv-mcp-server --client claude --config "{}"

Or install manually with uv:

uv tool install medRxiv-mcp-server

Register with Claude Desktop:

{
  "mcpServers": {
    "medrxiv": {
      "command": "python",
      "args": ["-m", "medrxiv-mcp-server"]
    }
  }
}

Requires Python 3.10+ with FastMCP, requests, and beautifulsoup4 (pip install FastMCP requests beautifulsoup4) if running from source. On Windows, point command at the full path to your Python executable instead of python; Cline needs a bash -c command that activates the virtual environment before launching the server script. After restarting Claude Desktop, ask it to search medRxiv or look up a paper by DOI directly in conversation.

The server is built on FastMCP (medrxiv_server.py for the MCP implementation, medrxiv_web_search.py for the underlying web-scraping search logic) and is explicitly inspired by and built on the earlier arxiv-mcp-server project.

Who it's for

Health sciences researchers and clinicians who want an AI assistant to search recent medRxiv preprints and pull paper metadata directly into a conversation instead of manually browsing the medRxiv website.

Source README

medRxiv MCP Server

smithery badge

๐Ÿ” Enable AI assistants to search and access medRxiv papers through a simple MCP interface.

The medRxiv MCP Server provides a bridge between AI assistants and medRxiv's preprint repository through the Model Context Protocol (MCP). It allows AI models to search for health sciences preprints and access their content in a programmatic way.

๐Ÿค Contribute โ€ข ๐Ÿ“ Report Bug

โœจ Core Features

  • ๐Ÿ”Ž Paper Search: Query medRxiv papers with custom search strings or advanced search parameters โœ…
  • ๐Ÿš€ Efficient Retrieval: Fast access to paper metadata โœ…
  • ๐Ÿ“Š Metadata Access: Retrieve detailed metadata for specific papers using DOI โœ…
  • ๐Ÿ“Š Research Support: Facilitate health sciences research and analysis โœ…
  • ๐Ÿ“„ Paper Access: Download and read paper content ๐Ÿ“
  • ๐Ÿ“‹ Paper Listing: View all downloaded papers ๐Ÿ“
  • ๐Ÿ—ƒ๏ธ Local Storage: Papers are saved locally for faster access ๐Ÿ“
  • ๐Ÿ“ Research Prompts: A set of specialized prompts for paper analysis ๐Ÿ“

๐Ÿš€ Quick Start

Installing via Smithery

To install medRxiv Server for Claude Desktop automatically via Smithery:

claude
npx -y @smithery/cli@latest install @JackKuo666/medrxiv-mcp-server --client claude --config "{}"
Cursor

Paste the following into Settings โ†’ Cursor Settings โ†’ MCP โ†’ Add new server:

  • Mac/Linux
npx -y @smithery/cli@latest run @JackKuo666/medrxiv-mcp-server --client cursor --config "{}" 
Windsurf
npx -y @smithery/cli@latest install @JackKuo666/medrxiv-mcp-server --client windsurf --config "{}"

CLine

npx -y @smithery/cli@latest install @JackKuo666/medrxiv-mcp-server --client cline --config "{}"

Installing Manually

Install using uv:

uv tool install medRxiv-mcp-server

For development:

# Clone and set up development environment
git clone https://github.com/JackKuo666/medRxiv-MCP-Server.git
cd medRxiv-MCP-Server

# Create and activate virtual environment
uv venv
source .venv/bin/activate
uv pip install -r requirements.txt

๐Ÿ“Š Usage

Start the MCP server:

python medrxiv_server.py

Once the server is running, you can use the provided MCP tools in your AI assistant or application. Here are some examples of how to use the tools:

Example 1: Search for papers using keywords

result = await mcp.use_tool("search_medrxiv_key_words", {
    "key_words": "COVID-19 vaccine efficacy",
    "num_results": 5
})
print(result)

Example 2: Perform an advanced search

result = await mcp.use_tool("search_medrxiv_advanced", {
    "term": "COVID-19",
    "author1": "MacLachlan",
    "start_date": "2020-01-01",
    "end_date": "2023-12-31",
    "num_results": 3
})
print(result)

Example 3: Get metadata for a specific paper

result = await mcp.use_tool("get_medrxiv_metadata", {
    "doi": "10.1101/2025.03.09.25323517"
})
print(result)

These examples demonstrate how to use the three main tools provided by the medRxiv MCP Server. Adjust the parameters as needed for your specific use case.

๐Ÿ›  MCP Tools

The medRxiv MCP Server provides the following tools:

search_medrxiv_key_words

Search for articles on medRxiv using key words.

Parameters:

  • key_words (str): Search query string
  • num_results (int, optional): Number of results to return (default: 10)

Returns: List of dictionaries containing article information

search_medrxiv_advanced

Perform an advanced search for articles on medRxiv.

Parameters:

  • term (str, optional): General search term
  • title (str, optional): Search in title
  • author1 (str, optional): First author
  • author2 (str, optional): Second author
  • abstract_title (str, optional): Search in abstract and title
  • text_abstract_title (str, optional): Search in full text, abstract, and title
  • section (str, optional): Section of medRxiv
  • start_date (str, optional): Start date for search range (format: YYYY-MM-DD)
  • end_date (str, optional): End date for search range (format: YYYY-MM-DD)
  • num_results (int, optional): Number of results to return (default: 10)

Returns: List of dictionaries containing article information

get_medrxiv_metadata

Fetch metadata for a medRxiv article using its DOI.

Parameters:

  • doi (str): DOI of the article

Returns: Dictionary containing article metadata

Usage with Claude Desktop

Add this configuration to your claude_desktop_config.json:

(Mac OS)

{
  "mcpServers": {
    "medrxiv": {
      "command": "python",
      "args": ["-m", "medrxiv-mcp-server"]
      }
  }
}

(Windows version):

{
  "mcpServers": {
    "medrxiv": {
      "command": "C:\\Users\\YOUR_USERNAME\\AppData\\Local\\Programs\\Python\\Python311\\python.exe",
      "args": [
        "-m",
        "medrxiv-mcp-server"
      ]
    }
  }
}

Using with Cline

{
  "mcpServers": {
    "medrxiv": {
      "command": "bash",
      "args": [
        "-c",
        "source /home/YOUR/PATH/mcp-server-medRxiv/.venv/bin/activate && python /home/YOUR/PATH/mcp-server-medRxiv/medrxiv_server.py"
      ],
      "env": {},
      "disabled": false,
      "autoApprove": []
    }
  }
}

After restarting Claude Desktop, the following capabilities will be available:

Searching Papers

You can ask Claude to search for papers using queries like:

Can you search medRxiv for recent papers about genomics?

The search will return basic information about matching papers including:

โ€ข Paper title

โ€ข Authors

โ€ข DOI

Getting Paper Details

Once you have a DOI, you can ask for more details:

Can you show me the details for paper 10.1101/003541?

This will return:

โ€ข Full paper title

โ€ข Authors

โ€ข Publication date

โ€ข Paper abstract

โ€ข Links to available formats (PDF/HTML)

๐Ÿ“ TODO

download_paper

Download a paper and save it locally.

read_paper

Read the content of a downloaded paper.

list_papers

List all downloaded papers.

๐Ÿ“ Research Prompts

The server offers specialized prompts to help analyze academic papers:

Paper Analysis Prompt

A comprehensive workflow for analyzing academic papers that only requires a paper ID:

result = await call_prompt("deep-paper-analysis", {
    "paper_id": "2401.12345"
})

This prompt includes:

  • Detailed instructions for using available tools (list_papers, download_paper, read_paper, search_papers)
  • A systematic workflow for paper analysis
  • Comprehensive analysis structure covering:
    • Executive summary
    • Research context
    • Methodology analysis
    • Results evaluation
    • Practical and theoretical implications
    • Future research directions
    • Broader impacts

๐Ÿ“ Project Structure

  • medrxiv_server.py: The main MCP server implementation using FastMCP
  • medrxiv_web_search.py: Contains the web scraping logic for searching medRxiv

๐Ÿ”ง Dependencies

  • Python 3.10+
  • FastMCP
  • asyncio
  • logging
  • requests (for web scraping, used in medrxiv_web_search.py)
  • beautifulsoup4 (for web scraping, used in medrxiv_web_search.py)

You can install the required dependencies using:

pip install FastMCP requests beautifulsoup4

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

๐Ÿ“„ License

This project is licensed under the MIT License.

๐Ÿ™ Acknowledgements

This project is inspired by and built upon the work done in the arxiv-mcp-server project.

โš ๏ธ Disclaimer

This tool is for research purposes only. Please respect medRxiv's terms of service and use this tool responsibly.

FAQ

Common questions

Discussion

Questions & comments ยท 0

Sign In Sign in to leave a comment.