Give AI Agents Eyes: Your Screenshots Over a Local MCP Server
By Roman Resenchuk, , updated
To give AI agents access to screenshots, turn on the MCP server in CloudShots for Mac. Any MCP client, such as Claude Code, Codex, Cursor or Hermes, can then search your synced library, read each screenshot's text, view the image, add tags and mark screenshots as processed. The server runs inside the Mac app, not in a cloud.
CloudShots is the world's first screenshot app with a local MCP server and your own iCloud on Mac, iPad, iPhone and Apple Watch. As far as I could find, no other screenshot app does all of this; if you know one, tell me.
CloudShots is a screenshot app for Mac, iPad and iPhone that reads, names and syncs your screenshots, and I build it in my free time.
Why an agent needs your screenshots
Someone who wrote to me runs a personal AI agent around the clock on a Mac mini. Whenever they see an article, an idea or a product on their iPhone, they take a screenshot. Those screenshots are a pile of things to read later, and the agent that could read them had no way to see them.
They asked for three things. The screenshots should reach the Mac on their own, with no extra automation. They should be named and tagged on the device. And the agent should be able to find the new ones, pull out the useful part, write a note, save the link and file it all.
That is a good description of the job, so I built the missing piece. Your agent gets eyes on the library you already have.
What an agent can do with your library
The iPhone side needs nothing new. CloudShots imports your screenshots from Mac, iPad, iPhone and Apple Watch, reads the text in them, names them with Smart Names on the device, and syncs them to your Mac through your own iCloud. The sync guide shows how that works.
With the server on, an agent can search the library by the words inside screenshots, by their names and summaries and by your tags, with dates such as "last week" in the query. It can page through the library, open one screenshot to read its full text and the links, codes and emails found in it, and fetch the image itself. It can rename a screenshot, add or remove tags on up to 200 screenshots at once, and mark up to 200 as processed or not processed. It can list your tags with how many screenshots hold each.
The processed mark is the important part for a pipeline. An agent can ask for the screenshots that are not processed yet, work through them and mark each one when done, so the next run starts where the last one stopped.
Tags and processed marks sync like any edit you make yourself, so your iPhone shows what the agent did. The agent can move a screenshot to the Trash and restore it from there. It cannot delete anything permanently.
How to connect an AI agent to your screenshots, step by step
- Update to a CloudShots build that has the server. Today that is the TestFlight beta of the Mac app.
- Open Settings, then AI & Integrations, and find the MCP card.
- Switch on "Allow AI agents to use your library". The status reads "Running on port 47819".
- For Claude Code, press "Copy Claude Code command" and run it in your terminal.
- For another MCP client, press "Copy JSON config" and paste it into that client's MCP settings. "Copy Address" and "Copy Access Key" give you the two values separately.
- Ask your agent to list your tags. If it answers, it is connected.
The card also shows the last client that connected. "Reset Key" makes a new access key and cuts off every agent that still has the old one.
A prompt for the pipeline
Here is the pipeline from the person who wrote to me, as a prompt you can give to an agent that can write notes:
`` Use the cloudshots MCP server. Find my screenshots that are not processed yet, newest first. For each one, read its details. If the text is not enough, look at the image. Write a short note with the title, the main points and any link found in it, and save it in my notes. Then add one tag that says what it is, like article, idea or product, and mark the screenshot as processed. When you finish, tell me how many you filed. ``
The agent calls the search with the processed filter set to false, opens each result, writes the note with its own tools, and then updates the tag and the mark. Saving the note is the agent's job, not CloudShots'. CloudShots gives it the library and records what has been done.
What stays on your Mac
The server listens on 127.0.0.1 only, so no other machine can reach it. Every request needs the access key, which lives in your Keychain. It is off until you switch it on, it works only while CloudShots runs on your Mac, and it is not available on iPhone or iPad.
Screenshots you marked Private are never returned by any tool, and locked screenshots are never returned either. The library is never uploaded to a CloudShots server, because the server is the Mac app itself, and there is no cloud MCP endpoint.
One limit worth knowing: when an agent reads a screenshot, the text and the picture go to whichever model that agent uses. Connect only agents you trust with what you screenshot. The page on connecting AI agents covers the setup in more detail.
FAQ
How do I give AI agents access to my screenshots?
Open Settings, then AI & Integrations, and switch on "Allow AI agents to use your library" in CloudShots for Mac. Then copy the Claude Code command or the JSON config from the same card into your agent.
Which agents can use it?
Any MCP client that can reach a local HTTP server with an authorization header, for example Claude Code, Codex, Cursor or Hermes. CloudShots gives you a ready command for Claude Code and a JSON config for other clients.
Can an agent delete my screenshots?
No. CloudShots lets an agent move a screenshot to the Trash and restore it, but no tool deletes permanently. That stays with you.
Does it work when my Mac is asleep or I quit CloudShots?
No. The server runs inside the CloudShots Mac app, so CloudShots has to be running. For an agent that works around the clock, that means a Mac, like a Mac mini, where CloudShots stays open.
Transcript
On-screen text: CloudShots: the world's first screenshot app with a local MCP server and your own iCloud on Mac, iPad, iPhone and Apple Watch. Give your AI agents eyes. Your AI agent can't see your screenshots. Every article, idea and product you screenshot on iPhone sits there, unread. CloudShots syncs them to your Mac through your own iCloud. Turn on one switch: Allow AI agents to use your library. Claude Code, Codex, Cursor, Hermes: any MCP client can search the words inside. It reads the text, looks at the image, adds a tag, marks it processed. Edits sync back to every device. Private screenshots never reach it. The server runs inside the Mac app. No CloudShots server in between.
More guides
- How to automatically sync screenshots between Mac, iPhone and iPadOne private screenshot history that syncs both ways through iCloud: Mac to iPhone and iPad, and back.
- How to find a screenshot by the text inside itSearch by the words you remember seeing, on any of your devices.
- How to free up the space your screenshots takeClear synced originals from Photos and your Mac without losing your history.
- CloudShots is an iCloud screenshot manager for Mac, iPhone and iPadWhat lives in your own iCloud, how the library limit works, and what stays private.
- How to connect an AI agent to your CloudShots library on MacSwitch on the local MCP server on Mac and add it to Claude Code, Codex or the ChatGPT desktop app.
- Keyboard shortcuts on MacEvery CloudShots keyboard shortcut on Mac, from the capture keys that work anywhere to the panel, Quick Look and the editor, and how to change them in Settings.
- One screenshot history for your Mac, iPhone and iPadOne searchable history of every screenshot from your Mac, iPhone and iPad, synced through your own iCloud. Find any shot and free up storage.
- How to pin a screenshot on screen on MacKeep a screenshot floating above your other windows on Mac with ⌘P. Pin up to 6, move and resize them, close with Esc.
- How to redact or blur text and faces in a screenshot on MacBlur, pixelate or cover text, faces and objects in a screenshot on Mac. Redaction in CloudShots is non-destructive: your original stays untouched.
- How to add a background, padding and shadow to a screenshot on MacExport a Mac screenshot with a background, padding, rounded corners and a shadow using Export with Frame in CloudShots. Copy, save or share the result.
- CloudShots compared with a premium all-in-one capture suiteHow CloudShots compares with a premium, paid all-in-one capture and annotation suite for Mac: history, text search, redaction and pricing.
- CloudShots compared with a floating screenshot toolHow CloudShots compares with a floating, pin-on-screen screenshot tool with a quick library: history, text search, redaction and pricing.
- CloudShots compared with a fast capture and text-recognition utilityHow CloudShots compares with a fast, lightweight capture utility with on-screen text recognition: history, text search, redaction and pricing.
- All guides
TestFlight includes Pro for beta testing. No purchase is required or charged.