You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* [Feat] Support `vl_rec_api_model_name` and add notes on hosted VLM services (#17367)
* Add notes on hosted VLM services
* Update code
* Update MCP server docs
* Limit lower bound of paddlex
* Reset paddlex lower bound version
* [Feat] Support Qianfan PP-StructureV3 MCP server (#17329)
* Support Qianfan PP-StructureV3 MCP server
* Bump version to 0.4.1
Copy file name to clipboardExpand all lines: docs/version3.x/deployment/mcp_server.en.md
+37-7Lines changed: 37 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,7 +146,7 @@ This section explains how to use the PaddleOCR MCP server within Claude for Desk
146
146
```json
147
147
{
148
148
"mcpServers": {
149
-
"paddleocr-ocr": {
149
+
"paddleocr": {
150
150
"command": "paddleocr_mcp",
151
151
"args": [],
152
152
"env": {
@@ -205,7 +205,7 @@ This section explains how to use the PaddleOCR MCP server within Claude for Desk
205
205
206
206
4. **Restart the MCP Host**
207
207
208
-
Restart Claude for Desktop. The `paddleocr-ocr` tool should now be available in the application.
208
+
Restart Claude for Desktop. The `paddleocr` server should now be available in the application.
209
209
210
210
### 2.2 MCP Host Configuration Details
211
211
@@ -238,7 +238,7 @@ Configuration example:
238
238
```json
239
239
{
240
240
"mcpServers": {
241
-
"paddleocr-ocr": {
241
+
"paddleocr": {
242
242
"command": "paddleocr_mcp",
243
243
"args": [],
244
244
"env": {
@@ -262,7 +262,37 @@ Configuration example:
262
262
263
263
- Do not expose your access token.
264
264
265
-
#### Mode 3: Self-hosted Service
265
+
#### Mode 3: Qianfan Platform Services
266
+
267
+
1. Install `paddleocr-mcp`.
268
+
2. Obtain an API key by referring to the [Qianfan Platform Official Documentation](https://cloud.baidu.com/doc/qianfan-api/s/ym9chdsy5).
269
+
3. Modify the `claude_desktop_config.json` file according to the configuration example below. Set `PADDLEOCR_MCP_QIANFAN_API_KEY` to your Qianfan platform API key.
-`PADDLEOCR_MCP_PIPELINE` should be set to the pipeline name. See Section 4 for more details. The Qianfan platform service currently only supports PaddleOCR-VL and PP-StructureV3.
294
+
295
+
#### Mode 4: Self-hosted Service
266
296
267
297
1. In the environment where you need to run the PaddleOCR inference server, run the inference server as per the [PaddleOCR serving documentation](./serving.en.md).
268
298
2. Install `paddleocr-mcp` where the MCP server will run.
@@ -274,7 +304,7 @@ Configuration example:
274
304
```json
275
305
{
276
306
"mcpServers": {
277
-
"paddleocr-ocr": {
307
+
"paddleocr": {
278
308
"command": "paddleocr_mcp",
279
309
"args": [],
280
310
"env": {
@@ -304,7 +334,7 @@ Currently, for the PaddleOCR official website and self-hosted modes, and (for CP
304
334
```json
305
335
{
306
336
"mcpServers": {
307
-
"paddleocr-ocr": {
337
+
"paddleocr": {
308
338
"command": "uvx",
309
339
"args": [
310
340
"--from",
@@ -326,7 +356,7 @@ Currently, for the PaddleOCR official website and self-hosted modes, and (for CP
Copy file name to clipboardExpand all lines: docs/version3.x/pipeline_usage/PaddleOCR-VL.en.md
+87-6Lines changed: 87 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -280,7 +280,12 @@ If not set, the initialized parameter value will be used.
280
280
</tr>
281
281
<tr>
282
282
<td><code>vl_rec_max_concurrency</code></td>
283
-
<td>If the multimodal recognition model uses an inference service, this parameter is used to specify the maximum number of concurrent requests.</td>
283
+
<td><b>Meaning:</b>If the multimodal recognition model uses an inference service, this parameter is used to specify the maximum number of concurrent requests.</td>
284
+
<td><code>int</code></td>
285
+
</tr>
286
+
<tr>
287
+
<td><code>vl_rec_api_model_name</code></td>
288
+
<td>If the multimodal recognition model uses an inference service, this parameter is used to specify the model name of the service.</td>
284
289
<td><code>str</code></td>
285
290
</tr>
286
291
<tr>
@@ -594,7 +599,13 @@ If not set, the initialized parameter value will be used.
594
599
</tr>
595
600
<tr>
596
601
<td><code>vl_rec_max_concurrency</code></td>
597
-
<td>If the multimodal recognition model uses an inference service, this parameter is used to specify the maximum number of concurrent requests.</td>
602
+
<td><b>Meaning:</b>If the multimodal recognition model uses an inference service, this parameter is used to specify the maximum number of concurrent requests.</td>
603
+
<td><code>int|None</code></td>
604
+
<td><code>None</code></td>
605
+
</tr>
606
+
<tr>
607
+
<td><code>vl_rec_api_model_name</code></td>
608
+
<td>If the multimodal recognition model uses an inference service, this parameter is used to specify the model name of the service.</td>
598
609
<td><code>str|None</code></td>
599
610
<td><code>None</code></td>
600
611
</tr>
@@ -1042,6 +1053,8 @@ There are two methods to launch the VLM inference service; choose either one:
1042
1053
1043
1054
- Method 2: Launch the service by manually installing dependencies via the PaddleOCR CLI.
1044
1055
1056
+
In addition, cloud platforms such as [SiliconFlow](https://siliconflow.cn/) and [Novita AI](https://novita.ai/models-console/model-detail/paddlepaddle-paddleocr-vl) also provide managed services. If you choose to use such services, you can skip this section and directly read [3.2 Client Usage Methods](#32-client-usage-methods).
1057
+
1045
1058
#### 3.1.1 Method 1: Using Docker Image
1046
1059
1047
1060
PaddleOCR provides Docker images for quickly launching vLLM or FastDeploy inference services. You can use the following commands to start the services (requires Docker version >= 19.03, a machine equipped with a GPU, and NVIDIA drivers supporting CUDA 12.6 or later):
@@ -1141,15 +1154,83 @@ After launching the VLM inference service, the client can call the service throu
1141
1154
Specify the backend type (`vllm-server` or `sglang-server`) using `--vl_rec_backend` and the service address using `--vl_rec_server_url`, for example:
In addition, you can specify the model name used by the service via `--vl_rec_api_model_name`, and specify the API key used for authentication via `--vl_rec_api_key`. Examples are as follows:
1161
+
1162
+
Using a service started with the default parameters of `vllm serve`:
Pass the `vl_rec_backend` and `vl_rec_server_url` parameters when creating a `PaddleOCRVL` object:
1196
+
When creating a `PaddleOCRVL` object, pass the `vl_rec_backend` and `vl_rec_server_url` parameters to specify the backend type and the service endpoint, respectively:
In addition, you can specify the model name used by the service via `vl_rec_api_model_name`, and specify the API key used for authentication via `vl_rec_api_key`.
1203
+
1204
+
Using a service started with the default parameters of `vllm serve`:
0 commit comments