Alibaba Mail Admin (unofficial)
v0.2.1Manage Alibaba Mail (阿里邮箱) users, departments, groups and contacts via the admin OpenAPI
Values you need
| Variable | What it is | |
|---|---|---|
ALIMAIL_CLIENT_ID | required | Alibaba Mail OpenAPI application client ID |
ALIMAIL_CLIENT_SECRET | required secret | Alibaba Mail OpenAPI application client secret |
ALIMAIL_READ_ONLY | optional | Set to false to register write and destructive tools Default: true |
ALIMAIL_API_BASE | optional | API endpoint of your Alibaba Mail cluster Default: https://alimail-cn.aliyuncs.com |
ALIMAIL_TOOLSETS | optional | Comma-separated toolsets: users, departments, groups, contacts, org, security, audit, login, or all (default: all except login) |
ALIMAIL_ALLOWED_DOMAINS | optional | Comma-separated mail domains the server is allowed to operate on (default: no restriction) |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add alimail-admin-mcp -e 'ALIMAIL_CLIENT_ID=<ALIMAIL_CLIENT_ID>' -e 'ALIMAIL_CLIENT_SECRET=<ALIMAIL_CLIENT_SECRET>' -- npx -y @mfcompliance/alimail-admin-mcp@0.2.1Add to
claude_desktop_config.json{
"mcpServers": {
"alimail-admin-mcp": {
"args": [
"-y",
"@mfcompliance/alimail-admin-mcp@0.2.1"
],
"command": "npx",
"env": {
"ALIMAIL_CLIENT_ID": "<ALIMAIL_CLIENT_ID>",
"ALIMAIL_CLIENT_SECRET": "<ALIMAIL_CLIENT_SECRET>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"alimail-admin-mcp": {
"args": [
"-y",
"@mfcompliance/alimail-admin-mcp@0.2.1"
],
"command": "npx",
"env": {
"ALIMAIL_CLIENT_ID": "<ALIMAIL_CLIENT_ID>",
"ALIMAIL_CLIENT_SECRET": "<ALIMAIL_CLIENT_SECRET>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "ALIMAIL_CLIENT_ID",
"id": "alimail-client-id",
"password": true,
"type": "promptString"
},
{
"description": "ALIMAIL_CLIENT_SECRET",
"id": "alimail-client-secret",
"password": true,
"type": "promptString"
}
],
"servers": {
"alimail-admin-mcp": {
"args": [
"-y",
"@mfcompliance/alimail-admin-mcp@0.2.1"
],
"command": "npx",
"env": {
"ALIMAIL_CLIENT_ID": "${input:alimail-client-id}",
"ALIMAIL_CLIENT_SECRET": "${input:alimail-client-secret}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.alimail-admin-mcp]
command = "npx"
args = ["-y", "@mfcompliance/alimail-admin-mcp@0.2.1"]
env = { "ALIMAIL_CLIENT_ID" = "<ALIMAIL_CLIENT_ID>", "ALIMAIL_CLIENT_SECRET" = "<ALIMAIL_CLIENT_SECRET>" }For AI agents
- Ask the user for: ALIMAIL_CLIENT_ID, ALIMAIL_CLIENT_SECRET. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_users, get_user, get_users_by_ids, get_mailbox_settings, list_shared_members, check_shared_access, get_department, get_departments_by_ids, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json