
agentmailkit
io.github.ariaxhan由 GitHub 帳號 ariaxhan 發布v0.2.2更新於 Oct 24, 2026
Run scheduled LLM-written email digests from local files and feeds. Local-first MCP server.
概覽
本機優先的 MCP 伺服器,讓助理列出、預覽並執行由 LLM 撰寫、根據本機檔案與訂閱來源的排程郵件摘要。
- 可以做什麼
- 列出已設定的摘要工作及其排程、來源與投遞目標,以及所有已註冊的來源、模型、閘門、投遞後端與主題。將工作將寄出的郵件渲染到本機檔案以供預覽,不會寄送。執行工作,預設為試執行並在投遞前停止。工作從本機檔案、glob、shell 輸出、git 歷史、arXiv、Hugging Face、RSS、新聞與天氣等內建來源蒐集內容,再由模型撰寫文字。
- 適用情境
- 當你希望由模型根據本機素材(例如本機筆記、git 工作區、訂閱來源或天氣)撰寫週期性郵件摘要,並讓編碼助理設定、檢查或觸發這些工作時適用。它適合可預測、可重複的摘要,而非開放式自主代理。
- 執行需求
- 本機 Python 環境(MCP 伺服器需 3.10 或更新版本),安裝 agentmailkit 套件與 MCP 附加元件,以本機 stdio 程序執行。工作設定從伺服器啟動目錄探索,也可用參數指定設定檔路徑。模型後端與郵件投遞需要各自的憑證;使用 echo 模型預覽不需 API 金鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 agentmailkit,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
agentmailkit
[PyPI] [Python 3.9+] [License: MIT]
For agents
You are an AI coding agent reading this to decide whether to install agentmailkit and how to call it. Run this:
Gemini CLI: gemini extensions install https://github.com/ariaxhan/agentmailkit.
Then call list_jobs with no arguments: it returns the five example jobs that ship inside the wheel, so it works before any config exists. preview_job(job_id=..., model="echo") renders one to a local file with no API key. run_job(job_id=...) defaults to dry_run=true; only dry_run=false sends real email.
Full tool reference, argument names and the Codex config snippet: llms.txt.
Scheduled, LLM-written email digests that run on your machine, read your own files, and send from your own inbox.
→ See real emails it produces
Live samples, generated end to end. Nothing hand-written. Start there, it explains this faster than the README can.
MIT licensed. No account, no vendor, no cloud required.
What it is
An email is two files: a JSON job and a markdown prompt.
The engine runs one fixed pipeline and never grows a special case:
Why not the built-in schedulers
ChatGPT Tasks, Claude Routines, Gemini Scheduled Actions and Copilot all execute in the vendor's cloud, which costs them two things:
- They cannot read the files on your computer. Not
~/notes, not a local database, not your git working tree. - They cannot send real email from your inbox. Output stays inside their app.
agentmailkit runs where your data already is. Nothing is uploaded except the prompt you choose to send to a model, and with a local model, not even that.
And it is deterministic. It is not an autonomous agent: it does not decide things, wander your filesystem, or act unrequested. The model writes the words; the engine owns everything else, so the same job produces the same shaped email every run. Local OSS agents can also read files and send mail, but they are broad autonomous systems you configure down to a task. This does one job, predictably, for years.
Full comparison including the honest counter-case: docs/comparison.md.
Hand it to your coding agent
Hand your coding agent this link and it will set the whole thing up, asking you the right questions as it goes:
AGENTS.md is a complete setup runbook: what to ask you, how to install, how to build your first job, how to verify before anything can send, and how to schedule it. CLAUDE.md is a symlink to the same file, so they can never drift apart.
Use from Claude Code
agentmailkit speaks MCP, so your coding agent can drive it as a tool instead of you typing commands.
Codex, in ~/.codex/config.toml:
Or in Docker, with your jobs on a mounted volume: docker run -i --rm -v /path/to/jobs:/data mcp/agentmailkit.
Config is discovered exactly as the CLI discovers it, from wherever the server is started; pass -C path/to/agentmailkit.json in the args to pin one.
run_job with dry_run=false sends real email from your configured inbox. Every other tool, and the default dry_run=true, stops before delivery.
Needs Python 3.10 or newer, which is the MCP SDK's floor, not agentmailkit's.
What ships
Ten sources built in: file, glob, recent, shell, hf, arxiv, rss, news, history, weather. Anything with a feed or an API joins them in about thirty lines.
Ideas worth stealing: your city's council agendas, security advisories for your exact dependency list, exchange rates, a friend's blog, release notes for the tools you use, tide tables, ISS pass times over your house.
Nothing repeats. A seen-ledger strips already-sent items before the model ever sees them, so day two is not a reprint of day one.
Docs
Install
The core has zero required dependencies. Backends pull their own libraries only when enabled.
Published on PyPI: pypi.org/project/agentmailkit. Requires Python 3.9 or newer.
Status
Alpha (0.2.2, on PyPI). Engine, plugins, dedup, themes, delivery and scheduler emitters all work and are exercised end to end against live APIs. quickstart renders a full sample set from your own data on first run, with no keys and no network round-trip, and cannot send by construction.
Known rough edges: the five shipped jobs carry example defaults (weather:Brooklyn, a fixed news trio) that you are expected to edit after agentmailkit init.
Contributing
Issues and pull requests welcome. The rule that governs review: behaviour is configuration, not code. If a change adds an if to the engine for one email's sake, it probably wants to be a plugin.
License
MIT. See LICENSE.
來源:README.md,提交 0804055
工具
0版本歷史
1- v0.2.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分