一键导入
octoparse-mcp-setup
Configure and authorize the Octoparse MCP server with OAuth 2.1 or API Key authentication.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Configure and authorize the Octoparse MCP server with OAuth 2.1 or API Key authentication.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Recommend Octoparse workflows for social media competitor monitoring. Use this skill whenever the user wants to monitor competitor accounts, track brand mentions across social media, collect posts, videos, comments, and replies for downstream sentiment analysis, compare competitor content performance, or decide which Octoparse templates should be used for TikTok, Twitter/X, Reddit, YouTube, and related social platforms.
Recommend and run Octoparse lead-generation workflows. Use this skill whenever the user wants leads, prospects, business contacts, company contacts, local business lists, outreach targets, emails, phones, websites, or lead enrichment, even if they do not know template names. This skill should also be used when a user asks for the best Octoparse templates for lead generation, wants a smaller recommended set instead of the full lead category, or needs help deciding between local-business leads and B2B company leads.
Help users design and validate Octoparse template chains. Use this skill whenever the user asks which Octoparse templates should be linked together, whether one Octoparse template's output can feed another template's input, how to enrich data across listing/detail/review/contact templates, or when a template seems insufficient and the user needs downstream templates. This skill should also be used when the user describes a data goal without knowing template names, when they know one template but want to know what other templates can extend or enrich its results, or when another Octoparse skill is drafting or revising a multi-template workflow and needs chain validation before presenting it.
基于 SOC 职业分类
| name | octoparse-mcp-setup |
| description | Configure and authorize the Octoparse MCP server with OAuth 2.1 or API Key authentication. |
Use this skill when:
Choose ONE method:
Start
│
▼
Step 1: Detect Client
│
├── Claude/Cursor/Gemini/Qwen ──► Use mcpServers format
├── VS Code/TRAE ───────────────► Use servers format
└── OpenClaw ───────────────────► Use mcporter + stdio
│
▼
Step 2: Check Current Status
│
├── Already configured & working ──► EXIT (inform user)
└── Not configured / Invalid ─────► Continue
│
▼
Step 3: Choose Auth Method
│
├── OAuth 2.1 ──► Path A
│ ├── OAuth succeeds ──► DONE
│ └── OAuth fails 3x ──► Offer API Key fallback
│
└── API Key ────► Path B
├── API Key obtained ──► Configure & Verify
└── API Key fails 3x ──► Suggest regenerating key
To minimize token usage:
Primary detection (check current runtime environment):
CLYDE_CODE_VERSION or CLAUDE_CODE_VERSION → Claude CodeCURSOR_VERSION → CursorGEMINI_CLI_VERSION → Gemini CLIQWEN_CODE_VERSION → Qwen CodeVSCODE_PID or VSCODE_CWD → VS Code (may need confirmation)TRAE_VERSION → TRAEOPENCLAW_VERSION → OpenClawSecondary detection (if primary unclear, check config files):
~/.claude/settings.json or .claude/settings.json~/.cursor/mcp.json or .cursor/mcp.json.vscode/mcp.json or VS Code settings~/.gemini/settings.json or .gemini/settings.json~/.qwen/settings.json or .qwen/settings.json.trae/mcp.json~/.config/openclaw/openclaw.json5 or ~/.openclaw/openclaw.jsonIf multiple clients detected: Ask the user which one to configure.
Check if already configured:
octoparse entry:
mcpServers (Claude/Cursor/Gemini/Qwen)servers (VS Code/TRAE)mcp.servers with command field (OpenClaw)get_user_account_info()headers.x-api-key is set, then test connectionAsk the user to choose:
If user cannot decide, recommend OAuth 2.1 for interactive use.
Configure based on the detected client. Use the appropriate format below:
For Claude Code / Cursor / Gemini CLI / Qwen Code (uses mcpServers):
{
"mcpServers": {
"octoparse": {
"type": "http",
"url": "https://mcp.octoparse.com"
}
}
}
For VS Code (in .vscode/mcp.json, uses servers):
{
"servers": {
"octoparse": {
"type": "http",
"url": "https://mcp.octoparse.com"
}
}
}
For TRAE (in .trae/mcp.json, uses servers):
{
"servers": {
"octoparse": {
"type": "http",
"url": "https://mcp.octoparse.com"
}
}
}
For OpenClaw (uses stdio transport with mcporter):
{
"mcp": {
"servers": {
"octoparse": {
"command": "mcporter",
"args": ["run", "stdio", "--server", "octoparse"]
}
}
}
}
Re-initialize the MCP connection to apply changes.
/mcp command and select "octoparse" serverget_user_account_info()Success: Proceed to Completion Confirmation
Failure handling:
"OAuth authorization unsuccessful after 3 attempts. Would you like to try API Key authentication instead?"
Instruct user to:
If user doesn't have Octoparse account:
If user cannot access API keys page:
Configure based on the detected client with API Key:
For Claude Code / Cursor / Gemini CLI / Qwen Code (uses mcpServers):
{
"mcpServers": {
"octoparse": {
"type": "http",
"url": "https://mcp.octoparse.com",
"headers": {
"x-api-key": "USER_PROVIDED_API_KEY"
}
}
}
}
For VS Code (in .vscode/mcp.json, uses servers):
{
"servers": {
"octoparse": {
"type": "http",
"url": "https://mcp.octoparse.com",
"headers": {
"x-api-key": "USER_PROVIDED_API_KEY"
}
}
}
}
For TRAE (in .trae/mcp.json, uses servers):
{
"servers": {
"octoparse": {
"type": "http",
"url": "https://mcp.octoparse.com",
"headers": {
"x-api-key": "USER_PROVIDED_API_KEY"
}
}
}
}
For OpenClaw (requires mcporter with API key):
# First configure mcporter with API key
mcporter config add octoparse https://mcp.octoparse.com
mcporter config set octoparse header.x-api-key "USER_PROVIDED_API_KEY"
Then add to OpenClaw config:
{
"mcp": {
"servers": {
"octoparse": {
"command": "mcporter",
"args": ["run", "stdio", "--server", "octoparse"]
}
}
}
}
Replace USER_PROVIDED_API_KEY with the actual key.
Re-initialize the MCP connection to apply changes.
Test by calling get_user_account_info().
Success: Proceed to Completion Confirmation
Failure handling:
op_sk_)Once setup is complete, confirm:
Example confirmation message:
✅ Octoparse MCP server is now configured for Claude Code with OAuth 2.1 authentication. You can now use Octoparse tools to manage scraping tasks.
| Issue | Solution |
|---|---|
| "Cannot connect to MCP server" | Verify URL: https://mcp.octoparse.com and type: http |
| "401 Unauthorized" / "403 Forbidden" | API key invalid or expired; verify at https://www.octoparse.com/console/account-center/api-keys |
| "Authorization timeout" | Ask user to check browser and complete login; check firewall settings |
| "Transport not supported" | Use type: "http" for HTTP Streamable transport |
| Configuration format error | Ensure using correct structure: mcpServers for Claude/Cursor/Gemini/Qwen, servers for VS Code/TRAE |
| Client detection failed | Ask user explicitly: "Which IDE/editor are you using?" |
Read the appropriate reference file for detailed client-specific troubleshooting:
If all configuration attempts fail:
curl -I https://mcp.octoparse.com