WebExtrator MCP Integration Guide
WebExtrator MCP can render web pages loaded by JavaScript and return HTML, or directly extract structured content such as articles and products from web pages. Slower pages can be processed asynchronously.
¶ Connect to the Hosted Service
Select remote MCP (Streamable HTTP) in the client and enter https://webextrator.mcp.acedata.cloud/mcp as the server address. After selecting OAuth, follow the browser prompts to log in to 零壹AI and authorize access.
| Client | How to connect |
|---|---|
| Claude / Claude Desktop | Add a custom connector under “Customize → Connectors,” paste the server address, and log in. |
| Claude Code | Run claude mcp add --transport http --scope user webextrator https://webextrator.mcp.acedata.cloud/mcp, open /mcp in the session, select the server, and complete authorization. |
| Codex CLI | Run codex mcp add webextrator --url https://webextrator.mcp.acedata.cloud/mcp, then run codex mcp login webextrator. |
| Cursor | Create a new HTTP server in the MCP settings, enter the address, and follow the prompts to log in when connecting. |
| VS Code | Run MCP: Add Server from the command palette, select HTTP and enter the address, then use MCP: List Servers to check the status. |
If using an application API Key, select a general-purpose application or an application with WebExtrator web rendering, intelligent extraction, and task query permissions on the application management page, and check the allowed APIs and balance. In the client’s private credential settings, set the request header to Authorization: Bearer <application API Key>. Applications and API Keys
¶ Use an Application Key with Gemini CLI and OpenCode
First, set the environment variable ACEDATACLOUD_API_TOKEN to the application API Key in the terminal where you launch the client. The following commands use macOS or Linux shell quoting and save the variable reference.
| Client | How to connect |
|---|---|
| Gemini CLI | Run gemini mcp add --scope user --transport http webextrator https://webextrator.mcp.acedata.cloud/mcp --header 'Authorization: Bearer ${ACEDATACLOUD_API_TOKEN}', then check with gemini mcp list. |
| OpenCode 2.x | Run opencode mcp add webextrator --global --url https://webextrator.mcp.acedata.cloud/mcp --header 'Authorization=Bearer {env:ACEDATACLOUD_API_TOKEN}', then run opencode reload and opencode mcp list. |
For OpenCode 1.x, add a service named webextrator to the mcp object in your personal opencode.json, set type to remote, url to the address above, and oauth to false, and set headers.Authorization to Bearer {env:ACEDATACLOUD_API_TOKEN}. OpenCode 1.x Configuration
¶ Connect Locally via stdio
Install uv, open the local MCP configuration in Claude Desktop’s developer settings, and merge the following entry into the user configuration. Replace the placeholder with the application API Key, save, and restart the client. Other clients that support stdio can also run the uvx mcp-webextrator command and pass the key to the process as an environment variable.
{
"mcpServers": {
"webextrator": {
"command": "uvx",
"args": [
"mcp-webextrator"
],
"env": {
"ACEDATACLOUD_API_TOKEN": "YOUR_API_KEY"
}
}
}
}
The local process still calls the 零壹AI API. Store the key in your personal client configuration or credential manager. mcp-webextrator Package
¶ Verify the Connection and Available Tools
Open the client’s tool list, find WebExtrator, and first ask the assistant to call webextrator_get_usage_guide and explain what rendering and extraction each return. This query can check whether the client has loaded the tools without submitting a business request.
| Purpose | Tool | Usage |
|---|---|---|
| Render web pages | webextrator_render |
Pass url to obtain the rendered HTML. Specify wait_for_selector when you need to wait for dynamic content. |
| Extract content | webextrator_extract |
Pass url; use expected_type to specify article, product, or general. |
| Query tasks | webextrator_get_task, webextrator_get_tasks_batch |
Query a single task by task_id or trace_id, or query multiple tasks in a batch by their returned IDs. |
| View parameters | webextrator_get_usage_guide |
View rendering, structured extraction, and task parameters. |
¶ Invocation Example
Ask the assistant: “Call webextrator_extract on the public article URL I provide, set expected_type to article, and organize the returned title and body.” For synchronous requests, the extraction result can be read directly.
If the page takes longer to load, pass async=true and save the returned task_id. Use webextrator_get_task to query the original task; after finished_at appears, check whether it succeeded or failed, and read the result from response if successful. If the goal is to retain the page HTML, use webextrator_render instead.
Before making an actual call, you can check current pricing and availability on the service page. WebExtrator Service · Extraction API · Rendering API · Task Query API

