Installation

Prerequisites

  • Python 3.12 or later

  • The MCP Python SDK 2.3 or later (installed automatically as mcp[cli]>=2.3.0)

  • An MCP-compatible client (Claude Desktop, Cline, Continue, or any custom client)

Install from PyPI

pip install arxiv-query-mcp

Note

Version 2.0 moved to the MCP Python SDK 2.x, where FastMCP became MCPServer. The tool names and parameters are unchanged. Environments that pin mcp<2 must be upgraded.

Build from Source

git clone https://github.com/LWaetzig/arxiv-query-mcp.git
cd arxiv-query-mcp
pip install -e .

MCP Client Setup

Claude Desktop

arxiv-query-mcp setup writes this entry for you. To add it by hand, edit your Claude Desktop configuration file:

Platform

Path

macOS

~/Library/Application Support/Claude/claude_desktop_config.json

Windows

%APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "arxiv": {
      "command": "arxiv-query-mcp"
    }
  }
}

Restart Claude Desktop. The arXiv tools appear in the tool picker automatically.

Note

If you installed with Poetry, use "command": "poetry" and "args": ["run", "arxiv-query-mcp"] instead. Settings such as the cache directory can be passed through an "env" block; see Configuration.

Other MCP Clients

Any MCP client that supports stdio transport can connect to this server:

Command:   arxiv-query-mcp
Transport: stdio

Building the Docs

pip install "arxiv-query-mcp[docs]"
# or: poetry install --with docs
sphinx-build -W -b html docs docs/_build/html
open docs/_build/html/index.html