MinerU is a tool that converts FILES into machine-readable formats (e.g., markdown, JSON), allowing for easy extraction into any format. MinerU was born during the pre-training process of InternLM. We focus on solving symbol conversion issues in scientific literature and hope to contribute to technological development in the era of large models.https://github.com/opendatalab/MinerU
MinerU is a tool that converts PDFs into machine-readable formats (e.g., markdown, JSON), allowing for easy extraction into any format.
MinerU is a document parser that can parse complex document data for any downstream LLM use case (RAG, agents)
GitHub - opendatalab/MinerU: A high-quality tool for convert PDF to Markdown and JSON.
MinerU 4.x support was introduced in 0.6.0. If an older plugin calls and receives 404 after upgrading MinerU, update the plugin, select Local Deployment, and point Base URL at the document parsing service (). The WebUI and OpenAI-compatible VLM service are different endpoints.
The V1 integration follows the official HTTP API guide and 4.0 migration guide: upload → parse job → poll → download output files. Existing workflows keep the same tool parameters; maps to V1 , to per-file , and selects parsing quality.
You can download the YAML file and import it into Dify. This demo includes a basic capability demonstration of the plugin.
Go to "Tools" → "Plugin Market", add the "MinerU" plugin and fill in its credentials. You can save several credentials (for example one for the official API and one for an internal server) and pick one per node.
Saving the credentials checks them with a read-only request.
Network notes for self-hosted servers
Use the same credential for both tools – job ids only exist on the server that created them. A self-hosted MinerU 4.x server keeps jobs in memory, so job ids do not survive a server restart.
To ensure the MinerU plugin can properly handle file uploads, you need to configure the setting in Dify:
Find your Dify deployment directory and edit the file.
Modify the configuration based on your deployment method:
Confirm that the Dify API service's port is exposed externally (check port mapping in the file).
After saving the file, restart the Dify service for the configuration to take effect:
Tips:
If you use your local IP for the , your IP address may change when your network environment changes (e.g., connecting to a different WiFi). When this happens, you'll need to:
- Get your new local IP address
- Update the MinerU plugin's Base URL configuration in Dify
- If necessary (if Dify's is configured with an IP address rather than ), update Dify's file and restart the Dify service
When using the Dify MinerU plugin, especially when processing file uploads, if you don't configure this step, you may encounter errors like . This usually occurs because Dify's service cannot correctly access its own file service.
Please follow the instructions above to configure the settings accordingly, and this issue will be resolved.
https://github.com/langgenius/dify/issues/16327
"This MinerU server cannot export the requested extra formats" – self-hosted MinerU 4.x only returns Markdown, JSON and images. Leave Extra export formats empty.
"The MinerU API token has expired" – generate a new token at https://mineru.net/apiManage/token and update the plugin credentials.
This plugin is powered by MinerU
Some outbound calls build their address at runtime, so the list may be incomplete.
Private network address — this plugin accesses an internal network host.
Last checked 10/13/2026 10:32 PM · version 0.6.1