Parseur

io.github.parseur由 GitHub 帳號 parseur 發布v1.6.0更新於 Nov 3, 2026

Manage Parseur.com mailboxes, parser fields, documents, exports and webhooks.

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理透過 Parseur API 管理 Parseur 信箱、解析欄位、文件、匯出與 Webhook。

可以做什麼
  • 列出、搜尋、排序並檢視信箱,包含信箱詳細資料與解析結構
  • 列出、篩選並檢視文件,含詳細資料、處理日誌與已擷取的解析欄位
  • 依檔案、資料夾或文字上傳文件,並重新處理、略過、複製、拆分或刪除文件
  • 將信箱、欄位或匯出結果下載為 CSV、JSON 或 XLSX
  • 建立、列出、啟用、暫停與刪除 Webhook,並監聽文件與表格事件
適用情境
適合已使用 Parseur 進行郵件或文件資料擷取的人,想讓助理在對話中檢視信箱、核對解析結果、上傳新文件或設定 Webhook 整合時使用。
執行需求
以 Python 套件 parseur-py 透過 uvx 在本機執行。需要 Parseur 帳號與 API 金鑰,透過環境變數 PARSEUR_API_KEY 提供;可用 PARSEUR_API_BASE 覆寫 API 基礎位址。需要能連線至 Parseur API 的網路。
安裝前請注意
API 金鑰可存取你的 Parseur 帳號資料,請勿寫入共用設定或日誌。上傳、重新處理、略過、複製、拆分與刪除等文件操作會變更真實資料,Webhook 的建立與刪除會影響線上整合。選用的即時監聽功能會經第三方 localtunnel 伺服器轉送資料,不受 Parseur 隱私條款約束,且沒有端對端加密。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Parseur,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

🤖🧙parseur-py

parseur-py is a modern Python client for the Parseur API.

It lets you manage mailboxes, documents, uploads, and webhooks programmatically or from the command line.

Built to help you automate document parsing at scale, parseur-py makes integrating with Parseur fast, easy, and Pythonic.

[GitHub Repo] [PyPI version] [License: MIT] [Read the Docs] [PyPI Downloads]


✨ Features

✅ List, search, and sort mailboxes
✅ Get mailbox details and schema
✅ List, search, filter, and sort documents
✅ Upload documents by file or email content
✅ Reprocess, skip, copy, or delete documents
✅ Manage custom webhooks for real-time events
✅ Listen to events in real time with a temporary webhook & tunnel
✅ Fully-featured Command Line Interface (CLI)


⚠️ Disclaimer about Localtunnel

When using the parseur listen command (with event listener support), your data is forwarded through localtunnel servers.

These servers are not affiliated with Parseur and are not covered by Parseur’s Privacy Policy or Data Processing Agreement.

Data transmitted through localtunnel is not encrypted end-to-end.

➡️ Use this feature at your own risk.

For production-grade setups, we strongly recommend configuring your own secure webhook endpoint instead of relying on localtunnel.


🚀 Quick Start

Install the package

bash
pip install parseur-py

With event listener support (Flask + localtunnel)

bash
pip install "parseur-py[listener]"

Install the package from source

bash
pip install -e .

Build documentation

bash
pip install -r requirements-doc.txtcd docsmake html

Run the tests

Unit tests run fully offline:

bash
pytest

Integration tests hit the real Parseur API. They create and delete real resources, so they're skipped unless credentials are provided via the environment (never committed or stored in ~/.parseur.conf):

bash
PARSEUR_API_BASE=https://api.parseur.com \PARSEUR_API_KEY=sk_your_key \pytest tests/integration -v

Initialize your configuration

Store your Parseur API credentials securely:

bash
parseur init --api-key YOUR_PARSEUR_API_KEY

Your config is saved (by default) in:

~/.parseur.conf

Example usage

List all your mailboxes:

bash
parseur list-mailboxes

List documents in a mailbox:

bash
parseur list-documents 12345

Upload a file to a mailbox (add --wait to block until it is parsed, with a live progress bar):

bash
parseur upload-file 12345 ./path/to/document.pdfparseur upload-file 12345 ./path/to/document.pdf --wait

Download a mailbox's results as a file (stdout by default, or --output):

