InCloseMail

AI agents

Filing mail, writing rules and sorting folders by hand is a chore. An AI agent such as Claude can do it for you: connect it to InCloseMail and it can read and search the mailboxes you choose, draft replies, translate mail written in other languages, and propose folders, rules and cleanups. You see every proposed change with the agent’s reason, and nothing changes until you click Apply. Undo puts it all back.

It works with Claude Desktop, Claude Code, Codex and any other AI app that uses the Model Context Protocol (MCP). InCloseMail never sends mail for an agent.

Turn it on

  1. Open File → Options → AI Agents.
  2. Check Let AI agents on this PC read my mail through InCloseMail.
  3. Under Mailboxes they may use, uncheck any mailbox the agent should stay out of: for example, an added account or a shared mailbox.
  4. Let them save drafts in Drafts for me to check and send is checked, so the agent can write drafts for you. Uncheck it if you don't want that.
  5. Click OK.

It’s off until you turn it on, and it works only while InCloseMail is open, only for you on this PC.

Connect your AI app

In the same place, InCloseMail gives you what your AI app needs. Either way, the app starts InCloseMail’s small agent bridge, which connects it to the InCloseMail you have open. InCloseMail keeps the bridge in your AppData folder, where updates don’t touch it, so your AI app stays connected while InCloseMail updates and picks up again when it starts.

Claude Code: one click

  1. Click Connect Claude Code. InCloseMail shows a short message, already filled in for your PC.
  2. Click Copy Message, paste it into Claude Code (the app or the terminal) and send it. Claude sets up the connection and checks that it works.
  3. Start a new session in Claude Code and ask it about your mail.

If you’d rather do it yourself, the message boils down to running this once in a terminal (your path may differ):

claude mcp add --scope user inclosemail -- "C:\Users\you\AppData\Local\InCloseMail\AgentBridge\InCloseMail.AgentBridge.exe" --mcp

Codex: one click

  1. Under Connect Codex, InCloseMail shows a short message, already filled in for your PC.
  2. Click Copy Message below it, paste it into Codex (the app, the terminal or the editor extension) and send it. Codex sets up the connection and checks it. It changes Codex’s settings, so Codex may ask you to approve the command.
  3. Start a new session in Codex and ask it about your mail. Typing /mcp there lists InCloseMail’s tools.

If you’d rather do it yourself, run this once in a terminal (your path may differ):

codex mcp add inclosemail -- "C:\Users\you\AppData\Local\InCloseMail\AgentBridge\InCloseMail.AgentBridge.exe" --mcp

Grok: one click

Grok connects through Grok Build, xAI’s own agent for the terminal. To install it, run irm https://x.ai/cli/install.ps1 | iex in PowerShell. It works with a pay-as-you-go API key from console.x.ai (set XAI_API_KEY) as well as with a Grok sign-in, so you don’t need SuperGrok or X Premium.

  1. Under Connect Grok, InCloseMail shows a short message, already filled in for your PC.
  2. Click Copy Message below it, paste it into Grok Build and send it. Grok sets up the connection and checks it with grok mcp doctor inclosemail. It changes Grok’s settings, so Grok may ask you to approve the command.
  3. Start a new session in Grok and ask it about your mail. Typing /mcps there lists InCloseMail’s tools.

Grok Build on your PC is a session of its own: it doesn’t share memory or history with the Grok app, grok.com, X or Grok Bot. Grok Bot and Grok’s apps run on xAI’s computers, so they can’t reach InCloseMail on your PC. If you’d rather do it yourself, run this once in a terminal (your path may differ):

grok mcp add inclosemail -- "C:\Users\you\AppData\Local\InCloseMail\AgentBridge\InCloseMail.AgentBridge.exe" --mcp

Claude Desktop

  1. Click Copy Setup for Claude Desktop in InCloseMail. It puts the settings on the clipboard.
  2. In Claude Desktop, open Settings → Developer → Edit Config. This opens claude_desktop_config.json.
  3. Paste the settings in. If the file already has an mcpServers section, add the inclosemail entry to it rather than pasting a second one.
  4. Save the file and restart Claude Desktop. InCloseMail then shows in its list of connectors.

The settings look like this (your path may differ):

{
  "mcpServers": {
    "inclosemail": {
      "command": "C:\\Users\\you\\AppData\\Local\\InCloseMail\\AgentBridge\\InCloseMail.AgentBridge.exe",
      "args": [ "--mcp" ]
    }
  }
}

Other AI apps

Any app that can start a local MCP server can use InCloseMail: give it the command InCloseMail.AgentBridge.exe (in %LOCALAPPDATA%\InCloseMail\AgentBridge) with the argument --mcp, as in the settings above.

What an agent can do

An agent can never send mail, and it can’t change anything on its own.

Catch up, reply and get ready

The agent reads the mail you let it see, so you can ask about it the way you’d ask an assistant. For example:

For “what haven’t I answered?” InCloseMail gives the agent the open conversations of the last few weeks (two by default, up to 90 days) from every folder, so mail your rules file away counts too, and so does a reply you sent from your phone. It leaves out mail from systems (noreply@ and alerts), mailings, meeting messages and automatic replies.

