Connect Claude Desktop to XgenPlus Mail
Claude Desktop connects to XgenPlus through the mcp-remote bridge, because its own Add custom connector button needs OAuth sign-in, which XgenPlus does not support yet. Install Node.js 18 or newer, open Settings › Developer › Edit Config, paste the block below with your token, then quit and reopen Claude Desktop. The XgenPlus tools appear in a new chat.
How to connect Claude Desktop
- Create an agent password in webmail under Settings › Security › AI Agents (MCP) and copy its token, or make your token.
- Install Node.js 18 or newer (LTS) from nodejs.org, unless
node --versionalready shows 18 or newer in a terminal. - In Claude Desktop, open Settings › Developer and click Edit Config to open
claude_desktop_config.json. - Paste the block below, or merge it into your existing
mcpServers, and replace<TOKEN>with your token. - Quit Claude Desktop fully and open it again.
- Start a new chat and check that the XgenPlus tools appear in the tools or connectors menu.
- Test the connection: ask the assistant to "Call get_mailbox_profile". If it lists your permissions, the token works. If it fails with a sign-in problem, the token is wrong or the mailbox is blocked. If it says the agent can't sign in right now, check the agent in webmail: it may be paused, expired or have Login unticked.
When to use it
Meera uses Claude Desktop at work. She adds XgenPlus once, and from then on asks Claude to summarise long threads and prepare reply drafts that she sends from webmail.
Configuration
- In XgenPlus webmail, go to Settings › Security › AI Agents (MCP) and click Create agent password.
- On Your agent is ready, copy the Token for AI apps. It is already encoded, so paste it where this guide says
<TOKEN>, afterBearerwith one space.
Chose your own password, or need to make the token again? It is your email address and agent password joined by a colon, with no spaces, in base64. Replace the sample values with yours, run the command on your own computer, and copy the line it prints.
Windows (PowerShell):[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes('you@xgenplus.com:AGENT_PASSWORD'))Mac or Linux (Terminal):printf '%s' 'you@xgenplus.com:AGENT_PASSWORD' | base64 | tr -d '\n'For example, you@xgenplus.com:AGENT_PASSWORD becomes eW91QHhnZW5wbHVzLmNvbTpBR0VOVF9QQVNTV09SRA==. Base64 is not encryption: keep the token as secret as a password. Never paste it into a chat with the AI, a shared file or a code repository, and never use online base64 encoder websites, because they would receive your agent password. If your agent password contains a single quote ('), these commands break, so create a new agent password without one. More help: Make your MCP token.
The file is at:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - Mac:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"xgenplus": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.xgenplus.com/mcp", "--header", "Authorization:${XGENPLUS_AUTH}"],
"env": { "XGENPLUS_AUTH": "Bearer <TOKEN>" }
}
}
}
Good to know
- Keep
Authorization:${XGENPLUS_AUTH}without a space after the colon. The space goes in theenvvalue, which keeps it working on Windows. - If the tools don't appear on Windows, check that
npx --versionworks in a new terminal, then quit and reopen Claude Desktop. - If a browser tab opens on mcp.xgenplus.com showing "Not Found", the token is wrong or missing, or the mailbox is blocked. Make the token again, update the config and restart Claude Desktop.
- A paused or expired agent, one with Login unticked, or an account that is not eligible is refused with a message that the agent can't sign in right now. Check the agent in webmail.
- When OAuth support arrives, you will be able to use the connector button instead.
- Claude asks before it uses a tool unless you allow it. Review what it proposes before you approve a send.
Common questions
Why can't I use the Add custom connector button?
That button signs in with OAuth, which XgenPlus does not support yet. It is coming soon. Until then the bridge sends your agent password header instead.
The server shows an error. What should I check?
Check the token, and that npx works in a terminal. Claude Desktop shows server logs in its Developer settings.
A browser tab opened on mcp.xgenplus.com showing Not Found. What does it mean?
Your token is wrong or missing, or the mailbox is blocked. When the sign-in is refused, the bridge tries an OAuth sign-in, which XgenPlus does not support yet. Close the tab, make the token again, update the config and restart Claude Desktop.