Arxiv logo

Arxiv

Community
AlexAI-MCP
arxiv

Search and retrieve academic papers from arXiv using their free REST API. No API key needed.

Overview

PublisherAlexAI-MCP
Repositoryhermes-CCC
Skill namearxiv
Stars
134
Forks
22
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by AlexAI-MCP on GitHub. Read the source before you install it.

Installation

Install the Arxiv AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/arxiv
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AlexAI-MCP/hermes-CCC.git /tmp/hermes-CCC
mkdir -p .claude/skills
cp -r /tmp/hermes-CCC/skills/arxiv .claude/skills/arxiv
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Arxiv in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Arxiv on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Arxiv is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

arXiv

Purpose

  • Use this skill to search, inspect, and download academic papers from arXiv.
  • Prefer it for literature review, paper triage, and reproducible paper retrieval.
  • arXiv access is free and does not require an API key.
  • The primary API is Atom XML over HTTP.

Base Endpoint

  • Base URL: https://export.arxiv.org/api/query
  • Response format: Atom XML feed
  • Transport: HTTP GET
  • Authentication: none

Core Record Shape

  • id: canonical entry URL for the paper
  • title: paper title
  • summary: abstract text
  • authors: ordered author list
  • published: original publication timestamp
  • categories: arXiv subject tags
  • pdf_url: direct PDF URL when present

Useful Categories

  • cs.AI
  • cs.LG
  • cs.CL
  • stat.ML
  • cs.CV

Search Syntax

  • Search terms are passed in search_query=...
  • Field prefixes narrow the query:
  • ti: title search
  • au: author search
  • abs: abstract search
  • all: broad metadata search
  • Combine terms with AND, OR, and ANDNOT
  • URL-encode spaces as + or %20

Common Query Patterns

  • all:reasoning+AND+cat:cs.AI
  • ti:transformer+AND+cat:cs.CL
  • au:Goodfellow+AND+cat:cs.LG
  • abs:diffusion+AND+cat:cs.CV
  • all:reinforcement+learning+AND+cat:stat.ML

CLI Subcommands

  • /arxiv search
  • /arxiv get
  • /arxiv recent
  • /arxiv download

Subcommand Intent

  • /arxiv search: run a query and print matching entries
  • /arxiv get: fetch one known arXiv identifier and display parsed metadata
  • /arxiv recent: list recent submissions in a category or topic
  • /arxiv download: save the PDF locally from a known identifier or PDF URL

Search Example With curl

bash
curl -s "https://export.arxiv.org/api/query?search_query=all:large+language+models+AND+cat:cs.CL&start=0&max_results=5&sortBy=relevance&sortOrder=descending"

Recent Example With curl

bash
curl -s "https://export.arxiv.org/api/query?search_query=cat:cs.LG&start=0&max_results=10&sortBy=submittedDate&sortOrder=descending"

PDF Download Example With curl

bash
curl -L "https://arxiv.org/pdf/2401.01234.pdf" -o 2401.01234.pdf

Fetch A Single Entry By Identifier

bash
curl -s "https://export.arxiv.org/api/query?id_list=2401.01234"

Rate Limit Guidance

  • Keep requests at or below 3 req/sec
  • Sleep between loops when paginating large result sets
  • Cache parsed results locally if you will revisit them
  • Avoid hammering the endpoint with concurrent workers

Python Parsing Pattern

python
import xml.etree.ElementTree as ET
from urllib.request import urlopen

API_URL = "https://export.arxiv.org/api/query?search_query=all:reasoning+AND+cat:cs.AI&start=0&max_results=3"
NS = {"atom": "http://www.w3.org/2005/Atom"}

with urlopen(API_URL) as response:
    xml_bytes = response.read()

root = ET.fromstring(xml_bytes)

for entry in root.findall("atom:entry", NS):
    paper_id = entry.findtext("atom:id", default="", namespaces=NS)
    title = entry.findtext("atom:title", default="", namespaces=NS).strip()
    summary = entry.findtext("atom:summary", default="", namespaces=NS).strip()
    published = entry.findtext("atom:published", default="", namespaces=NS)
    authors = [
        author.findtext("atom:name", default="", namespaces=NS)
        for author in entry.findall("atom:author", NS)
    ]
    categories = [node.attrib.get("term", "") for node in entry.findall("atom:category", NS)]
    pdf_url = ""
    for link in entry.findall("atom:link", NS):
        if link.attrib.get("title") == "pdf":
            pdf_url = link.attrib.get("href", "")
            break
    print("id:", paper_id)
    print("title:", title)
    print("published:", published)
    print("authors:", ", ".join(authors))
    print("categories:", ", ".join(categories))
    print("pdf_url:", pdf_url)
    print("summary:", summary[:240], "...")
    print("-" * 60)

Minimal Search Helper

python
import xml.etree.ElementTree as ET
from urllib.parse import quote_plus
from urllib.request import urlopen

def search_arxiv(query: str, max_results: int = 5) -> list[dict]:
    encoded = quote_plus(query)
    url = (
        "https://export.arxiv.org/api/query"
        f"?search_query={encoded}&start=0&max_results={max_results}"
    )
    ns = {"atom": "http://www.w3.org/2005/Atom"}
    with urlopen(url) as response:
        root = ET.fromstring(response.read())
    rows = []
    for entry in root.findall("atom:entry", ns):
        authors = [
            node.findtext("atom:name", default="", namespaces=ns)
            for node in entry.findall("atom:author", ns)
        ]
        categories = [node.attrib.get("term", "") for node in entry.findall("atom:category", ns)]
        rows.append(
            {
                "id": entry.findtext("atom:id", default="", namespaces=ns),
                "title": entry.findtext("atom:title", default="", namespaces=ns).strip(),
                "summary": entry.findtext("atom:summary", default="", namespaces=ns).strip(),
                "authors": authors,
                "published": entry.findtext("atom:published", default="", namespaces=ns),
                "categories": categories,
            }
        )
    return rows

for row in search_arxiv("all:multimodal AND cat:cs.CV", max_results=3):
    print(row["title"])

Example AI And ML Queries

  • all:chain-of-thought AND cat:cs.AI
  • all:instruction tuning AND cat:cs.CL
  • all:reward modeling AND cat:cs.LG
  • all:vision transformer AND cat:cs.CV
  • all:mixture of experts AND cat:stat.ML
  • ti:retrieval augmented generation
  • abs:alignment AND cat:cs.AI

Practical Retrieval Workflow

  1. Search broadly with all: and a category.
  2. Narrow with ti: if the result set is noisy.
  3. Pull the top 5 to 20 entries.
  4. Parse title, summary, and categories.
  5. Keep the paper id for citation and later retrieval.
  6. Download only shortlisted PDFs.

Sorting And Pagination

  • start controls the starting offset
  • max_results controls page size
  • sortBy=relevance is useful for topic search
  • sortBy=submittedDate is useful for recent monitoring
  • sortOrder=descending is typical for recent feeds

ID And PDF Notes

  • arXiv IDs may appear as modern identifiers like 2401.01234
  • older identifiers can include subject prefixes
  • PDF links usually resolve as https://arxiv.org/pdf/<id>.pdf
  • the canonical entry page remains useful for metadata stability

Bulk Access Notes

  • Use the API for ordinary search and retrieval tasks.
  • For large-scale corpus access, arXiv also publishes bulk data and S3-style access paths in some workflows.
  • Bulk S3 access is appropriate for offline indexing, not for interactive one-off queries.
  • If you need many thousands of records, prefer bulk snapshots over high-frequency API pagination.

Failure Handling

  • If the feed is empty, print the final URL and query string first.
  • If XML parsing fails, save the raw response before retrying.
  • If pdf_url is missing, synthesize it from the parsed identifier.
  • If you get throttled, back off and reduce concurrency.

Good Defaults

  • Start with max_results=5
  • Use sortBy=relevance for topic search
  • Use sortBy=submittedDate for /arxiv recent
  • Keep summaries trimmed in terminal output
  • Persist parsed metadata as JSON if you will cite or compare papers later

Output Contract

  • Always print id
  • Always print title
  • Always print summary
  • Always print authors
  • Always print published
  • Always print categories
  • Always print pdf_url if available

When Not To Use This Skill

  • Do not use this as your only citation source for final camera-ready metadata.
  • Do not assume arXiv category tags equal venue topics.
  • Do not use the interactive API for massive mirror-scale ingestion jobs.

Frequently asked questions

What does the Arxiv AI skill do?

Search and retrieve academic papers from arXiv using their free REST API. No API key needed.

Why use Arxiv on TypingMind?

Because you install it once and use it with any model. Arxiv is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Arxiv in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/arxiv. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Arxiv?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Arxiv?

As many as you like. As long as a model supports skills, you can use Arxiv with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Arxiv AI skill free?

Yes. It is published on GitHub by AlexAI-MCP under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