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)
Recommended: uv and one-command setup
uv tool install arxiv-query-mcp
arxiv-query-mcp setup
setup registers the server with Claude Desktop, Claude Code, Cursor,
Windsurf and Gemini CLI (those that are installed) and installs the agent
skill. Other servers in those configs are preserved, and existing env
settings of the arxiv entry are kept. Restart your client afterwards.
Command |
Purpose |
|---|---|
|
Run the MCP server over stdio |
|
Register the server only (also |
|
Install only the skill into the agents detected in the current project |
|
Install for one agent ( |
|
Overwrite a skill file that differs from the current one |
Without --force an existing, differing skill is never overwritten. Codex
stores MCP servers in TOML, which setup does not edit; its skill is covered
by the agents target (AGENTS.md).
Try it without installing: uvx arxiv-query-mcp setup. Note that
this registers a temporary path, so use uv tool install for a lasting setup.
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.
Install with Poetry (recommended)
poetry add arxiv-query-mcp
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 |
|
Windows |
|
{
"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