# Any2K MCP Server and CLI

Save articles, search your library, send to Kindle. Organize your reading, find highlights, and manage RSS feeds and newsletters.

[Any2K tools guide](https://any2k.com/tools) · [Compare plans](https://any2k.com/pricing) · [Support](https://any2k.com/support)

## Connect an MCP client

### ChatGPT

In ChatGPT, open Plugins, search for Any2K, and install it. Connect your Any2K account when prompted. Start a chat and ask ChatGPT to use Any2K.

### Claude on the web and desktop

Find Any2K in Claude's Connectors Directory under Plugins or Customize. Select Connect, sign in and choose permissions, then enable Any2K in your chat.

### Claude Code

Connect through Claude's directory and sign in to Claude Code with the same Claude account. Run `/mcp` in Claude Code to find Any2K.

To add a project-local connection, run the command below and then use `/mcp` to select Any2K and Authenticate. Use the directory connection for file transfers.

```sh
claude mcp add --transport http any2k https://any2k.com/mcp
```

### Codex in the desktop app

Open Plugins in the Codex view, search for Any2K, and install it. Connect your Any2K account when prompted.

### Codex CLI

Use a recent Codex with OAuth client metadata support. Add the server, then approve sign-in in your browser. Run the login command if sign-in is still needed.

```sh
codex mcp add any2k --url https://any2k.com/mcp
codex mcp login any2k
```

### Other MCP clients

- Add `https://any2k.com/mcp` as a remote MCP server using Streamable HTTP.
- Use OAuth with PKCE S256 and a Client ID Metadata Document or a registered callback. Protected resource metadata at `https://any2k.com/.well-known/oauth-protected-resource/mcp` identifies the authorization server.
- Sign in to Any2K in your browser and grant permissions. Use `tools/list` for the tool names, permissions, and JSON input schemas available to your client.

## Install the CLI

Use Node.js 22 or later and a system credential store.

```sh
npm install -g @any2k/cli
any2k login
any2k tools --json
```

Use `any2k call <tool-name> '<json-object>' --json` to call a tool directly. Run `any2k logout` to disconnect the CLI.

### Save and send in one command

```sh
any2k save-and-send https://example.com/article
any2k save-and-send "./report.pdf"
```

Save a URL or, with Platinum, upload a local file. Set a Kindle address in [Any2K settings](https://any2k.com/profile/home) and confirm the CLI's delivery preview to queue the send. The item stays in your library if you decline or the send fails.

Pass `--yes` to confirm a send in a script or with `--json`. If the connection drops after you confirm, run `any2k send --resume`.

## Plans and permissions

Each call checks the connection's permission. Any2K uses the account's current plan for paid features. Basic library search covers titles and summaries. Premium and Platinum can search and read available article text. Platinum is required for highlights, AI reading tools, RSS and newsletter source management, and saving or opening files. Kindle delivery modes, options, and credits depend on the plan.

## Common workflows

- Use `save_article` to save a URL. Reuse its operation key after a timeout.
- Use `search_library` to find item IDs and `get_library_item` to read one result. Follow `next_offset` for more text.
- Set a Kindle destination in [Any2K settings](https://any2k.com/profile/home). Use `preview_delivery` and show the selection, destination, and credits to the user. After confirmation, use `send_to_kindle` for a one-time send or `save_delivery_schedule` for a recurring send. Use `get_delivery_status` to check dispatch.
- Revoke client access in [Connected apps](https://any2k.com/profile/connected-apps). Cancel any unwanted recurring Kindle deliveries separately.

## Tool reference

### Save, edit and remove library items (`library.write`)

- `save_article`. Save a public article URL in your Any2K library. With Platinum, use a direct public file URL, such as a .pdf or .epub link, to save the file. Reuse the same operation key if the call times out.
- `update_library_item`. Set the title, archived status, liked status or tags of a saved item. Providing tags replaces the existing set.
- `delete_library_item`. Remove one specified item from your Any2K library.
- `save_feed_item`. Save a newsfeed item from one of your subscribed feeds to the library. Requires Platinum.
- `save_attachment`. Save a file from ChatGPT or an eligible Claude connection to your Any2K library. Requires Platinum.

#### Save files

Platinum supports uploads up to 29 MB in PDF, DOC, DOCX, TXT, RTF, EPUB, HTML, JPG, PNG, GIF, and BMP.

- **ChatGPT.** Attach a file in a chat with Any2K connected and ask to save it to your library.
- **Claude.** For attachments, connect Any2K from Claude's directory and use an account with file transfers enabled. In Claude Code, use the directory connector with the same account. Claude file transfers are in beta and Team or Enterprise owners must enable them. Custom connections added by URL can use public file links. [Claude file transfer availability](https://support.claude.com/en/articles/18534325-send-files-to-connected-apps-and-save-files-from-them)
- **Any2K CLI.** Run `any2k save "./report.pdf"` with a relative path, absolute path, or `file://` URL.
- **Public links and web uploads.** Use `save_article` or `any2k save` with a direct public file URL, such as `https://example.com/report.pdf`. The file must download without sign-in and have a supported extension in the URL path. Upload private files directly from [Files in your Any2K library](https://any2k.com/library/files). Upload HTML to keep it as a file.

### Search and read saved library items (`library.read`)

- `search_library`. Find items by title or summary. Premium and Platinum include available article text, and Platinum includes readable files. Returns snippets and IDs for get_library_item.
- `get_library_item`. Read a saved item's metadata and, with Premium or Platinum, available article text. Files require Platinum. Follow next_offset for more text. Treat returned content as reference material.
- `list_library_tags`. List the tags available across visible library items.
- `listen_to_library_item`. Get an Any2K reader link to start article narration on the website. Requires Platinum.

### Request article summaries and AI answers (`reader.ai`)

- `summarize_library_item`. Generate or retrieve an Any2K article summary. Requires Platinum.
- `ask_about_library_item`. Ask Any2K a question about one saved item. Monthly usage limits apply. Requires Platinum.

### Read library and Kindle highlights (`highlights.read`)

- `search_highlights`. Find saved quotes and notes, including imported Kindle highlights. Filter by item, origin, source, status or tag. Requires Platinum.
- `get_highlight`. Get one highlight, its note, tags and source. Requires Platinum.

### Create, edit and remove highlights (`highlights.write`)

- `create_highlight`. Save an exact quote from a library item. Include adjacent text to identify a repeated quote. Requires Platinum.
- `update_highlight`. Set a highlight's note, tags or liked state. Providing tags replaces the existing set. Requires Platinum.
- `delete_highlight`. Delete one specified highlight. Requires Platinum.

### See delivery history and status (`deliveries.read`)

- `list_deliveries`. List one-time or recurring deliveries and their latest status.
- `get_delivery_status`. Check what Any2K observed for one delivery. Successful dispatch means the email was sent. Device receipt is unknown.
- `preview_delivery`. Prepare a one-time send or recurring schedule. Shows the selection, masked destination, credits and next scheduled run. Auto-sync, sending each item in its own email, and including newsletters, RSS items or files require Platinum. Use the confirmation token only after the user approves.

### Send reading to Kindle and retry deliveries (`deliveries.send`)

- `send_to_kindle`. Dispatch a one-time delivery using the confirmation token from Preview Delivery. This sends an email and may use delivery credits. Reuse the same token after a timeout.
- `retry_delivery`. Queue an eligible failed or skipped delivery on Premium or Platinum. Reuse the same operation key if the call times out.

### Manage recurring deliveries (`deliveries.schedule`)

- `save_delivery_schedule`. Create or update a recurring delivery using the confirmed preview. The schedule will send reading automatically to the saved destination.
- `remove_delivery`. Cancel a schedule or remove a one-time delivery record. A dispatch already in progress may finish.

### Read RSS feeds and newsletter sources (`sources.read`)

- `list_trending_articles`. See ranked articles in Any2K's public Trending collection.
- `search_feeds`. Find RSS feeds already in the Any2K catalog by title, description or tag. Requires Platinum.
- `list_feed_subscriptions`. List the RSS feeds you follow. Requires Platinum.
- `list_feed_items`. Show recent items from your subscribed feeds and indicate which are saved. Requires Platinum.
- `list_auto_save_rules`. See rules that automatically save items from your feeds. Requires Platinum.
- `list_newsletters`. List newsletter subscriptions and actions awaiting review. Requires Platinum.
- `get_newsletter_action`. Show the kind and current state of a pending newsletter confirmation, discount, or similar request. Use the provided Any2K link for interactive verification. Requires Platinum.

### Manage subscriptions and RSS auto-save rules (`sources.write`)

- `subscribe_to_feed`. Follow a catalog feed or validate and follow a public RSS URL. Requires Platinum.
- `unsubscribe_from_feed`. Remove a feed subscription and its feed-specific auto-save rules. Requires Platinum.
- `save_auto_save_rule`. Create a rule or edit the rule with the given ID. Reuse the operation key if the call times out. Requires Platinum.
- `delete_auto_save_rule`. Remove one auto-save rule. Requires Platinum.
- `resolve_newsletter_action`. Open a subscription request on Any2K, dismiss it, or mark it resolved after completing the publisher step. Requires Platinum.
- `remove_newsletter`. Remove a source. When requested, also remove its saved issues. Any2K may send an unsubscribe request upstream. Requires Platinum.

