[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [arXiv metadata harvest](https://spiral.ai/integrations/claude-code/arxiv-metadata-harvest)

# How to Use arXiv metadata harvest in Claude Code

Returns arXiv metadata records through its OAI-PMH service, including paper license information. Use it to build or refresh a research catalog by metadata modification date.

|  |  |
| --- | --- |
| Model | arXiv metadata harvest |
| Available through | Alexandria |
| Category | Developer |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with arXiv metadata harvest in Claude Code

- Use arXiv subject sets to identify the computer science harvesting scope, then use arXiv metadata harvest to collect records modified from November 1 through November 7, 2026, for our research catalog.
- Use arXiv metadata harvest to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from arXiv metadata harvest and tell me what changed since last week.
- Check arXiv metadata harvest and summarize what you find in three bullet points.
- Pull the newest data from arXiv metadata harvest and give me the result as a table.

## How to set up arXiv metadata harvest in Claude Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run arXiv metadata harvest**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "arxiv-org/papers/harvest_records",
    "input": {
      "set": "<set>"
    }
  }'
```

Then paste one of the prompts above: Claude Code finds arXiv metadata harvest on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## arXiv metadata harvest tools and prices

- [arXiv · Harvest records](https://spiral.ai/tools/alexandria/arxiv-org/papers/harvest_records) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| set |  | — | OAI set spec from `list_sets`, e.g. `cs`, `econ`, `physics:hep-th`. Omit for all of arXiv. Pattern: ^[a-zA-Z][a-zA-Z0-9:.-]*$. |
| from |  | — | Earliest datestamp (`YYYY-MM-DD`, inclusive). Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| limit | 1 to 1000 | — | Records to return in this call (1-1000; default 100). |
| until |  | — | Latest datestamp (`YYYY-MM-DD`, inclusive). Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| cursor |  | — | `next_cursor` from a previous call. When given, `set`, `from` and `until` must be omitted. |

## What can you do with arXiv metadata harvest in Claude Code?

Build a research index with arXiv paper records, subject organization, and bibliography entries. Connect those records to the project's reading lists or documentation so each selected reference has an identifiable source.

### Build a subject research catalog

Choose subject sets, collect their metadata, and use category listings and topic searches to organize discovery. Add individual paper details and BibTeX citations to each selected catalog entry.

### Audit research catalog changes

Define a discipline with subject sets and harvest records modified since the previous collection. Compare stored metadata with individual paper records to review changed titles, abstracts, or publication references.

### Compare publication activity by subject

Use subject sets to define comparable scopes and harvested metadata to build a subject-level dataset. Check category listings against the collected records before reporting counts.

### Maintain a topical reading website

Define subject coverage, refresh metadata, and combine category browsing with topic searches to select papers. Publish chosen paper descriptions and citation entries, with links to arXiv.

### Refresh an existing bibliography

Compare changed metadata with the papers already cited in a research collection. Inspect individual records and retrieve citation entries for references that need review.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## arXiv metadata harvest in other agents

- [Amp](https://spiral.ai/integrations/amp/arxiv-metadata-harvest)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/arxiv-metadata-harvest)
- [Claude](https://spiral.ai/integrations/claude-desktop/arxiv-metadata-harvest)
- [Cline](https://spiral.ai/integrations/cline/arxiv-metadata-harvest)
- [Codex](https://spiral.ai/integrations/codex/arxiv-metadata-harvest)
- [Cursor](https://spiral.ai/integrations/cursor/arxiv-metadata-harvest)
- [Devin](https://spiral.ai/integrations/devin/arxiv-metadata-harvest)
- [dots](https://spiral.ai/integrations/dots/arxiv-metadata-harvest)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/arxiv-metadata-harvest)
- [Gemini](https://spiral.ai/integrations/gemini/arxiv-metadata-harvest)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/arxiv-metadata-harvest)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/arxiv-metadata-harvest)
- [goose](https://spiral.ai/integrations/goose/arxiv-metadata-harvest)
- [Grok](https://spiral.ai/integrations/grok/arxiv-metadata-harvest)
- [Grok Build](https://spiral.ai/integrations/grok-build/arxiv-metadata-harvest)
- [Hermes](https://spiral.ai/integrations/hermes/arxiv-metadata-harvest)
- [Instinct](https://spiral.ai/integrations/instinct/arxiv-metadata-harvest)
- [Manus](https://spiral.ai/integrations/manus/arxiv-metadata-harvest)
- [Muse](https://spiral.ai/integrations/muse/arxiv-metadata-harvest)
- [Muse Code](https://spiral.ai/integrations/muse-code/arxiv-metadata-harvest)
- [n8n](https://spiral.ai/integrations/n8n/arxiv-metadata-harvest)
- [Notion](https://spiral.ai/integrations/notion/arxiv-metadata-harvest)
- [OpenClaw](https://spiral.ai/integrations/openclaw/arxiv-metadata-harvest)
- [opencode](https://spiral.ai/integrations/opencode/arxiv-metadata-harvest)
- [Perplexity](https://spiral.ai/integrations/perplexity/arxiv-metadata-harvest)
- [Raycast](https://spiral.ai/integrations/raycast/arxiv-metadata-harvest)
- [VS Code](https://spiral.ai/integrations/vscode/arxiv-metadata-harvest)
- [Windsurf](https://spiral.ai/integrations/windsurf/arxiv-metadata-harvest)
- [Zapier](https://spiral.ai/integrations/zapier/arxiv-metadata-harvest)

## More Claude Code guides

- [arXiv category papers](https://spiral.ai/integrations/claude-code/arxiv-category-papers)
- [arXiv paper details](https://spiral.ai/integrations/claude-code/arxiv-paper-details)
- [arXiv BibTeX citation](https://spiral.ai/integrations/claude-code/arxiv-bibtex-citation)
- [arXiv paper search](https://spiral.ai/integrations/claude-code/arxiv-paper-search)
- [Wayback Machine earliest capture](https://spiral.ai/integrations/claude-code/wayback-machine-earliest-capture)
- [arXiv subject sets](https://spiral.ai/integrations/claude-code/arxiv-subject-sets)

## Questions about arXiv metadata harvest in Claude Code

**Can Claude Code use arXiv metadata harvest?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run arXiv metadata harvest like any built-in tool.

**How much does arXiv metadata harvest cost in Claude Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

**Do I need an Alexandria account to use arXiv metadata harvest in Claude Code?**

No. Spiral runs arXiv metadata harvest on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up arXiv metadata harvest in Claude Code?**

About two minutes: add the hosted server, then sign in.

**Does Claude Code wait while arXiv metadata harvest runs?**

arXiv metadata harvest runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

**Which research fields does arXiv cover?**

arXiv covers eight areas, including physics, mathematics, computer science, economics, and quantitative finance. Its coverage is bounded by those subject areas.

**How fresh are arXiv records?**

New public announcements normally appear Sunday through Thursday, with none on Friday or Saturday. The bulk metadata service adds new article metadata daily.

**Does appearing on arXiv mean a paper passed peer review?**

No. arXiv checks submissions through moderation, but that process is separate from peer review.

**Can I collect metadata for all of arXiv?**

The OAI-PMH service provides metadata for all arXiv articles and is the preferred route for keeping a bulk copy current. Subject sets let you restrict collection to a category, archive, or broader discipline.

**Does a harvesting date range identify papers submitted during that period?**

No. Harvesting dates follow metadata modifications, so older papers can appear when their records change. They cannot reliably produce a count of papers originally submitted in a particular month.