bash
parseur download-mailbox 12345 --format csv -o results.csv     # whole mailboxparseur list-parser-fields 12345                               # find a table field idparseur download-field 12345 PF951 --format xlsx -o lines.xlsx  # a table field

Register a custom webhook:

bash
parseur create-webhook --event document.processed --target-url https://yourserver.com/webhook --mailbox-id 12345

Listen to events in real time (requires [listener]):

bash
parseur listen --event document.processed --mailbox-id 12345

With forwarding:

bash
parseur listen --event document.processed --mailbox-id 12345 --redirect-url http://localhost --redirect-port 8000

📜 CLI Commands

Run:

bash
parseur --help

for a full list of available commands.

Highlights

  • init: Set your API token and (optional) base URL
  • list-mailboxes: Search and sort mailboxes
  • get-mailbox: Fetch a mailbox by ID
  • get-mailbox-schema: Get the mailbox parsing schema
  • list-parser-fields: List the fields extracted by a mailbox
  • download-mailbox / download-field / download-export: Download results as a file (csv/json/xlsx)
  • list-export-configs: List a mailbox's custom export configurations
  • list-documents: Advanced document search, filtering, sorting
  • get-document / get-document-logs: Fetch document details and processing logs
  • reprocess-document / skip-document / copy-document / split-document / reverse-split-document / delete-document: Document lifecycle operations
  • upload-file / upload-text: Upload new documents (add --wait for synchronous parsing)
  • upload-folder: Upload every file matching a glob path
  • create-webhook / get-webhook / list-webhooks / delete-webhook: Create, get, list, and delete custom webhook integrations.
  • enable-webhook / pause-webhook: Activate or pause a webhook for a specific mailbox.
  • listen: Create a temporary webhook and listen to events in real time (with optional redirect & silent mode)

🔎 Advanced Search & Filtering

Mailbox listing supports:

  • Search by name or email prefix
  • Sort by:
    • name
    • document_count
    • template_count
    • PARSEDOK_count (processed)
    • PARSEDKO_count (failed)
    • QUOTAEXC_count (quota exceeded)
    • EXPORTKO_count (export failed)

Document listing supports:

  • Search in:
    • document ID
    • document name
    • template name
    • email addresses (from, to, cc, bcc)
    • document metadata header
  • Sort by:
    • name
    • created (received date)
    • processed date
    • status
  • Filter by:
    • received_after / received_before dates
  • Include parsed result in response

⚡ Webhooks Support

Easily register custom webhooks for events like:

  • document.processed
  • document.processed.flattened
  • document.template_needed
  • document.export_failed
  • table.processed
  • table.processed.flattened

Your webhook endpoint will receive POST notifications with Parseur payloads, enabling real-time integrations with your systems.


🤖 MCP Server (AI assistants)

Parseur hosts an MCP server at https://api.parseur.com/mcp. Add this URL to any MCP-compatible AI assistant (Claude, Codex, Cursor, …) to drive Parseur from it. No local install is needed.


🛠️ Configuration

Your API token and settings are stored in a simple INI file:

[parseur]api_token = YOUR_API_KEYbase_url = https://api.parseur.com

You can customize the path by setting `--config-path` in your calls if needed.


🐍 Python Client Usage

Beyond the CLI, parseur-py is a standard Python library. Example:

python
import parseur
parseur.api_key = "YOUR_API_KEY"
for mailbox in parseur.Mailbox.list():    print(mailbox.name)

Per-call API key override

Every method accepts an optional api_key argument that takes priority over the global parseur.api_key for that single call — useful for multi-account or multi-tenant code:

python
parseur.Mailbox.list(api_key="sk_account_a")parseur.Document.upload_file(123, "invoice.pdf", api_key="sk_account_b")

📖 Documentation

  • Parseur Official API Docs
  • This package mirrors Parseur’s REST API, adding pagination handling, schema support, and convenient CLI commands.

💼 License

MIT License


🤝 Contributing

We welcome contributions! Please:

  1. Fork the repo
  2. Create your feature branch (git checkout -b feature/foo)
  3. Commit your changes (git commit -am 'Add foo')
  4. Push to the branch (git push origin feature/foo)
  5. Open a pull request

✨ Credits

Developed with ❤️ by the Parseur team.


Parseur is the easiest way to automatically extract data from emails and documents. Stop copy-pasting data and automate your workflows!

來源:README.md,提交 e6c4aab

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.6.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分