Alibaba Mail Admin (unofficial)

v0.2.1
io.github.mfcompliance/alimail-admin-mcp Checked 2 days ago Published 15 days ago

Manage Alibaba Mail (阿里邮箱) users, departments, groups and contacts via the admin OpenAPI

Values you need

VariableWhat it is
ALIMAIL_CLIENT_IDrequired Alibaba Mail OpenAPI application client ID
ALIMAIL_CLIENT_SECRETrequired secret Alibaba Mail OpenAPI application client secret
ALIMAIL_READ_ONLYoptional Set to false to register write and destructive tools Default: true
ALIMAIL_API_BASEoptional API endpoint of your Alibaba Mail cluster Default: https://alimail-cn.aliyuncs.com
ALIMAIL_TOOLSETSoptional Comma-separated toolsets: users, departments, groups, contacts, org, security, audit, login, or all (default: all except login)
ALIMAIL_ALLOWED_DOMAINSoptional 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.1
Add 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

  1. 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.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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, ….
  5. 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