Skip to main content
Glama

arXiv Research MCP

科学文献リサーチ用の、読み取り専用でデプロイ可能なMCPサーバー。

ChatGPT
   ↓  Streamable HTTP
arXiv Research MCP
   ↓  official Atom API
arXiv scientific papers

このサーバーはメタデータを取得して正規化します。物理学の説明、論文の比較、方程式を解く作業は引き続きChatGPTが担当します。

ツール

ツール

用途

search_arxiv

一般的なキーワードまたは高度なarXiv検索(ページングとソート対応)

get_arxiv_paper

現行またはレガシーのarXiv ID 1件分の完全なメタデータ

search_arxiv_by_author

指定した著者の論文

search_arxiv_by_category

オプションのキーワード付きカテゴリ検索

get_recent_arxiv_papers

カテゴリ内の最新投稿

すべてのツールは読み取り専用に設定されており、arXiv ID、正規化されたタイトルと要約、著者、カテゴリ、日付、DOI、ジャーナル参照情報、要約のURL、利用可能な場合はPDFのURLを含む型付き構造化データを返します。

Related MCP server: arXiv MCP Server

ローカルセットアップ

Python 3.11以降が必要です。

py -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
Copy-Item .env.example .env

.env の ARXIV_USER_AGENT を編集し、サンプルの連絡先を自分のメールアドレスまたはプロジェクトのURLに置き換えてください。arXivはAPIキーを必要としません。

stdio経由でローカル実行するには:

arxiv-mcp

リモート互換トランスポートをローカルで実行するには:

arxiv-mcp --transport streamable-http --host 127.0.0.1 --port 8000

エンドポイントは次のとおりです:

http://127.0.0.1:8000/mcp
http://127.0.0.1:8000/health

手動でのツールテストには、HTTPサーバーを起動し、公式のMCP Inspectorを実行して、http://127.0.0.1:8000/mcp に接続します:

npx @modelcontextprotocol/inspector@latest

テストの実行

pytest
ruff check .

テストはモック化されたHTTPレスポンスを使用するため、arXiv APIを消費しません。GitHub Actionsは、プッシュとプルリクエストのたびに同じチェックを実行します。

信頼性とセキュリティ

  • 許可リストに登録された固定アップストリーム: https://export.arxiv.org/api/query

  • デフォルトで3秒のグローバルリクエスト間隔

  • タイムアウト、ネットワーク障害、HTTP 429、一時的な5xxレスポンスに対する回数制限付きリトライ

  • 結果数、オフセット、カテゴリ、ソート、arXiv IDの厳格な検証

  • 外部エンティティを無効にした安全なXML解析

  • シェル実行、任意のURL取得、シークレット、書き込み操作、ユーザーデータの保存は一切行いません

  • ステートレスなStreamable HTTPデプロイメント

Renderへのデプロイ

リポジトリには、非rootの Dockerfile と render.yaml Blueprintが含まれています。

  1. このリポジトリをGitHubにプッシュします。

  2. Renderにサインインし、新規 → Blueprint を選択します。

  3. GitHubリポジトリを接続し、render.yaml を適用します。

  4. Renderサービスの環境で、ARXIV_USER_AGENT が実際の連絡先メールアドレスまたはリポジトリのURLを含むように変更します。

  5. /health が成功するまで待ち、サービスURLをコピーします。

最終的なMCP URLは次のとおりです:

https://<your-render-service>.onrender.com/mcp

BlueprintはRenderの無料インスタンスを使用するため、デプロイしても自動的に課金が発生することはありません。Renderのドキュメントによると、無料サービスは15分間アクティビティがないとスリープし、再起動に約1分かかることがあります。このコールドスタートはMCPクライアントのタイムアウトを超える可能性があります。常時利用可能な本番用コネクタとして利用する前に、サービスを starter または他の有料インスタンスにアップグレードしてください。Renderの無料枠の制限 と Blueprintリファレンス を参照してください。

ChatGPTに接続する

以下の手順は、現在のOpenAI公式ドキュメントに従っています:

  1. サーバーをデプロイし、公開HTTPSの /mcp URLがMCP Inspectorで動作することを確認します。

  2. ChatGPTで、設定 → セキュリティとログイン を開き、デベロッパーモード を有効にします。

  3. ChatGPT Plugins を開き、プラスボタンを選択します。

  4. 次のように入力します:

    • 名前: arXiv Research

    • 説明: Read-only search and metadata retrieval from the official arXiv API.

    • 接続: 公開MCPエンドポイント

    • サーバーURL: https://<your-render-service>.onrender.com/mcp

    • 認証: なし

  5. 接続を作成し、ツールがちょうど5つ検出されることを確認します。

  6. 新しいチャットを開始し、ツールメニューから arXiv Research を追加します。

