ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

gmail-agent

โดย dremokรุ่น 0.3.1i★ –iรันบนเครื่อง
ชื่อใน registryio.github.dremok/gmail-agent

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Gmail for AI agents: search, read, download attachments, send, reply, drafts, labels.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: แชตและอีเมล

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ต้องเตรียมก่อน

  • PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "gmail-agent": {
      "command": "uvx",
      "args": [
        "gmail-agent",
        "mcp"
      ],
      "env": {
        "GMAIL_AGENT_CONFIG_DIR": "ใส่ค่าของคุณ",
        "GMAIL_AGENT_ALLOWED_DIRS": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add gmail-agent --env GMAIL_AGENT_CONFIG_DIR='ใส่ค่าของคุณ' --env GMAIL_AGENT_ALLOWED_DIRS='ใส่ค่าของคุณ' -- uvx gmail-agent mcp

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "gmail-agent": {
      "command": "uvx",
      "args": [
        "gmail-agent",
        "mcp"
      ],
      "env": {
        "GMAIL_AGENT_CONFIG_DIR": "ใส่ค่าของคุณ",
        "GMAIL_AGENT_ALLOWED_DIRS": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "gmail-agent": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "gmail-agent",
        "mcp"
      ],
      "env": {
        "GMAIL_AGENT_CONFIG_DIR": "ใส่ค่าของคุณ",
        "GMAIL_AGENT_ALLOWED_DIRS": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • GMAIL_AGENT_CONFIG_DIR env
    Config dir with credentials.json and token (default ~/.config/gmail-agent)
  • GMAIL_AGENT_ALLOWED_DIRS env
    Extra folders, besides ~/Downloads, the tools may save attachments to and attach files from (separated by :)

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub dremok ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด แชตและอีเมลi

  • ดาวมากกว่า 0% ของอีก 1763 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 50% ของอีก 1763 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 1763 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

gmail-agent ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.3.1) เข้า registry 25 วันที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Vexa, emailmd, MCP WhatsApp Cloud

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Vexa

โดย Vexa-ai

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

รันบนคลาวด์★ 2,949Apache-2.0อัปเดต 2 เดือนที่ผ่านมา
ติดตั้ง

emailmd

โดย anypost

Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.

บนเครื่องหรือคลาวด์★ 1,385MITอัปเดต 30 วันที่ผ่านมา
ติดตั้ง

MCP WhatsApp Cloud

โดย codespar

MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API

รันบนเครื่อง★ 277MITอัปเดต 5 เดือนที่ผ่านมา
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

gmail-agent

Gmail for AI agents and the people who run them: search, read, download attachments, send, reply, forward, drafts, labels and trash.

gmail-agent is one small Python package with two faces:

  • a CLI for agents that have a shell (Claude Code, Codex, Aider, your own scripts), with --json output
  • an MCP server over stdio for clients like Claude Desktop and Claude Code

It talks directly to the Gmail API from your machine using your own Google Cloud OAuth client, so there is no third-party server in between. You choose how much access it gets when you log in, from read-only up to full.

Why another one? A lot of real agent work with mail is about attachments: find last quarter's invoices, save them, read the PDFs. The hosted Gmail connectors can't save files to disk, and the most used open-source Gmail MCP server is archived. gmail-agent handles attachments well, shows you any write before it happens, and only offers the tools your login allows. See How it compares.

What it does

Read

  • Search with Gmail syntax (from:, has:attachment, filename:pdf, newer_than:30d, ...), paginated
  • Read a message or a whole thread as plain text (HTML mail is converted)
  • List labels and drafts

Attachments

  • List a message's attachments with name, type, size and part id
  • Download from one message, or every attachment from every message matching a query
  • Extract text from PDF and text attachments without saving them

Downloads never overwrite anything. If invoice.pdf exists, the next one becomes invoice_1.pdf, and you get the real paths back. Names are sanitized, so a file called ../../.ssh/config lands as config inside the folder you picked.

Write

  • Send new mail with attachments, Cc/Bcc, plain text or HTML
  • Reply and reply-all in the same thread (In-Reply-To, References and thread id are set, the original is quoted)
  • Forward, including the original attachments
  • Drafts: create, list, show, update, send, delete
  • Labels: create, rename, delete, add to and remove from messages or threads
  • Mark read or unread, star, archive
  • Trash and untrash; permanent delete behind an explicit flag

Every write command takes --dry-run, which prints the exact API request and, for mail, the MIME message without changing anything. With --json, results include the ids of whatever was sent or created.

Quick start

You need uv (or pipx) and Python 3.11+.

uv tool install gmail-agent      # or: pipx install gmail-agent

For the latest unreleased changes: uv tool install git+https://github.com/dremok/gmail-agent.

Then set it up once (about 5 minutes, guided):

gmail-agent setup       # Google Cloud project, OAuth client and login; default access level is "modify"

gmail-agent status # shows the logged-in account and access level gmail-agent search "has:attachment newer_than:7d"

Then connect your agent. In Claude Code: /plugin install gmail-agent --marketplace dremok/gmail-agent. For Codex, Gemini CLI, VS Code, Cursor and Claude Desktop, see MCP server.

How it compares

Checked against each project's source and docs in October 2026. Corrections are welcome as issues.

gmail-agentClaude's Gmail connectorgoogle_workspace_mcpGongRzhe Gmail-MCP-Server
SetupYour own OAuth client; gmail-agent setup guides you (about 5 minutes)One clickYour own OAuth client, by handYour own OAuth client, by hand
Runs asCLI and stdio MCP, on your machineHosted (web, desktop, mobile)stdio or HTTP, multi-userstdio MCP
Save attachments to diskYes, never overwritesNoYes, to its own folder, deleted after an hourYes, overwrites files with the same name
Every attachment matching a searchYesNoNoNo
Text of PDF attachmentsYesNoNoNo
Forward with original attachmentsYesNot documentedYesNo forward
DraftsCreate, update, send, deleteYesCreate onlyCreate only
Dry run of every write, with the MIME messageYesNo, asks before each write insteadNoNo
Read-only modeYesNo, the grant includes sendingYesNo
Tool list follows the granted scopeYesNoFrom server flagsNo
Permanent deleteOnly with --allow-delete and a full loginNot offeredNot offeredOffered without a guard
Drive, Calendar, DocsNo, Gmail onlySeparate connectorsYesNo
MaintainedYesYesYesArchived in 2025

Use something else if:

  • You want no setup, or use Claude on the web or your phone. The built-in connector is one click away.
  • You need Drive, Calendar and Docs in the same server, or one server for a team over HTTP. google_workspace_mcp covers all of Workspace.
  • You need Gmail filters, sending from an alias, your Gmail signature or inline images in outgoing mail. gmail-agent does none of these yet.
  • You want a plain CLI for all of Google Workspace. googleworkspace/cli (gws) is a good one. It dropped its MCP server in version 0.8.0.

Coming from GongRzhe/Gmail-MCP-Server?

That server is archived. Moving takes a few minutes, and you can keep your Google Cloud project.

  1. Install: uv tool install gmail-agent
  2. Reuse your OAuth client, not your token. Setup checks the client, installs it and logs you in:
   gmail-agent setup --client-file ~/.gmail-mcp/gcp-oauth.keys.json

Do not copy GongRzhe's credentials.json by hand. Despite the name it is your login token, while gmail-agent's credentials.json is the OAuth client, and the token formats differ anyway. gmail-agent needs a Desktop app client. If yours is a Web application client, setup says so; create a Desktop client in the same project and pass that file instead.

  1. Point your MCP client at gmail-agent. Replace npx @gongrzhe/server-gmail-autoauth-mcp with gmail-agent mcp, for example claude mcp add gmail --scope user -- gmail-agent mcp. For Claude Desktop, see MCP server.
  2. Optional cleanup: revoke the old grant at myaccount.google.com/permissions and remove ~/.gmail-mcp.
GongRzhe toolgmail-agent toolNotes
search_emailssearch_messagesAdds paging with page_token
read_emailget_message, get_threadHTML mail comes back as text
send_emailsend_message, reply_to_messageReplies set the threading headers for you
draft_emailcreate_draft, or any send tool with as_draftDrafts can also be updated and sent
modify_email, batch_modify_emailsmodify_labels, mark_messagesLabels by name or id
delete_email, batch_delete_emailstrashPermanent delete needs mcp --allow-delete and a full login
list_email_labelslist_labels
create_label, update_label, delete_labelcreate_label, rename_label, delete_labelNo visibility options
get_or_create_labellist_labels, then create_label
download_attachmentdownload_attachmentsPicks by filename or part id, never overwrites
download_matching_attachments, read_attachment_text, forward_messageNew
create_filter and the other filter toolsNonegmail-agent never touches settings, filters or forwarding

Two behaviours differ on purpose: delete means trash unless you opt in, and the tool list shrinks to what your login allows. If tools seem to be missing, check the level with gmail-agent status.

Google Cloud setup

Gmail has no API keys for personal mail, so you create your own OAuth client in Google Cloud. It is free and you do it once. gmail-agent setup walks you through it and does what Google lets it do for you:

  1. Project and Gmail API. If gcloud is installed and logged in, setup creates a project called gmail-agent- plus six random characters (it asks first) and enables the Gmail API. Without gcloud it opens the two console pages and asks for the project ID. --project ID uses a project you already have.
  2. Consent screen and publishing. Google has no API for these, so setup opens the pages and tells you what to click: app name gmail-agent, audience External, then Publish app so the status is In production. Publishing avoids the 7-day login expiry of Testing mode, and you do not have to add yourself as a test user. Google calls the app unverified, which is expected for your own app and fine for personal use (it is capped at 100 users).
  3. Desktop client. Setup opens the Clients page. Create a client of type Desktop app and click Download JSON (Google shows the secret only then). Setup spots the file in ~/Downloads, checks that it is a Desktop client from the right project, and installs it as ~/.config/gmail-agent/credentials.json, readable only by you. You can also pass --client-file PATH, or press Ctrl-C and paste the client ID and secret.
  4. Login. A browser opens; pick your account. Google says "Google hasn't verified this app": click Continue and keep all boxes ticked. Setup checks the account and prints Set up: logged in as you@example.com with modify access.

Run it again whenever you like; it skips what is already done. Options: --scope LEVEL (see Access levels), --no-gcloud, and --no-browser, which prints the links instead of opening them (the login redirect goes to localhost, so the browser must run on the same machine).

Setting up by hand

The same steps without the wizard:

  1. Create a project at console.cloud.google.com/projectcreate and make sure it is selected in the top bar.
  2. Enable the Gmail API on the Gmail API page.
  3. Configure the consent screen in Google Auth Platform: Get started, app name gmail-agent, your address as support and contact email, audience External, agree, Create.
  4. Publish the app under Audience (Publish app, status In production). If you would rather stay in Testing mode, add your address under Test users instead, and expect to log in again every 7 days.
  5. Create a Desktop client under Clients: Create client, application type Desktop app, Create, and download the JSON from the dialog. If you miss the download, create a new client.
  6. Install it, either with gmail-agent setup --client-file ~/Downloads/client_secret_*.json, which also logs in, or by hand:
   mkdir -p ~/.config/gmail-agent

mv ~/Downloads/client_secret_*.json ~/.config/gmail-agent/credentials.json chmod 600 ~/.config/gmail-agent/credentials.json gmail-agent login # or: gmail-agent login --scope readonly

If something is missing later, the error names the fix: a deleted or expired client points back to gmail-agent setup, a

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx