cPanel + AI

MCP server for cPanel mail:
every company mailbox, in Claude and ChatGPT

Running info@, sales@, support@ and invoices@ on your own domain on a cPanel host? Connect each mailbox to one workspace and your AI agent works across all of them. Read, search, send, reply, schedule and organize mail with IMAP and your mailbox password, and use the same mailboxes in every MCP client, not just one.

Claude cannot reach cPanel on its own. MCPEmails is a hosted MCP server that connects it over IMAP using your mailbox password, so Claude, Cursor or any MCP client can read, search, send and organize that mail. Setup takes a couple of minutes. Each company address, such as info@ or sales@, connects as its own mailbox: one mailbox is free, Personal connects three, Pro up to 10, and Business as many as you need.

First mailbox free, plans for the rest Your mailbox password, no OAuth setup Email fetched live, never stored

How cPanel connects: IMAP and your mailbox password

A cPanel mailbox, the kind you read in Roundcube or Horde webmail, connects over IMAP/SMTP with the password set in cPanel under Email Accounts. There is no app password and no OAuth. The host is usually mail.yourdomain.com, and cPanel prints the exact values under Email Accounts, Connect Devices, in Mail Client Manual Settings. Use the secure SSL/TLS column, not the plain one.

What your AI can do

A cPanel / WHM inbox your agent can actually use

19 action-based MCP tools: send, reply, forward, schedule, and organize. Your agent finishes the job inside cPanel / WHM.

  1. 01Read

    Read & search mail

    List, read and search across folders to find that invoice, summarize a thread, or pull the latest from a sender.

  2. 02Send

    Send, reply & forward

    Compose and send real messages, reply in-thread, and forward, directly from your mailbox, not as a draft you finish by hand.

  3. 03Schedule

    Schedule for later

    Queue a message to go out at the right time, so your agent can draft now and send on schedule.

  4. 04Organize

    Move, copy, flag, archive, delete

    Keep the inbox tidy: file mail into folders, flag what matters, archive the rest, or delete on request.

Setup

Connect cPanel / WHM in four steps

From sign-up to first AI email in a couple of minutes.

01

Create a free account

Sign up for MCPEmails, no card required. The free plan connects one inbox, forever.

02

Read your settings from cPanel

In cPanel, open Email Accounts and click Connect Devices for the mailbox. Copy the secure IMAP and SMTP hosts and ports from Mail Client Manual Settings. If you do not know the mailbox password, set a new one on the same screen.

03

Paste it into MCPEmails

Choose IMAP / SMTP, add your cPanel address, the hosts above and the password to connect the inbox securely.

04

Paste the MCP URL into your AI

Drop https://mcpemails.com/api/mcp into Claude, Cursor or ChatGPT, authorize, and your agent has the inbox.

ChatGPT

Use cPanel / WHM in ChatGPT

ChatGPT reaches cPanel / WHM through a custom MCP connector. That needs developer mode, which works on chatgpt.com with Plus, Pro, Business, Enterprise and Edu.

  1. Connect cPanel / WHM to MCPEmails with the steps above.
  2. In ChatGPT, open Settings, Apps and Connectors, Advanced settings, and turn on Developer mode.
  3. In Apps and Connectors, click Create, paste https://mcpemails.com/api/mcp as the Connector URL, choose OAuth and sign in to MCPEmails.
  4. In each new chat, click +, choose Developer mode and select your connector.
Several mailboxes

Every cPanel / WHM mailbox your company runs, on one agent

If your company runs more than one address on cPanel / WHM, such as info@, sales@ and invoices@, connect each one to the same MCPEmails workspace. Your AI client then reaches all of them through the one MCP URL, in Claude, ChatGPT, Cursor or any other MCP client. Every tool call names the mailbox it acts on, each mailbox keeps its own sender name and signature, and a reply goes out through the mailbox it belongs to.

Free connects one mailbox, Personal three, Pro up to 10, and Business as many as you need, all on one login.

Before you start

What actually goes wrong with cPanel / WHM

There is no cPanel mail server, only your server, and the panel is the only authority on its name

cPanel is software your hosting company runs, not a mail service, so no shared hostname exists to prefill. Every account answers on the machine it is hosted on. The one place that prints the truth for your account is Email Accounts, then Connect Devices on the row for the address, then the Mail Client Manual Settings block. cPanel shows two tables there: Secure SSL/TLS Settings with IMAP on 993, POP3 on 995 and SMTP on 465, and a non-SSL table with 143, 110 and 587 that you should ignore. Copy the incoming and outgoing host out of the secure table exactly as printed, including any host that looks nothing like your domain.

mail.yourdomain.com usually resolves and usually fails the certificate check

