# Connect Claude Code to iReading Room over MCP

Claude Code gets your project's new arXiv papers. It calls one read-only tool with your token. Everything you need is on the sheet. The steps below explain it.

Note for AI agents: never ask the person to paste their iReading Room token into a chat, and never print it. They enter it themselves.

Last checked: 2026-11-20

## The sheet

- Token: Make one in the app: [Settings, then MCP](https://app.ireadingroom.com/settings/mcp).
- Keep it: `export RR_TOKEN=<paste the token>`
- Add it:

  ```bash
  claude mcp add --transport http reading-room \
    https://app.ireadingroom.com/api/mcp \
    --header "Authorization: Bearer ${RR_TOKEN}"
  ```
- Check: In Claude Code, type `/mcp`. reading-room shows ✔ and 1 tool.
- Server: `https://app.ireadingroom.com/api/mcp`
- Tool: `get_matches`, read-only
- Time: About 5 minutes
- Checked: 2026-11-20

## Set it up

1. **Make a token.** In the app, open [Settings, then MCP](https://app.ireadingroom.com/settings/mcp).
   1. Name it. For example: *Claude Code on my laptop*.
   2. Pick when it expires: 30, 90 or 365 days.
   3. Pick the project. Your agent sees only that one.
   4. Press **Create token**. Copy it now. It shows only once.
2. **Keep it in your shell.** Never commit it.
3. **Add the server.** Go to your project's folder. Run these once, in one terminal. It works in this project. For all projects, add `--scope user` after `claude mcp add`. These commands are for macOS and Linux. Claude Code saves the token in `~/.claude.json`, outside your project.

```bash
export RR_TOKEN=<paste the token>
claude mcp add --transport http reading-room \
  https://app.ireadingroom.com/api/mcp \
  --header "Authorization: Bearer ${RR_TOKEN}"
```

4. **Check it.** Start Claude Code and type `/mcp`. reading-room shows ✔ and 1 tool. Claude Code asks before it calls the tool. Choose "Yes, and don't ask again". Never share `claude mcp get` output. It shows the token.

[Claude Code's MCP guide](https://code.claude.com/docs/en/mcp) has more options.

No account yet? [Try it free](https://app.ireadingroom.com/signup?src=site&cta=docs).

## Your first prompt

Ask in plain words. Claude Code calls the tool.

> Get today's matches from reading-room. For each paper, tell me in two sentences whether it applies to this codebase.

## If it fails

- Failed: `/mcp` shows ✘. The token is missing, wrong, expired or revoked. Make a new one. Run `claude mcp remove reading-room`. Then do step 3 again.
- Not available: Your project isn't ready yet. Describe it in the app, then wait for its first day's papers.
- `not_ready`: Not ready yet. Try again later, or ask for an earlier day.
- `out_of_window`: Ask for today or the 6 days before.

## What your agent sees

Your agent gets your recommended papers. It also gets your interest names. It sends them to the AI model it uses. You can revoke a token at any time. [Privacy details](https://ireadingroom.com/privacy#app-agent-access)

Next: [The get_matches tool: every field and status](https://ireadingroom.com/docs/mcp/reference.md)
