Skip to main content
Glama

MCP Research Server

  • Apple
  • Linux

MCP Research Server

A Model Context Protocol (MCP) server that provides tools for searching and managing research papers from arXiv.

Features

  • Search Papers: Search for research papers on arXiv by topic
  • Extract Paper Info: Retrieve detailed information about specific papers
  • Local Storage: Automatically saves paper information to local JSON files organized by topic

Prerequisites

  • Python 3.13 or higher
  • uv package manager (recommended) or pip

Installation

  1. Clone or navigate to the project directory:
    cd mcp_project
  2. Create a virtual environment:
    uv venv source .venv/bin/activate # On macOS/Linux # or .venv\Scripts\activate # On Windows
  3. Install dependencies:
    uv pip install arxiv

Running the Server

  1. Start the server with MCP Inspector:
    npx @modelcontextprotocol/inspector uv run research_server.py
  2. Access the Inspector:
    • Open your browser and go to: http://127.0.0.1:6274
    • Use the provided session token for authentication

Method 2: Direct Execution

  1. Run the server directly:
    uv run research_server.py

Available Tools

1. search_papers

Searches for papers on arXiv based on a topic and stores their information locally.

Parameters:

  • topic (str): The topic to search for
  • max_results (int, optional): Maximum number of results (default: 5)

Returns: List of paper IDs found

Example:

{ "topic": "machine learning", "max_results": 10 }

2. extract_info

Retrieves detailed information about a specific paper from local storage.

Parameters:

  • paper_id (str): The ID of the paper to look for

Returns: JSON string with paper information

Example:

{ "paper_id": "2301.12345" }

Project Structure

mcp_project/ ├── research_server.py # Main MCP server implementation ├── pyproject.toml # Project configuration ├── uv.lock # Dependency lock file ├── papers/ # Directory where paper data is stored │ └── [topic_name]/ # Organized by topic │ └── papers_info.json └── README.md # This file

How It Works

  1. Paper Search: When you search for papers, the server:
    • Queries arXiv using the provided topic
    • Downloads paper metadata (title, authors, summary, PDF URL, publication date)
    • Saves the information to a JSON file organized by topic
    • Returns the paper IDs for reference
  2. Paper Retrieval: When you extract paper info, the server:
    • Searches through all topic directories
    • Finds the requested paper by ID
    • Returns the stored information in JSON format

Data Storage

Paper information is automatically saved to the papers/ directory, organized by topic. Each topic gets its own subdirectory containing a papers_info.json file with all the papers found for that topic.

Troubleshooting

  • Python Version: Ensure you're using Python 3.13 or higher
  • Dependencies: Make sure all dependencies are installed with uv pip install arxiv
  • Virtual Environment: Always activate the virtual environment before running the server
  • Permissions: Ensure you have write permissions in the project directory for creating the papers/ folder

Development

To modify or extend the server:

  1. Edit research_server.py to add new tools or modify existing ones
  2. Use the MCP Inspector to test your changes
  3. The server uses FastMCP for easy tool definition and management

License

This project is open source. Feel free to modify and distribute as needed.

-
security - not tested
F
license - not found
-
quality - not tested

A Model Context Protocol server that provides tools for searching arXiv papers and managing research paper information with local storage capabilities.

  1. Features
    1. Prerequisites
      1. Installation
        1. Running the Server
          1. Method 1: Using MCP Inspector (Recommended for Testing)
          2. Method 2: Direct Execution
        2. Available Tools
          1. search_papers
          2. extract_info
        3. Project Structure
          1. How It Works
            1. Data Storage
              1. Troubleshooting
                1. Development
                  1. License

                    Related MCP Servers

                    • -
                      security
                      A
                      license
                      -
                      quality
                      A Model Context Protocol server that enables AI agents to search, retrieve, and analyze academic papers from arXiv, supporting features like keyword search, paper details retrieval, content extraction, and paper analysis.
                      Last updated -
                      Python
                      MIT License
                      • Linux
                      • Apple
                    • -
                      security
                      A
                      license
                      -
                      quality
                      A Model Context Protocol server that enables natural language interaction with arXiv.org, allowing users to search, retrieve metadata, download PDFs, and load scholarly articles into LLM context.
                      Last updated -
                      1
                      Python
                      MIT License
                      • Apple
                    • A
                      security
                      A
                      license
                      A
                      quality
                      A comprehensive Model Context Protocol server that enables advanced PubMed literature search, citation formatting, and research analysis through natural language interactions.
                      Last updated -
                      12
                      2
                      Python
                      MIT License
                    • A
                      security
                      F
                      license
                      A
                      quality
                      A TypeScript implementation of the Model Context Protocol server that enables searching arXiv papers and extracting paper information through standardized client-server communication.
                      Last updated -
                      2
                      4
                      TypeScript

                    View all related MCP servers

                    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/khushiiagrawal/mcp'

                    If you have feedback or need assistance with the MCP directory API, please join our Discord server