The default cPanel guidance is mail.example.com, and that name normally points at the right machine, which is why the plain-text ports appear to work. Over TLS it often does not, because the certificate the server presents belongs to the shared server rather than to your domain. cPanel handles this by substituting: its own documentation says the system uses the server's hostname when the domain has no valid certificate, and uses the mail subdomain when the certificate does not match the hostname. That substitution is exactly why the value in Connect Devices is sometimes a hostname you have never seen. Use it anyway. A certificate mismatch here is a naming problem, not an attack, and clicking past it is the wrong fix.

A mailbox can be restricted from logging in or sending while looking perfectly healthy

cPanel puts a Restrictions block on each mailbox, reachable from Email Accounts, then Manage. Logging In can be set to Suspend, which blocks webmail and every mail client without changing the password. Sending Outgoing Email can be set to Suspend, which rejects outgoing messages, or to Hold, which queues them silently for four days and then gives up. Hold is the nastiest of the three for an AI agent: the submission is accepted, the send looks successful, and nothing ever arrives. If mail seems to vanish, open Restrictions before you debug anything else.

Your host may publish its own variant of these settings, and the host wins

This page is the generic cPanel pattern. Individual hosting companies deviate from it and document the deviation themselves. Bluehost, for example, puts mail.example.com only in the unencrypted block and gives the bare domain for the secure one. A2 Hosting, now hosting.com, tells you to use the full server name such as mi3-ss78.a2hosting.com because the shared certificate covers the server. If we have a page for your specific host, follow that one, because it carries the exact values. Where we do not, the Connect Devices panel inside your own cPanel is the final word.

Known limits with cPanel / WHM

  • We cannot prefill hosts for a cPanel mailbox, because the hostname belongs to your server rather than to a shared service. You have to paste it in from Connect Devices.
  • Some hosting companies firewall outbound submission or disable external IMAP on shared plans. cPanel still prints the settings when that is the case, so a refusal there is a question for your host, not a settings problem.
  • MCPEmails connects the mailbox. Forwarders, aliases, autoresponders, filters and quotas stay in cPanel and are not visible to your AI client.
FAQ

cPanel / WHM and AI: common questions

Does Claude work with cPanel email?

Not directly. Claude has no built-in connector for cPanel mail servers. Connecting an MCP server such as MCPEmails to the mailbox over IMAP gives Claude read, search, send, reply, schedule and organize access to it, using the same credentials a desktop mail client would use, and the same connection works from Cursor and ChatGPT too.

What are the cPanel IMAP and SMTP settings?

The ports are standard: IMAP on 993 and SMTP on 465, both with implicit TLS, with 143 and 587 as the unencrypted equivalents you should not use. The hostname is not standard and differs per hosting account. Take it from Email Accounts, Connect Devices, Mail Client Manual Settings, and use the Secure SSL/TLS table.

How do I find my cPanel mail server hostname?

Sign in to cPanel, open Email Accounts, and click Connect Devices next to the address. Scroll to Mail Client Manual Settings and read the incoming and outgoing server out of the Secure SSL/TLS table. It may be mail.yourdomain.com, your bare domain, or a server name belonging to your host. Whichever it prints is the correct one for TLS.

Why do I get a certificate warning for mail.mydomain.com?

Because the server presents a certificate issued for the shared machine rather than for your domain. The name you typed is not on that certificate, so a client that validates strictly refuses the connection. The fix is to connect to the hostname cPanel lists in the Secure SSL/TLS table, which is the name the certificate actually covers.

Why is my cPanel email password rejected?

Three causes dominate. You used your cPanel account login rather than the password set on the individual email address. The mailbox has Logging In set to Suspend under Restrictions. Or you are pointing at a hostname that resolves somewhere else. Reset the mailbox password from Email Accounts, then Manage, and check Restrictions on the same screen.

Is my cPanel mail stored on your servers?

No. Messages are fetched live from your own server over IMAP for each request and passed to your AI client. Credentials are encrypted at rest and message bodies are not retained.

Can I connect several cPanel / WHM mailboxes to the same AI agent?

Yes. Connect each cPanel / WHM address to one MCPEmails workspace and your AI client reaches all of them through the same MCP URL. Every tool call names the mailbox it acts on, so a reply to a message in sales@ goes out from sales@. Free connects one mailbox, Personal three, Pro up to 10, and Business as many as you need.

Can ChatGPT read my cPanel / WHM mail?

Yes, once cPanel / WHM is connected to MCPEmails. In ChatGPT, add a custom MCP connector with the URL https://mcpemails.com/api/mcp and OAuth sign-in. Custom connectors need developer mode, which works on chatgpt.com with Plus, Pro, Business, Enterprise and Edu. ChatGPT gets only the access you approve, and your mail is fetched live, never stored.

Put every cPanel mailbox on one agent

Connect your first cPanel mailbox free, no card required. Personal connects three, Pro up to 10, and Business as many as you need.