Drafts wait in Drafts, a reply in the conversation it answers: open one, check it, and send it yourself. The agent can’t send, and it only knows what’s in the mailboxes you checked (not your calendar).

Block cold email

Ask “Block cold email” or “Who’s pitching me that I’ve never talked to?” InCloseMail gives the agent the people outside your company who wrote to you in the last month (from every folder but Junk Email), leaving out anyone you have written to or have in your contacts or Auto-Complete list, and systems such as noreply@. The agent reads their mail and picks the sales pitches. It leaves out anyone who might be a real contact, and suggests unsubscribing from newsletters rather than blocking them.

To block them, it sends a proposal: a rule that moves their mail to Junk Email (or to a folder such as Cold email, if you’d rather look through it), run on your Inbox now. You check the senders and click Apply, and Undo takes it back.

Let it organize your mail

Ask the agent in your own words, for example:

The agent looks first (your folders, rules and mail), then sends one proposal. It can propose:

Review it

InCloseMail opens the proposal in the proposals window, with the agent’s summary at the top and a list of changes. Every proposal that’s still open has a tab there, in the order they came, so p1 is the first tab, then p2, p3; a new one adds a tab and doesn’t move you off the one you’re reading. Close (or Esc) closes the tab you’re on, and the window closes with the last tab. The window’s title says which proposal it is, what it’s about and when it came, for example p3 · File the GitHub status mail · 3:31 AM. Each change says what it does, in plain words, with the agent’s Why. For messages, it shows a few of their subjects.

You can keep working in InCloseMail while the window is open. If you’re in another app when a proposal comes (a game, a video), the proposals window opens behind that app without taking the focus, and it’s there when you come back to InCloseMail.

When your mailbox is full

A mailbox at its size limit refuses to take mail into its folders, so moves and rules that file mail fail (Exchange’s words: “exceeded its storage quota”). The agent can see how full your mailbox is and which folders are largest, and puts the changes that free space first when it’s nearly full.

Undo

After Apply, Undo puts things back as they were:

One exception: when a new rule does more than move or delete mail by sender or subject, InCloseMail runs it as Run Rules Now does, and Undo can’t bring that mail back. The window says so after Apply.

Unsubscribing can’t be taken back: Undo leaves it as it is, and the window says so.

Nothing is ever deleted for good: mail goes to Deleted Items, which you empty yourself.

Clean up your whole account

InCloseMail has tools for tidying by hand: Clean Up My Inbox, the Rules Wizard and Start over with your rules. They still work, but you don’t need them. With an agent connected, you can describe the account you want in a few sentences and let it do the whole job: it reads your folders, rules and mail, works out a plan, and proposes the changes. You only check and apply them.

Why this works well:

Tell it what you want

The more the agent knows about how you work, the better its plan. A good request says what you want to end up with, what matters to you, and what to leave alone. For example:

“Clean up my whole mailbox. I want a short Inbox with only mail from real people and things I have to act on. File everything else into folders by company, under one Companies folder. Status pages and alerts (GitHub, Slack, Atlassian) go in their own folders and are marked as read. Newsletters I haven’t opened in a year can go to Deleted Items. Tidy my rules too: merge the ones that do the same thing and remove ones that file into folders I no longer use. Don’t touch my Clients folder or anything from my accountant. Tell me your plan before you propose anything.”

Shorter requests work too:

How it goes

  1. Ask for the plan first. The agent looks through your folders, rules and mail and tells you what it found and what it would do. Talk it over and change anything you don’t like before it proposes a thing.
  2. Go a step at a time. A big account takes a few proposals: for example, folders first, then rules, then the old mail. Each proposal holds up to 100 changes; each change moves up to 500 messages it names, and for more the agent proposes a change InCloseMail finds the messages for (by date, sender or subject), runs a rule on the folder, or merges the whole folder into another.
  3. Check each proposal in the AI Agent Proposal window, uncheck anything you don’t want, and click Apply. The agent is told what you applied, so it can continue with the next step.
  4. Look at the result in InCloseMail. If a step went wrong, click Undo in its window, or tell the agent what to change.
  5. Empty Deleted Items yourself when you’re happy. Until then nothing is gone.

Afterward, your rules keep new mail where it belongs, as they always have; the agent only wrote them for you. Every month or so, ask it to look again.

Good to know

Translate mail

Got a message in a language you don’t read? Select it in InCloseMail and ask the agent, for example:

The agent reads the message, translates it, and InCloseMail shows the translation in place of the original, in the Reading Pane and in the message’s own window, subject included. A bar above it says who translated it and from what language. Click Show original to see the message as it came, and Show translation to go back.

Nothing in your mailbox changes: the translation is only on your screen, and it lasts until you close InCloseMail. The agent translates into your language unless you ask for another. To reply in the sender’s language, ask it to draft the reply.

Your privacy

Without connecting an app

To use a chatbot in your browser instead, give it text yourself:

For administrators

To keep AI agents off for everyone, use the Turn off AI agents policy (registry value DisableAiAgents, 1, under SOFTWARE\Policies\InCloseMail) in InCloseMail’s Group Policy and Intune templates. File → Options then says your organization has turned them off. Copy for AI and Export for AI stay, as they only make text the person chooses to paste or save. See For administrators.

If it doesn’t work