io.github.parseur/parseur-py
OfficialClick on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@io.github.parseur/parseur-pylist documents in mailbox 12345"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π€π§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.
β¨ 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)
β
Built-in MCP server to drive Parseur from AI assistants (Claude, Cursor, β¦)
Related MCP server: Moleculer MCP Bridge
β οΈ 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
pip install parseur-pyWith event listener support (Flask + localtunnel)
pip install "parseur-py[listener]"With MCP server support (use Parseur from AI assistants)
pip install "parseur-py[mcp]"Install the package from source
pip install -e .Build documentation
pip install -r requirements-doc.txt
cd docs
make htmlRun the tests
Unit tests run fully offline:
pytestIntegration 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):
PARSEUR_API_BASE=https://api.parseur.com \
PARSEUR_API_KEY=sk_your_key \
pytest tests/integration -vInitialize your configuration
Store your Parseur API credentials securely:
parseur init --api-key YOUR_PARSEUR_API_KEYYour config is saved (by default) in:
~/.parseur.confExample usage
List all your mailboxes:
parseur list-mailboxesList documents in a mailbox:
parseur list-documents 12345Upload a file to a mailbox (add --wait to block until it is parsed, with a live progress bar):
parseur upload-file 12345 ./path/to/document.pdf
parseur upload-file 12345 ./path/to/document.pdf --waitDownload a mailbox's results as a file (stdout by default, or --output):
parseur download-mailbox 12345 --format csv -o results.csv # whole mailbox
parseur list-parser-fields 12345 # find a table field id
parseur download-field 12345 PF951 --format xlsx -o lines.xlsx # a table fieldRegister a custom webhook:
parseur create-webhook --event document.processed --target-url https://yourserver.com/webhook --mailbox-id 12345Listen to events in real time (requires [listener]):
parseur listen --event document.processed --mailbox-id 12345With forwarding:
parseur listen --event document.processed --mailbox-id 12345 --redirect-url http://localhost --redirect-port 8000π CLI Commands
Run:
parseur --helpfor 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
--waitfor 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)
mcp: Run the Parseur MCP server so AI assistants can manage your account (requires
[mcp])
π 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.processeddocument.processed.flatteneddocument.template_neededdocument.export_failedtable.processedtable.processed.flattened
Your webhook endpoint will receive POST notifications with Parseur payloads, enabling real-time integrations with your systems.
π€ MCP Server (AI assistants)
parseur-py ships an MCP server that exposes Parseur as tools any MCP-compatible AI assistant (Claude Desktop, Codex, Cursor, Claude Code, and others) can call directly.
Start with MCP.md if you want to connect Parseur to Claude, Codex, or Cursor. It separates the recommended user setup from the developer setup and includes copy-paste configs for each client.
The full tool reference is in MCP-TOOLS.md, and maintainer publishing instructions are in MCP-PUBLISHING.md.
Quick zero-install command:
uvx --from "parseur-py[mcp]" parseur-pyπ οΈ Configuration
Your API token and settings are stored in a simple INI file:
[parseur]
api_token = YOUR_API_KEY
base_url = https://api.parseur.comYou 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:
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:
parseur.Mailbox.list(api_key="sk_account_a")
parseur.Document.upload_file(123, "invoice.pdf", api_key="sk_account_b")π Documentation
This package mirrors Parseurβs REST API, adding pagination handling, schema support, and convenient CLI commands.
πΌ License
MIT License
π€ Contributing
We welcome contributions! Please:
Fork the repo
Create your feature branch (
git checkout -b feature/foo)Commit your changes (
git commit -am 'Add foo')Push to the branch (
git push origin feature/foo)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!
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceMCP Server for interacting with the Langflow API via a natural language interface. It exposes Langflow functionalities as tools for LLMs.Last updatedMIT
- Alicense-qualityDmaintenanceMCP server that exposes Moleculer.js microservice actions as AI tools, enabling AI agents to interact with Moleculer services.Last updated254MIT
- Alicense-qualityDmaintenanceMCP server for ReceiptConverter that allows AI assistants to parse any receipt or invoice image/PDF into structured JSON with a single tool call.Last updated3MIT
- Alicense-qualityCmaintenanceMCP server that exposes local Python scripts as tools for AI clients (e.g. Claude Desktop), enabling directory tree generation, Excel-to-text conversion, Python code extraction, and text file merging.Last updated1MIT
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/parseur/parseur-py'
If you have feedback or need assistance with the MCP directory API, please join our Discord server