---
title: "An AI Agent on a Company Inbox: How I Set It Up"
description: "First-hand account: I connected an AI agent to our company inbox through an MCP server — the install, the first tests and what it dug out on day one."
url: "https://it-deweloper.pl/en/blog/ai-email-agent-setup"
date: "2026-09-21T15:11:23+00:00"
language: "en-GB"
---

[Skip to main content](#tm-main)

- [ Home](https://it-deweloper.pl/en "IT Deweloper web studio home page")
- [Contact](https://it-deweloper.pl/en/contact "Contact the IT Deweloper web studio")
    - [ +48 731 190 041](tel:+48731190041 "Phone")
    - [ office@it-deweloper.pl](mailto:office@it-deweloper.pl "E-mail")
    - [ Nowogródzka 4A, Białystok, Poland](https://maps.app.goo.gl/BNjvryytwRyv4omA7 "Address")
    - [ WhatsApp](https://wa.me/48731190041 "WhatsApp")
    - [ Telegram](https://t.me/+48731190041 "Telegram")
- [Solutions](https://it-deweloper.pl/en/web "IT Deweloper's web development solutions")
    - [How we workStages of work](https://it-deweloper.pl/en/web/process "Website development stages and timelines")
    - [SEOSearch engine optimization](https://it-deweloper.pl/en/web/seo "SEO promotion: optimization, links, positions in Google")
    - [GEOWebsite promotion in AI](https://it-deweloper.pl/en/web/geo "GEO optimization: website promotion in ChatGPT, Gemini and Perplexity answers")
    - [AIArtificial Intelligence on the website](https://it-deweloper.pl/en/web/ai)
    - [JoomlaWebsite Management System](https://it-deweloper.pl/en/web/joomla "Joomla website development")
- [Cost](https://it-deweloper.pl/en/cost "Rates and cost of services")
    - [PricingIndicative website development prices](https://it-deweloper.pl/en/cost/pricing "Website development prices")
    - [CalculatorSelf-service online estimate](https://it-deweloper.pl/en/cost/calculator "Calculate your website cost online")
    - [BriefGet an accurate project quote](https://it-deweloper.pl/en/cost/brief "Fill out the website development brief")
- [Portfolio](https://it-deweloper.pl/en/portfolio "Portfolio and examples of our work")
- [About us](https://it-deweloper.pl/en/about "About the founder — Victor Parhimchik")
- [FAQ](https://it-deweloper.pl/en/faq "Frequently asked questions about website development")
- [Blog](https://it-deweloper.pl/en/blog "Articles on website development and promotion")
- [ Русский ](https://it-deweloper.pl/ru/blog/ai-email-agent-setup)
- [ Polski ](https://it-deweloper.pl/pl/blog/ai-email-agent-setup)
- [ Беларуская ](https://it-deweloper.pl/be/blog/ai-email-agent-setup)
- [ English ](https://it-deweloper.pl/en/blog/ai-email-agent-setup)

  <a class="uk-search-toggle uk-display-block" href="/" uk-search-icon=""></a>

- <a href="/"> ![](https://it-deweloper.pl/templates/yootheme/assets/images/language.svg)  English  </a>
    - [ Русский ](https://it-deweloper.pl/ru/blog/ai-email-agent-setup)
    - [ Polski ](https://it-deweloper.pl/pl/blog/ai-email-agent-setup)
    - [ Беларуская ](https://it-deweloper.pl/be/blog/ai-email-agent-setup)
    - [ English ](https://it-deweloper.pl/en/blog/ai-email-agent-setup)

 [ ![IT-Deweloper](https://it-deweloper.pl/images/Faviocon.svg)![IT-Deweloper](https://it-deweloper.pl/images/Logo-light.svg)](https://it-deweloper.pl/en) [ Menu

 ](#tm-dialog)

- [ Home](https://it-deweloper.pl/en "IT Deweloper web studio home page")
- [Contact](https://it-deweloper.pl/en/contact "Contact the IT Deweloper web studio")
    - [ +48 731 190 041](tel:+48731190041 "Phone")
    - [ office@it-deweloper.pl](mailto:office@it-deweloper.pl "E-mail")
    - [ Nowogródzka 4A, Białystok, Poland](https://maps.app.goo.gl/BNjvryytwRyv4omA7 "Address")
    - [ WhatsApp](https://wa.me/48731190041 "WhatsApp")
    - [ Telegram](https://t.me/+48731190041 "Telegram")
- [Solutions](https://it-deweloper.pl/en/web "IT Deweloper's web development solutions")
    - [How we workStages of work](https://it-deweloper.pl/en/web/process "Website development stages and timelines")
    - [SEOSearch engine optimization](https://it-deweloper.pl/en/web/seo "SEO promotion: optimization, links, positions in Google")
    - [GEOWebsite promotion in AI](https://it-deweloper.pl/en/web/geo "GEO optimization: website promotion in ChatGPT, Gemini and Perplexity answers")
    - [AIArtificial Intelligence on the website](https://it-deweloper.pl/en/web/ai)
    - [JoomlaWebsite Management System](https://it-deweloper.pl/en/web/joomla "Joomla website development")
- [Cost](https://it-deweloper.pl/en/cost "Rates and cost of services")
    - [PricingIndicative website development prices](https://it-deweloper.pl/en/cost/pricing "Website development prices")
    - [CalculatorSelf-service online estimate](https://it-deweloper.pl/en/cost/calculator "Calculate your website cost online")
    - [BriefGet an accurate project quote](https://it-deweloper.pl/en/cost/brief "Fill out the website development brief")
- [Portfolio](https://it-deweloper.pl/en/portfolio "Portfolio and examples of our work")
- [About us](https://it-deweloper.pl/en/about "About the founder — Victor Parhimchik")
- [FAQ](https://it-deweloper.pl/en/faq "Frequently asked questions about website development")
- [Blog](https://it-deweloper.pl/en/blog "Articles on website development and promotion")

  [ IT Deweloper Blog ](https://it-deweloper.pl/index.php?option=com_content&view=category&id=29&lang=en-GB "IT Deweloper Blog")

#  An AI Agent on a Company Inbox: How I Set It Up

Our studio's inbox drowns in adverts and cold offers just as thoroughly as anyone else's. I wanted to find out in practice whether an AI agent plugged straight into the mailbox over the MCP protocol really takes that routine off your hands, or merely sounds good in a product description. Here is how it actually went: the install, the first tests and the thing it turned up on day one.

---

![Email logo with an AI check mark — installing an AI agent on a working mailbox](https://it-deweloper.pl/images/AI/ai-email-agent-cover-v2.webp#joomlaImage://local-images/AI/ai-email-agent-cover-v2.webp?width=1200&height=1200)

### Choosing the tool

Out of several MCP servers for email I picked **mcp-server-email** — written in Go, works over IMAP/SMTP, open source. The deciding argument: you can spell out the mail server's host and port explicitly, instead of only picking "Gmail/Outlook/Yahoo" from a list. For company mail that lives on your own hosting rather than in Google Workspace, that is the only option that does not need workarounds.

### Installing it

No building from source — the releases page already carries a ready binary for Windows. I downloaded the archive, checked the checksum (literally one command, but it is the one that separates "installed it" from "installed it and let a trojan in wearing a tool's clothing") and unpacked it. There was no need to install the whole Go toolchain, just the executable.

After that: a config file with the mail account details in JSON, and registering the server in the Claude Code settings (an ordinary entry in the MCP server config, where the command is the path to the exe). Then the application itself has to be restarted — the server's tool list is only picked up at start-up, never on the fly.

### Connection details: check DNS instead of guessing

The most common mistake at this step is trying to guess the mail server's name or hunting for it in the hosting panel. The shorter route: the domain's MX record tells you straight away which platform handles the mail, and that platform's own IMAP/SMTP hosts usually sit on predictable subdomains. While you are at it, test the ports with a plain TCP connection rather than trusting the documentation — 993 and 587 were open for me and 25 was closed, which immediately settled which TLS mode to use.

One security moment stood out. The script that was meant to fetch the mailbox password (from an already configured mail client of another system) and write it into the config was stopped by Claude Code's own safety mechanism: writing a password into a file autonomously counted as too sensitive an action. Fair enough — the password ended up being typed in by a human rather than a script. A neat illustration that guard-rails like that are not a bug, but exactly what they exist for.

### The first test — a live handshake, not the documentation

Before trusting a tool, it is worth making sure it genuinely works rather than merely starts. I sent the MCP handshake by hand (`initialize` → `tools/list`) straight over stdio, with no client in between — the server answered correctly and returned exactly 22 tools, as advertised: folder listing, reading, search, sending, replies, forwarding, drafts, batch operations. Then a real call with real credentials: the IMAP connection went through and the server returned the actual structure of the mailbox.

That structure was a surprise: hundreds of separate folders of the form `Archives.<sender>` — the mail panel, it turned out, files every new sender into a personal folder of their own. Tidy, but as it emerged later, that mechanism has an unpleasant side effect.

### What it found on day one

Among dozens of messages in the SPAM folder — solid cold outreach from SEO agencies and advertising outfits — the agent pulled out one that was there by mistake: a reply to a job advert, with a portfolio on a personal site. Nothing malicious, ordinary correspondence, simply lost among the spam and quite possibly left unopened for another week. One command and the message was back in the inbox. That is precisely what made the experiment worth running: not a "clever chatbot", but a tool that genuinely saves your attention.

### Round two: "why is spam still coming through?"

A day later came the feedback: the spam keeps arriving regardless. Digging in showed the spam filter itself was not at fault — it worked as intended, and fresh messages did land in SPAM. The problem was that automatic filing into `Archives.*` folders: it intercepted mail before the spam filter and tucked even blatant spam into personal folders, including a campaign selling fake Google reviews from a fresh throwaway domain for every message.

At this point the MCP server was out of the picture — it does not touch the mail server's filters, only the messages themselves. I had to go into the mail web panel directly and find the real blocking mechanism. It turned up in two places: an ordinary Sieve filter (move on the condition "sender contains domain") and, more importantly, a built-in blacklist that rejects at delivery — mail from domains listed there never reaches the mailbox at all. I added several domains that had been re-sending the same letter every two to four weeks; the front-runner sent seven messages in three weeks, each under a different pretext.

### What I took away from the experiment

- **MCP servers for email are not just a "reader".** The full set of operations is there: reading, sending, moving, flagging, drafts. If a tool looks like it "can only look", chances are nobody got round to trying the rest of its functions.
- **Real connection details are found, not guessed.** DNS and a plain TCP connection are more reliable than any hosting documentation.
- **An existing platform often already has the mechanism you need.** Before writing your own filter, check whether a built-in panel feature solves it — here it did.
- **Guard-rails around passwords and system settings are protection, not an obstacle.** The moment the automation refused to write sensitive data into a config file by itself was not a bug, but exactly the behaviour you want from a tool with access to real infrastructure.

If you want the same for your own mail — without working through MCP servers and Sieve filters yourself, and with a configured result handed over ready — the studio offers it as a service: [an AI agent for your company inbox](https://it-deweloper.pl/en/web/ai/ai-corporate-email-agent).

21 September 2026 | [Victor Parhimchik](https://it-deweloper.pl/index.php?option=com_contact&view=contact&id=1&catid=4) | [IT Deweloper Blog](https://it-deweloper.pl/index.php?option=com_content&view=category&id=29)

 [ ![Email logo with an AI check mark — an AI agent sorting a company's incoming mail](https://it-deweloper.pl/images/AI/ai-email-agent-cover-v2.webp#joomlaImage://local-images/AI/ai-email-agent-cover-v2.webp?width=1200&height=1200)

### An AI Agent on a Company Inbox: How I Set It Up

Our studio's inbox drowns in adverts and cold offers just as thoroughly as anyone else's. I wanted to find out in practice whether an AI agent plugge…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=159:ai-email-agent-setup&catid=29&lang=en-GB)

 [ ![Search Console, an MCP server and an AI assistant linked in a chain on a workstation screen](https://it-deweloper.pl/images/blog/google-search-console-mcp-cover.webp#joomlaImage://local-images/blog/google-search-console-mcp-cover.webp?width=1200&height=1200)

### How I Connected Google Search Console to Claude with MCP

In September 2026 I connected my site’s Google Search Console to Claude through an MCP server. The trigger was mundane: junk URLs were sitting in the…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=135:google-search-console-mcp&catid=29&lang=en-GB)

 [ ![Illustration: wiring Google Keyword Planner into AI](https://it-deweloper.pl/images/blog/keyword-planner-mcp-setup-cover.webp#joomlaImage://local-images/blog/keyword-planner-mcp-setup-cover.webp?width=1600&height=1000)

### Wiring Google Keyword Planner into AI: the unfiltered version

I wanted Claude to pull real Google keyword data directly — search volume, competition, click forecasts — instead of guessing. Here's an honest accou…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=142:keyword-planner-mcp-setup&catid=29&lang=en-GB)

 [ ![An anonymous installer and a profile with no track record lead either to a safe tool or to a threat](https://it-deweloper.pl/images/blog/ai-tool-security-check.webp#joomlaImage://local-images/blog/ai-tool-security-check.webp?width=1200&height=1200)

### AI Access to Your Site and Computer: Tool or Threat?

In autumn 2026, dozens of modules are appearing at once that give AI assistants direct access to a computer, website and inbox — they're called MCP s…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=124:ai-tool-security-check&catid=29&lang=en-GB)

 [ ![Two website windows and a forking path with arrows: choosing between two content management systems](https://it-deweloper.pl/images/blog/joomla-vs-wordpress-cover.webp#joomlaImage://local-images/blog/joomla-vs-wordpress-cover.webp?width=1200&height=1200)

### Joomla vs WordPress in 2026: an honest comparison

WordPress runs 40.7 % of all websites in the world. Joomla runs 1.1 %. A fortyfold difference. And yet the site you are reading right now is built on…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=119:joomla-vs-wordpress&catid=29&lang=en-GB)

 [ ![Five access channels to a website: CMS, files, database, browser and project memory](https://it-deweloper.pl/images/blog/claude-joomla-integration-cover.webp#joomlaImage://local-images/blog/claude-joomla-integration-cover.webp?width=1200&height=1200)

### Connecting Claude to a production Joomla site

On 8 September 2026 our website gained nineteen new articles in four languages — with structured data, language links and meta tags. In a single work…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=115:claude-joomla-integration&catid=29&lang=en-GB)

 [ ![A checklist of website requirements, a consent banner with two buttons and a data protection shield](https://it-deweloper.pl/images/blog/company-website-legal-requirements-cover.webp#joomlaImage://local-images/blog/company-website-legal-requirements-cover.webp?width=1200&height=1200)

### A company website in Poland: what the law requires

A company website in Poland is not just design and copy. There is a set of things that must be on it: company details in a defined scope, a privacy p…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=111:company-website-legal-requirements&catid=29&lang=en-GB)

 [ ![Facts from a company website feed into an AI assistant answer listing firms](https://it-deweloper.pl/images/blog/ai-answers-about-your-company-cover.webp#joomlaImage://local-images/blog/ai-answers-about-your-company-cover.webp?width=1200&height=1200)

### What AI says about your company: a half-hour check

Customers scroll through ten blue links less and less. They ask ChatGPT "who builds websites in Warsaw", or they see Google's ready-made answer above…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=107:ai-answers-about-your-company&catid=29&lang=en-GB)

 [ ![An invoice with the NIP field highlighted passes into the state system with a QR code](https://it-deweloper.pl/images/blog/ksef-sklep-strona-cover.webp#joomlaImage://local-images/blog/ksef-sklep-strona-cover.webp?width=1200&height=1200)

### KSeF: what your website and shop must handle

KSeF is discussed as an accounting topic, but most of the work lands on the website. It is the shop that has to recognise whether a business or a con…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=103:ksef-sklep-strona&catid=29&lang=en-GB)

 [ ![A website screen with the accessibility symbol, a focus outline and the Tab key](https://it-deweloper.pl/images/blog/website-accessibility-law-cover.webp#joomlaImage://local-images/blog/website-accessibility-law-cover.webp?width=1200&height=1200)

### Website accessibility law in Poland: who it covers

Since 28 June 2025 Poland has had a law that requires some companies to make their websites usable by people with disabilities. The fine goes up to t…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=99:website-accessibility-law&catid=29&lang=en-GB)

 [](#)

 [](#)

   ##  Build your website

Find out what your website will cost

 [ Pricing ](https://it-deweloper.pl/index.php?Itemid=262&lang=en-GB)

 ![](https://it-deweloper.pl/media/yootheme/cache/3c/background-square-01-3c44c74f.png?src=images/yootheme/demo/background-square-01.png&thumbnail=900,900,&hash=72c31958)

 ![](https://it-deweloper.pl/media/yootheme/cache/cb/background-square-03-cbb341a0.png?src=images/yootheme/demo/background-square-03.png&thumbnail=600,600,&hash=6e9dde93)

###  [ Contact ](https://it-deweloper.pl/index.php?Itemid=277&lang=en-GB)

Web studio IT Deweloper website development, Poland. 5423493188

 SEOAIAdsWebSMM

### Address

Nowogródzka 4A
 Białystok, 15-490, PL

 [

### Phone

+48 731 190 041

 ](tel:+48731190041)

 [

### Email

This email address is being protected from spambots. You need JavaScript enabled to view it.

 ](mailto:office@it-deweloper.pl)

 [

### WhatsApp

 ](https://wa.me/48731190041)

 [

### Telegram

 ](https://t.me/+48731190041)

 Opening hours:

- Monday

    0900–1800
- Tuesday

    0900–1800
- Wednesday

    0900–1800
- Thursday

    0900–1800
- Friday

    0900–1800
- Saturday

    0900–1600
- Sunday

    closed

 ![IT Deweloper](https://it-deweloper.pl/images/Logo.webp)

Web development can be interesting! Our social media, with content about building websites.

- [](https://www.facebook.com/ITdeweloper)
- [](https://www.linkedin.com/company/it-deweloper)
- [Portfolio](https://it-deweloper.pl/index.php?Itemid=264&lang=en-GB)
- [Contact](https://it-deweloper.pl/index.php?Itemid=277&lang=en-GB)
- [About us](https://it-deweloper.pl/index.php?Itemid=261&lang=en-GB)

**it-deweloper** — a web development studio.
We design and build modern websites and online stores.

© [it-deweloper](https://it-deweloper.pl/).
All rights reserved.

[Privacy Policy](https://it-deweloper.pl/index.php?Itemid=313&lang=en)
