Skip to content
MCP server

NetEase Mail

Read, search and draft NetEase 163, 126, yeah.net and 188 email from an AI client

Runs locally

NetEase Mail is an open-source MCP server for communication. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted, macOS
Runs
Locally
What it can do
Can change data (2 tools)
Version
0.1.1

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.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.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "netease-mail-mcp": {
      "command": "uvx",
      "args": [
        "netease-mail-mcp-server"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • NETEASE_MAIL_ACCOUNTSComma-separated NetEase addresses to use (first is the default). Authorization codes are stored by `setup` in the OS keychain, not here. Overrides the config file.
  • NETEASE_MAIL_MODEPermission mode: readonly, draft or full.
  • NETEASE_MAIL_CONFIRMHow send/move/trash are confirmed: auto, elicit (MCP elicitation, human approves in the client) or token (single-use content-bound token).
  • NETEASE_MAIL_DOWNLOAD_DIRDirectory for downloaded attachments (default ~/Downloads/netease-mail-mcp).

About NetEase Mail

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.

Tools this server provides (10)

Taken from the project documentation; the running server may differ.

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_accountsName suggests: reads
Lists configured accounts and the current mode, with an optional login test.
list_foldersName suggests: reads
Lists folders with decoded names, roles and counts.
search_messagesName suggests: reads
Searches by date, read and starred state on the server and by keyword, sender or subject locally.
read_messageName suggests: reads
Reads one message with body, headers and attachment list.
get_threadName suggests: reads
Fetches related messages from inbox, sent and other folders.
download_attachmentName suggests: reads
Saves an attachment into the download directory.
wait_for_message
Waits for a new message and extracts a verification code.
create_draftName suggests: changes
Writes a draft, including replies, forwards and attachments.
send_emailName suggests: changes
Sends mail after two-step confirmation.
manage_messages
Moves or trashes messages after confirmation and marks them read or starred.

What it does

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

Pricing

Open source

Open source; needs a NetEase mailbox with IMAP/SMTP enabled

NetEase Mail 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.

How AIPoweredBot checks servers