
3LT Letter Mail
com.3lgrouptechnologyv1.0.0更新於 Oct 3, 2026
Give AI assistants hands: send real USPS letters via MCP.
概覽
讓助理透過託管印刷郵寄服務起草、報價並請求寄出真實的 USPS 紙本信件,寄出前需人工核准。
- 功能
- 此伺服器透過 streamable HTTP 提供三個工具:draft_letter 建立草稿、驗證收件地址、篩選內容並回傳報價,不會寄出任何信件;request_send 請求寄出草稿;send_status 查詢狀態、核准狀態、信任層級決定與帳務狀態。每次寄送都經過核准紀錄,不是一鍵允許/拒絕連結,就是受信任金鑰的長期授權。批次任務可對多位收件者循環呼叫這些工具,每次寄送都會產生明細收據。
- 適用情境
- 當助理需要產生並寄出真實紙本信件時使用,例如向多位收件者寄送稅務表單或通知,不必列印、裝信封或跑郵局。適合每次寄送由人工核准,或受信任金鑰在支出上限內自動寄送的工作流程。它不用於電子郵件或純數位投遞。
- 執行需求
- 使用託管服務只需 streamable HTTP 端點與向服務商取得的 API 金鑰,在每次工具呼叫時以 api_key 參數傳入;清單未宣告環境變數或標頭。自行架設需要 Python、PostGrid 金鑰(POSTGRID_API_KEY),如需帳務還需 Stripe 金鑰,以及本機 SQLite 資料庫。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 3LT Letter Mail,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"3lt-letter-mail": {
"type": "http",
"url": "https://3lgrouptechnology.com/mcp"
}
}
}README
3LT Letter Mail — MCP Server
Give your AI assistant hands. 3L-Group Technology is a print-and-mail rail: an AI agent calls our MCP tools, and a real physical letter goes out through the U.S. Postal Service. Draft a letter in chat, approve it, and it's in the mail — no printing, no envelopes, no post office run.
🌐 https://3lgrouptechnology.com
Use the hosted service (no setup)
The public MCP endpoint is live:
Transport: streamable HTTP. Authentication: pass your API key as the
api_key argument on every tool call. Get an API key at 3lgrouptechnology.com.
Connect from Claude
Claude (claude.ai) supports custom MCP connectors: add a new connector with
the server URL above. When the assistant calls a tool, it supplies your
lms_... API key as the api_key parameter. (The service never sees your
Claude account — the key is the only credential.)
Connect from Cursor
Settings → MCP → Add custom MCP server:
Connect from any MCP client
Any client that speaks streamable HTTP works: point it at
https://3lgrouptechnology.com/mcp and provide your API key per tool call.
Tools
There is no tool that mails a letter directly. Every send passes through an approval record: a human tap or a standing Connect authorization.
Pricing
Flat $1.00 service fee per letter, plus postage (USPS First-Class via our print-and-mail provider). One price, no tiers, no volume games. Certified Mail with Electronic Return Receipt is opt-in and costs more — it's never the default.
Example: "Send my 2026 1099s to these 40 people" → your assistant loops
draft_letter → request_send → send_status for each recipient. Bulk runs
auto-send inside your monthly cap; anything flagged falls back to a one-tap
Allow/Deny link. One itemized receipt per send.
Self-hosting
Prefer to run your own rail? The full stack is in this repo.
Quickstart
Creates .venv, installs deps, runs the test suites, and starts the REST API
on http://127.0.0.1:8000 (dashboard at /).
With no POSTGRID_API_KEY set, drafts fail cleanly at address verification —
nothing can be mailed. Set a test key to exercise the full flow with
simulated sends:
MCP server (separate terminal):
What's in the repo
- MCP server (
mcp_server.py) — the 3 tools above over streamable HTTP. - REST API (
api.py, FastAPI) — agent endpoints (X-API-Key) for drafts and send requests; admin endpoints (X-Admin-Token) to issue keys, approve/reject sends, manage trust tiers + spend caps; customer dashboard (/customer), approval dashboard (/), audit history, Stripe webhooks. - Trust tiers (per API key) —
approval(default for admin-issued keys: human tap every send) oron_command(trusted: auto-sends inside guardrails — content screening on every send, per-send + daily spend caps, hard monthly cap, >3× 7-day anomaly rule,needs_reviewfallback). All decisions audited. - One-time rail authorization ("Connect") —
POST /v1/connectcreates a Stripe customer + returns a/connect/<token>page (card/Apple Pay/Google Pay via Payment Element, monthly cap confirmed). Finalizing issues anon_commandAPI key with per-send approval OFF — the single Connect authorization is the standing approval, so sends flow with zero prompts inside the caps. Hitting the monthly cap is a hard 402 "raise your cap" — never a silent overage. - Billing (Stripe, test mode only) — SetupIntents for saving payment methods, off-session authorize → fulfill → capture on every approval (authorization voided if the send fails), idempotency keys per send.
- Risk engine — spending limits are risk-derived, not static. New keys
start at L0 ($50/mo); clean history auto-raises limits; flags, failed
payments, and chargebacks tighten or freeze the key. Every decision
audited with human-readable reasons. See
risk.py. - Abuse screening — content blocklist runs at draft time AND again at approval/fulfillment time.
- Storage — SQLite (
db.py): api_keys, drafts, send_requests, billing_receipts, approval_tokens, audit_log.
Environment variables
Copy .env.example to .env and fill in real values. Never commit .env.
Run the tests
Deploy notes
- One small VPS is plenty. Run the API behind Caddy/Nginx with TLS. Keep the MCP port on localhost or behind the same TLS proxy.
- Process manager: a systemd unit per process —
uvicorn api:appon :8000 andpython mcp_server.pyon :8001, both withRestart=alwaysand env vars from anEnvironmentFile(never in the unit file itself). - SQLite is fine to start; move to Postgres with concurrent writers.
- Back up
lms.db— it holds your audit trail.
Safety notes
- There is no code path that calls
mail_provider.create_letterexceptcore.approve_send, which requires aPENDINGrequest and a human admin action. The MCP tools cannot send. postgrid_clientsetstrust_env=Falseso the API key is never routed through ambient proxy env vars.- API keys are stored as SHA-256 hashes; the raw key is shown once at issue.
來源:README.md,提交 28d4189
工具
0版本歷史
1- v1.0.0最新Oct 3, 2026