Skip to main content
Glama
Research Paper MCP Server

Research Paper MCP Server

by sukanyanath1

Research Paper MCP Server

Server Run

A lightweight Python MCP (Model Context Protocol) server that enables AI assistants to search and retrieve research papers from arXiv.

Built using the official Python MCP SDK and the arXiv API.

Features

The server exposes two MCP tools:

Tool

Description

search_papers

Search arXiv by query and retrieve paper metadata

get_paper

Retrieve details of a specific paper using its arXiv ID

Returned metadata includes paper titles, authors, publication dates, abstracts, and URLs.

Related MCP server: search-papers

Architecture

AI Assistant / MCP Inspector
           |
           | MCP (stdio)
           v
    Python MCP Server
           |
           | arXiv API
           v
        arXiv
           |
           v
   Structured Paper Metadata

Prerequisites

  • Python 3.11+

  • uv for Python dependency management

  • Node.js and npx for MCP Inspector

  • Internet access for retrieving papers

No API key is required.

Installation

1. Set up the project

Create a directory and initialize the project:

uv init research-paper-mcp
cd research-paper-mcp

If you have cloned this repository instead, navigate to the project directory and run uv sync.

2. Install dependencies

uv add "mcp[cli]" arxiv

This installs the MCP Python SDK, development CLI, and arXiv Python client.

3. Project structure

research-paper-mcp/
├── server.py
├── pyproject.toml
├── uv.lock
└── README.md

The MCP server implementation is contained in server.py.

Running the Server

1. Launch MCP Inspector

From the project directory, run:

uv run mcp dev server.py

This starts the MCP Inspector development environment.

Open the local URL displayed in your terminal.

2. Connect to the MCP server

In the MCP Inspector browser interface:

  1. Locate the Connection panel.

  2. Select STDIO as the transport type.

  3. If the connection settings are already populated, leave them unchanged.

  4. Otherwise, configure the command to launch the server from the project directory.

  5. Click Connect.

Keep the original terminal running while testing.

3. Discover the tools

After connecting:

  1. Open the Tools tab.

  2. Click List Tools.

  3. Verify that the following tools are available:

    • search_papers

    • get_paper

Testing the Tools

Example 1: Search for papers

Select search_papers and enter:

{
  "query": "large language models",
  "max_results": 3
}

Click Run Tool.

Expected response: A list of up to three matching research papers, including their titles, authors, abstracts, publication dates and URLs.

Example 2: Retrieve a specific paper

Select get_paper and enter:

{
  "arxiv_id": "1706.03762"
}

Click Run Tool.

This retrieves metadata for Attention Is All You Need, the Transformer architecture paper.

How MCP Works

The Model Context Protocol provides a standardized interface through which AI applications can discover and invoke external tools.

In this project:

  1. The MCP server registers Python functions as tools using the MCP SDK.

  2. An MCP client connects to the server using the stdio transport.

  3. The client discovers available tools and their input schemas.

  4. The client invokes a tool with structured arguments.

  5. The server queries arXiv and returns structured results.

The MCP Inspector acts as a development and testing client. An MCP-compatible AI assistant can use the same tools for natural-language research queries.

Technology Stack

  • Python — Server implementation

  • MCP Python SDK — Tool registration and protocol communication

  • arxiv — Python client for the arXiv API

  • uv — Dependency management

  • MCP Inspector — Interactive testing and debugging

Limitations

  • Searches rely on the arXiv API and require an internet connection.

  • Paper retrieval returns metadata and abstracts, not full-text analysis.

  • Search results are subject to arXiv API availability and rate limits.

  • This repository provides the MCP server, not a standalone AI chatbot.

Future Improvements

  • Automated tool testing with pytest

  • Paper comparison and citation extraction

  • Full-text PDF retrieval

  • Integration with an MCP-compatible AI assistant

References

Available Tools

2 tools
get_paperB

Get a paper's metadata and abstract by arXiv ID.

Inputs: arxiv_id (required). Returns: result

search_papersC

Search arXiv for research papers, newest first.

Inputs: query (required), max_results. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: search_papers performs discovery via query, while get_paper performs lookup by identifier. There is no plausible way to confuse them, since their inputs and outputs differ fundamentally.

    Naming Consistency5/5

    Both names follow a consistent verb_noun snake_case pattern (search_papers, get_paper) with matching plural/singular conventions on the resource noun. Naming is fully predictable.

    Tool Count3/5

    Two tools is borderline thin for a server whose stated purpose is research paper access; a discovery-plus-retrieval pair is the bare minimum viable surface. It is well-scoped with no redundancy, but leaves little room for common research workflows.

    Completeness3/5

    Search and metadata/abstract retrieval cover the core read path, but there is no way to get full text, PDF links, citations, or references, and no author/category browsing. Agents will often hit a dead end after retrieving an abstract and needing the paper body.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Enables searching academic papers on arXiv and retrieving detailed information such as title, authors, summary, and PDF link.
      1
      6
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables agents to search, analyze, and explore arXiv academic papers with advanced multi-field search, author lookup, category browsing, citation extraction, and bibliography export.
      35 npm
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to search arXiv papers, retrieve metadata, browse categories, and read paper text.
      5
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to discover and manage arXiv papers by searching for papers, extracting metadata, and browsing saved collections, all within the conversation.
      1
      MIT