OpenAIは現在、公開HTTPSエンドポイント(またはSecure MCP Tunnel)とStreamable HTTPを必要とし、通常は /mcp をエンドポイントとします。デベロッパーモードが利用できるかどうかは、アカウントとワークスペースのポリシーによって異なります。OpenAIの現在のページでは、すべてのChatGPTプランで利用できるとは保証されていないため、お使いのアカウントにデベロッパーモードのトグルが表示されるかどうかが確実な確認方法です。Plusアカウントに表示されない場合でも、このサーバーはMCP Inspector、別のMCPクライアント、またはOpenAI API Playgroundを通じて使用できます。OpenAIの現在の接続ガイド と MCPサーバーガイド を参照してください。

ChatGPTプロンプトの例

  • Search arXiv for recent quantum gravity papers.

  • Find papers about the Bondi-Sachs formalism.

  • Search hep-th for path integral approaches to gravity.

  • Find papers by Roger Penrose related to general relativity.

  • Get the metadata and PDF link for arXiv:2401.12345.

プロジェクト構造

.
├── src/arxiv_mcp/
│   ├── arxiv_client.py
│   ├── config.py
│   ├── models.py
│   └── server.py
├── tests/
├── .github/workflows/ci.yml
├── .env.example
├── Dockerfile
├── render.yaml
├── pyproject.toml
└── README.md

MITライセンス。

Available Tools

5 tools
get_arxiv_paperGet an arXiv paperA
Read-onlyIdempotent

Retrieve complete metadata for one known arXiv ID, including abstract, DOI, journal reference, categories, and PDF link.

Inputs: arxiv_id (required). Returns: Normalized metadata for one arXiv paper.

get_recent_arxiv_papersGet recent arXiv papersA
Read-onlyIdempotent

Return the most recently submitted papers in one arXiv category. Use for current literature scans and research updates.

Inputs: category (required), max_results. Returns: A page of arXiv search results.

search_arxivSearch arXivA
Read-onlyIdempotent

Search the official arXiv index by keywords or advanced arXiv query syntax. Use this for general paper discovery and pagination.

Inputs: query (required), start, sort_by, sort_order, +1 more. Returns: A page of arXiv search results.

search_arxiv_by_authorSearch arXiv by authorB
Read-onlyIdempotent

Find arXiv papers written by a named author. Use this when the author is the main search constraint.

Inputs: author_name (required), max_results. Returns: A page of arXiv search results.

search_arxiv_by_categorySearch an arXiv categoryB
Read-onlyIdempotent

Search within one arXiv subject category, optionally narrowed by keywords. Use for fields such as gr-qc, hep-th, quant-ph, math-ph, or astro-ph.CO.

Inputs: category (required), keywords, max_results. Returns: A page of arXiv search results.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: general search, specific paper retrieval, author search, category search, and recent papers. No two tools overlap in function; the specialized search tools are properly scoped with explicit use cases, and get_recent_arxiv_papers is differentiated from search_arxiv_by_category by focusing on recency rather than keyword filtering.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern, with 'search_' for discovery operations and 'get_' for retrieval. The pattern is uniform despite minor semantic differences (e.g., 'search_arxiv' vs 'search_arxiv_by_author' vs 'get_recent_arxiv_papers'), and the naming makes the action and target obvious.

    Tool Count5/5

    Five tools is an ideal scope for an arXiv research client. Each tool provides a distinct capability that covers the primary use cases of paper discovery and metadata retrieval without unnecessary bloat. The count feels intentional and well-balanced for the server's stated purpose.

    Completeness4/5

    The tool surface covers the core arXiv workflows: general search, targeted searches by author and category, retrieval by ID, and recent-paper scans. The only minor gaps are non-essential features like citation lookup or category listing, but these are not critical for the server's purpose and can be worked around with existing tools (e.g., using search_arxiv for category keywords).

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides search functionality for arXiv.org papers through the official arXiv API, allowing users to search papers by keywords, filter by subject categories and date ranges, and receive comprehensive metadata including PDF links.
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables searching and retrieving academic papers from arXiv by various criteria including title, author, and category, with support for extracting full text content from PDFs.
      4
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to search arXiv papers, retrieve metadata, browse categories, and read paper text.
      5
      MIT