Create an agent password for AI assistants
In XgenPlus webmail, go to Settings › Security › AI Agents (MCP) and click Create agent password. Name the agent, tick its permissions and keep Random password (recommended). The next screen shows the server address and a ready-made token to copy. You can have up to 10 agents, each with its own password and permissions. To cut access, pause, delete or regenerate; each takes effect within about 10 seconds.
How to create an agent password
- In XgenPlus webmail, go to Settings › Security and open the AI Agents (MCP) tab.
- Click Create agent password.
- Give the agent a name, such as "Claude Desktop" or "Cursor on work laptop".
- Tick the permissions it needs. For read-only use, tick Login, List folders, Search email and Read email.
- Keep Random password (recommended) and create the agent.
- On Your agent is ready, copy the Token for AI apps and keep it safe. It is not shown again.


When to use it
Rohit at acme.in wants Cursor to summarise supplier mail. He creates an agent called "Cursor on work laptop" with only Login, List folders, Search email and Read email, and pastes the token into Cursor. A month later he ticks Reply / Forward and Save to Drafts so it can prepare reply drafts for him.
The screen
| On screen | What it is |
|---|---|
| AI Agents (MCP) tab | Under Settings › Security |
| Passwords for AI agents | Each assistant gets its own password and only the permissions it needs. Your mailbox password is never shared. |
| Create agent password | Opens New agent password: the agent name, its permissions, and Random password (recommended) or My own password |
| Your agents (n/10) | Your agents with Agent Name, Created, Last Used, Status and Action. You can have up to 10. |
| Status switch | Active or Paused |
| Action icons | Regenerate the password, or delete the agent |
Your agent is ready
After you create an agent, this screen shows everything you need once:
- Server address:
https://mcp.xgenplus.com/mcp. - Token for AI apps: your email address and this agent's password, already encoded. Paste it where a setup guide says
<TOKEN>. - Ready-to-paste setup: open it for setup you can paste into Claude Code, Cursor or Claude Desktop.
- Agent password: only for apps that ask for an email address and a password.
- Allowed: the permissions you ticked.
Copy what you need before you click Done. If you lose it, regenerate the password.
Permissions
Tick only what the assistant needs. Each permission switches on a group of tools.
| Permission | What the assistant can do |
|---|---|
| Login | Sign in at all. Always tick it, or the agent can do nothing. |
| List folders | See folder names and counts |
| Search email | List, search and count messages, see the inbox summary, look up contacts. Text search also needs Read email. |
| Read email | Open messages, threads and attachments, and see previews in search results; also read calendar, tasks, signature and out-of-office |
| Mark read / unread | Mark read or unread, star |
| Move email | Move messages to the inbox, spam or your own folders; restore from Trash |
| Delete email | Move messages to Trash (never permanent) |
| Reply / Forward | Reply to and forward mail, together with Save to Drafts for drafts or Send & Save to send, plus Read email |
| Send & Save | Send new messages and existing drafts. A copy of every sent message is saved to Sent. |
| Save to Drafts | Create, edit and delete drafts (a deleted draft goes to Trash). It does not send; sending needs Send & Save. |
If your screen still shows Send email and Send & save email, those are the same permissions: Send email is Send & Save, and Send & save email is Save to Drafts.
Error messages and get_mailbox_profile use the server's own names, and an assistant may repeat them. send_email means Send & Save, and send_save_email means Save to Drafts. The names look swapped, so go by this table. On a domain admin mailbox the list also includes domain_admin, which is not a tick box.
Pause, delete or regenerate
| Action | Effect |
|---|---|
| Pause | The agent is refused within about 10 seconds. Resume brings it back, within about a minute if the assistant tried to connect while paused. Other agents keep working. |
| Delete | The agent is refused within about 10 seconds. Other agents keep working. |
| Regenerate the password | The old token stops reaching the mailbox within about 10 seconds, for assistants already connected and for new connections. Each assistant that uses this agent then needs the new token. Other agents keep working. |
Pausing, deleting and regenerating all cut access within about 10 seconds.
The same delay of about a minute applies after you tick Login or after an account problem is fixed, if the assistant tried to connect in the meantime. It does not apply after a block is lifted.
Good to know
- My own password must be 12 to 64 characters, with an uppercase letter, a lowercase letter, a digit and a special character, and no spaces. Do not use a single quote (
'): it breaks the token commands. - If a permission is off, the assistant gets a
SCOPE_REQUIREDerror and should tell you. Tick the permission if you want it to do that task. - Your organisation's administrators can see which users have created agent passwords.
- Admin tools are not a tick box. Every agent on a domain admin mailbox gets them.
Common questions
Is the agent password the same as my mailbox password?
No. They are separate, and changing one does not change the other. The assistant never sees your mailbox password.
Can someone else turn this on for me?
No. MCP stays off for your account until you create an agent password yourself.
Should I use one agent for all my assistants?
No. Create one agent per assistant or device, such as "Claude Desktop" and "n8n support flow". Then you can pause or delete each one on its own.
I lost my token. What do I do?
The token and password are shown only once. Click the regenerate icon next to the agent to get a new password and token, then update your assistant.
Do I need to reconnect after changing permissions?
No. Permission changes apply within about 10 seconds.