deepref-mcp

zakariaelaoufi/deepref-mcp

3.2

If you are the rightful owner of deepref-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

DeepRef is an AI-powered research assistant that utilizes the Model Context Protocol (MCP) to facilitate academic paper discovery and citation retrieval from multiple scholarly databases.

DeepRef - Research Copilot with Citation Retriever

DeepRef Logo

Your AI-powered research assistant for academic paper discovery and citation

🎯 Overview

DeepRef is an intelligent research copilot that leverages Model Context Protocol (MCP) to bridge the gap between large language models and scholarly databases. It enables researchers, students, and academics to quickly discover, retrieve, and cite relevant academic papers from multiple authoritative sources.

Key Features

  • Multi-Database Search: Query arXiv, Semantic Scholar, and PubMed simultaneously
  • Intelligent Citation Retrieval: Automatically formats and structures citations with abstracts
  • MCP Integration: Seamless connection between AI models and scholarly APIs
  • Real-time Results: Fast, contextual paper discovery based on research queries
  • Structured Data: Clean, standardized paper metadata across all sources

🏗️ Architecture

DeepRef acts as an MCP (Model Context Protocol) server that:

  1. Receives research queries from the LLM
  2. Queries multiple scholarly APIs (arXiv, Semantic Scholar, PubMed)
  3. Structures citations, abstracts, and metadata
  4. Injects relevant papers into the model's context
  5. Delivers trustworthy, referenced information to users
┌─────────────┐    ┌──────────────┐    ┌─────────────────┐
│    User     │───▶│   LLM/AI     │───▶│   DeepRef MCP   │
│   Query     │    │   Agent      │    │    Server       │
└─────────────┘    └──────────────┘    └─────────┬───────┘
                                                 │
                        ┌────────────────────────┼────────────────────────┐
                        │                        │                        │
                   ┌────▼────┐              ┌────▼────┐              ┌────▼────┐
                   │  arXiv  │              │Semantic │              │ PubMed  │
                   │   API   │              │Scholar  │              │   API   │
                   └─────────┘              └─────────┘              └─────────┘

🚀 Installation

Prerequisites

  • Python 3.10+
  • UV package manager (recommended) or pip

Setup

  1. Clone the repository:

    git clone https://github.com/yourusername/DeepRef.git
    cd DeepRef
    
  2. Install dependencies:

    # Using UV (recommended)
    uv pip install -r requirements.txt
    
    # Or using pip
    pip install -r requirements.txt
    
  3. Set up environment variables:

    cp .env.example .env
    # Add your OpenAI API key to .env
    OPENAI_API_KEY=your_openai_api_key_here
    

🎮 Usage

Running the MCP Server

Start the DeepRef MCP server:

python src/server.py

Start the MCP Inspector:

mcp dev src/server.py

Using the CLI Assistant

Run the interactive CLI assistant:

python .\example\deepref_assistant.py

Example Queries

> What are the latest developments in transformer architectures?
> Find papers about COVID-19 vaccine efficacy studies
> Search for research on quantum computing applications in machine learning

📊 Demo

MCP Inspector

Capture d'écran 2025-09-06 175116

Search Results

Capture d'écran 2025-09-06 172119

🔧 Configuration

Supported Databases

  • arXiv: Pre-print repository for physics, mathematics, computer science, and more
  • Semantic Scholar: AI-powered academic search engine
  • PubMed: Biomedical literature database

Search Parameters

# Customize your search
search_papers(
    query="your research query",
    max_results=10,  # Papers per database
    sources=['arxiv', 'semantic scholar', 'pubmed']  # Select specific sources
)

📁 Project Structure

DeepRef/
├── src/
│   ├── models/
│   │   └── paper.py           # Paper data model
│   ├── providers/
│   │   ├── arXiv_provider.py      # arXiv API integration
│   │   ├── semantic_scholar_provider.py  # Semantic Scholar API
│   │   └── pubmed_provider.py     # PubMed API integration
│   ├── tools/
│   │   └── search.py          # MCP tool registration
│   └── server.py              # MCP server entry point
├── example/
│   └── deepref_assistant.py   # CLI assistant example
├── requirements.txt
└── README.md

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Development Setup

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Make your changes and add tests
  4. Commit your changes: git commit -am 'Add some feature'
  5. Push to the branch: git push origin feature-name
  6. Submit a pull request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

📞 Support


Made with ❤️ for the research community