# NetEase Mail

> NetEase Mail is an open-source MCP server for communication. Read, search and draft NetEase 163, 126, yeah.net and 188 email from an AI client. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, macOS, Windows, Linux
- **Repository:** https://github.com/serafxy/netease-mail-mcp
- **MCP Registry name:** io.github.SeraFxy/netease-mail-mcp
- **Categories:** [communication](https://ai-powered.com/categories/communication), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-11-23

## About

Built around the quirks of NetEase mail, this server logs in over IMAP and SMTP with a client authorization code rather than your password. Setup stores the code in the operating system keychain, and a doctor command checks login, IMAP ID, folders, SMTP and the mailbox's receive option.

It registers ten tools according to a permission mode. In readonly mode only reading tools appear, draft mode adds draft creation, and full mode (the default) adds sending and moving or trashing messages. Sending, moving and deleting need confirmation: the client's MCP elicitation prompt, or a single-use token tied to the exact previewed content. The README is frank that a token proves the preview was seen but not that a human approved it, and recommends elicit, readonly or draft for sensitive setups.

Some limits come from NetEase itself. Keyword search on the server returns nothing useful, so only dates and read, unread or starred state are filtered remotely and keywords are matched locally on headers. Message bodies are not searched, and there is no permanent-delete tool.

## Features

- **Ten tools by permission:** readonly, draft and full modes decide which tools are registered at all.
- **Two-step confirmation:** Send, move and delete go through client elicitation or a content-bound single-use token.
- **Keychain credentials:** Authorization codes are kept in the OS keychain, not in config files.
- **Local header search:** Searches sender, recipient and subject locally after server-side date and status filters.
- **Safe attachment handling:** Downloads stay inside a set folder and attachments from sensitive paths are refused.
- **Verification code waiting:** wait_for_message waits for a new mail and extracts a verification code.

## Good for

- Find recent mail from a sender in a 163 inbox
- Draft a reply or forward with attachments for later review
- Download invoice attachments into a folder
- Wait for a login verification code email
- Give an agent read-only mailbox access

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add netease-mail-mcp -- uvx netease-mail-mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "netease-mail-mcp": {
      "command": "uvx",
      "args": [
        "netease-mail-mcp-server"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "netease-mail-mcp": {
      "command": "uvx",
      "args": [
        "netease-mail-mcp-server"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "netease-mail-mcp": {
      "command": "uvx",
      "args": [
        "netease-mail-mcp-server"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "netease-mail-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "netease-mail-mcp-server"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add netease-mail-mcp -- uvx netease-mail-mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.netease-mail-mcp]
command = "uvx"
args = ["netease-mail-mcp-server"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "netease-mail-mcp": {
      "command": "uvx",
      "args": [
        "netease-mail-mcp-server"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user netease-mail-mcp uvx -- netease-mail-mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "netease-mail-mcp": {
      "command": "uvx",
      "args": [
        "netease-mail-mcp-server"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "netease-mail-mcp": {
      "command": "uvx",
      "args": [
        "netease-mail-mcp-server"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "netease-mail-mcp": {
      "command": "uvx",
      "args": [
        "netease-mail-mcp-server"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "netease-mail-mcp": {
      "command": "uvx",
      "args": [
        "netease-mail-mcp-server"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "netease-mail-mcp": {
      "command": "uvx",
      "args": [
        "netease-mail-mcp-server"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "netease-mail-mcp": {
      "command": "uvx",
      "args": [
        "netease-mail-mcp-server"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "netease-mail-mcp": {
      "command": "uvx",
      "args": [
        "netease-mail-mcp-server"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "netease-mail-mcp": {
      "command": "uvx",
      "args": [
        "netease-mail-mcp-server"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 10 tools change data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `list_accounts` (name suggests: reads): Lists configured accounts and the current mode, with an optional login test.
- `list_folders` (name suggests: reads): Lists folders with decoded names, roles and counts.
- `search_messages` (name suggests: reads): Searches by date, read and starred state on the server and by keyword, sender or subject locally.
- `read_message` (name suggests: reads): Reads one message with body, headers and attachment list.
- `get_thread` (name suggests: reads): Fetches related messages from inbox, sent and other folders.
- `download_attachment` (name suggests: reads): Saves an attachment into the download directory.
- `wait_for_message`: Waits for a new message and extracts a verification code.
- `create_draft` (name suggests: changes): Writes a draft, including replies, forwards and attachments.
- `send_email` (name suggests: changes): Sends mail after two-step confirmation.
- `manage_messages`: Moves or trashes messages after confirmation and marks them read or starred.

## FAQ

### Do I enter my account password?

No. You generate a client authorization code in the web mail settings and the server stores it in your keychain.

### Why does search not look in message bodies?

NetEase's IMAP server does not return usable results for keyword search, so the server filters headers locally and reports body_searched as false.

### How do I stop the agent from sending mail?

Set NETEASE_MAIL_MODE to readonly or draft.

### Which mail domains are supported?

163, 126, yeah.net and 188.

### Is there a permanent delete?

No. Messages can only be moved to trash, after confirmation.

### Is NetEase Mail free?

Yes. NetEase Mail is open source, so you can use and self-host it for free.

### How do I add NetEase Mail to Claude Code?

Run this command in your terminal: claude mcp add netease-mail-mcp -- uvx netease-mail-mcp-server

### What are the best alternatives to NetEase Mail?

The closest alternatives to NetEase Mail are TrendRadar, Ha MCP, Concord MCP, TryPost and Open Sunsama.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [TrendRadar](https://ai-powered.com/mcp/trendradar): TrendRadar is an open-source MCP server for communication.
- [Ha MCP](https://ai-powered.com/mcp/ha-mcp): Ha MCP is an open-source MCP server for productivity.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.
- [TryPost](https://ai-powered.com/mcp/trypost): TryPost is a paid MCP server for marketing and seo.
- [Open Sunsama](https://ai-powered.com/mcp/open-sunsama): Open Sunsama is an open-source MCP server for productivity.
- [Discord MCP](https://ai-powered.com/mcp/discord-mcp): Discord MCP is an open-source MCP server for communication.
- [Gmail MCP](https://ai-powered.com/mcp/gmail-mcp-3): Gmail MCP is an open-source MCP server for communication.
- [Dayfile.app](https://ai-powered.com/mcp/dayfile-app): Dayfile.app is an open-source MCP server for productivity.

---
Source: https://ai-powered.com/mcp/netease-mail
