# Connect Gemini CLI to iReading Room over MCP

Gemini CLI gets your project's new arXiv papers. It calls one read-only tool with your token. It works with a paid Gemini API key, Vertex AI or a company licence. 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-21

## The sheet

- Token: Make one in the app: [Settings, then MCP](https://app.ireadingroom.com/settings/mcp).
- Needs: A paid Gemini API key, Vertex AI or a Gemini Code Assist company licence. Free accounts and Google AI Pro or Ultra plans no longer work. Google moved them to [Antigravity CLI](https://ireadingroom.com/docs/mcp/antigravity.md).
- Keep it: `export RR_TOKEN=<paste the token>`
- Add it:

  ```bash
  gemini mcp add -s user --transport http reading-room \
    https://app.ireadingroom.com/api/mcp \
    --header "Authorization: Bearer ${RR_TOKEN}"
  ```
- Start it: In your project's folder, run `gemini` once and choose **Trust folder**. Then quit Gemini CLI.
- Check: Run `gemini mcp list` in your project's folder. reading-room shows ✓ and Connected.
- Server: `https://app.ireadingroom.com/api/mcp`
- Tool: `get_matches`, read-only
- Time: About 5 minutes
- Checked: 2026-11-21

## 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: *Gemini CLI 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. **Add the server.** Run the Keep it line, then the Add it command, once, in one terminal. These commands are for macOS and Linux. `-s user` saves the server and the token in `~/.gemini/settings.json`, outside your project. Without it, the token goes into your project's `.gemini/settings.json`, where it can be committed.

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

3. **Trust your project's folder.** Start `gemini` in your project's folder. In a folder you don't trust, Gemini CLI turns reading-room off. If it asks "Do you trust the files in this folder?" choose **Trust folder**. If it asks you to sign in, use the plan from the Needs row. Then quit Gemini CLI.
4. **Check it.** Run `gemini mcp list` in that folder. reading-room shows ✓ and Connected. Gemini CLI asks before it calls the tool.

[Gemini CLI's MCP guide](https://geminicli.com/docs/tools/mcp-server/) 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. If Gemini CLI skips the tool, name `get_matches`.

> Check reading-room for today's papers. List the ones worth reading for this project, best first, with one line on why.

## If it fails

- Disabled: `gemini mcp list` says this folder is untrusted. Run it in your project's folder. Still disabled there? Do step 3 again.
- Disconnected: The token is missing, wrong, expired or revoked. Make a new one. Run `gemini mcp remove reading-room -s user`. Then do step 2 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)
