Skip to main content
Glama
Decodo

Decodo MCP Server

by Decodo

Decodo MCP 服务器

Install MCP Server

本仓库提供了一个模型上下文协议 (MCP) 服务器,用于将 LLM 和应用程序连接到 Decodo 平台。该服务器促进了 MCP 兼容客户端与 Decodo 服务之间的集成,简化了对我们工具和功能的访问。

功能特性

  • 轻松访问网页数据。简化了从网站和在线资源获取信息的过程。

  • 地理位置灵活性。无论区域限制如何,均可访问内容。

  • 增强的隐私保护。在保持匿名的情况下浏览和收集数据。

  • 可靠的抓取。采用先进技术以避免检测和封锁。

  • 简单的集成。与 Claude Desktop、Cursor 和 Windsurf 等主流 MCP 客户端无缝设置。

连接到 Decodo MCP 服务器

  1. 前往 decodo.com 并开启 Web Scraping API 计划(提供免费试用)。

  2. 计划开启后,从 仪表板 获取 Web Scraping API 基本身份验证令牌。

  3. 打开您首选的 MCP 客户端并添加以下配置:

{
  "Decodo": {
    "url": "https://mcp.decodo.com/mcp",
    "headers": {
      "Authorization": "Basic <basic_auth_token>"
    }
  }
}

在本地运行 MCP 服务器

先决条件

分步指南

  1. 克隆此仓库:

git clone https://github.com/Decodo/decodo-mcp-server
  1. 在终端中运行以下命令:

cd decodo-mcp-server
npm install
npm run build
  1. 记下您的构建位置:

cd build/
pwd

index.js 添加到此目录末尾,您的构建文件位置应如下所示:

/Users/your.user/projects/decodo-mcp/build/index.js
  1. 使用服务器信息更新您的 MCP 客户端:

工具集

工具被组织成工具集。您可以通过 toolsets 查询参数传递逗号分隔的列表来选择性地启用特定工具集:

    "Decodo MCP Server": {
      "url": "https://mcp.decodo.com/mcp?toolsets=web,ai",
      "headers": {
        "Authorization": "Basic <your_auth_token>"
      }
    }

当未指定工具集时,将注册所有工具。

工具集

工具

web

scrape_as_markdown, screenshot

search

google_search_parsed

ecommerce

amazon_search_parsed

social_media

reddit_post, reddit_subreddit

ai

chatgpt, perplexity

工具

服务器公开了以下工具:

工具

描述

示例提示词

scrape_as_markdown

抓取任何目标 URL,期望通过提示词提供 URL。以 Markdown 格式返回结果。

从美国 IP 地址抓取 peacock.com 并告诉我价格。

screenshot

截取任何网页的屏幕截图并将其作为 PNG 图像返回。

从美国 IP 地址截取 github.com 的屏幕截图。

google_search_parsed

为给定的查询抓取 Google 搜索结果,并返回解析后的结果。

抓取 Google 搜索关于鞋子的信息,并告诉我排名第一的结果。

amazon_search_parsed

为给定的查询抓取 Amazon 搜索结果,并返回解析后的结果。

抓取 Amazon 搜索关于牙刷的信息。

reddit_post

为给定的查询抓取特定的 Reddit 帖子,并返回解析后的结果。

抓取以下 Reddit 帖子:https://www.reddit.com/r/horseracing/comments/1nsrn3/

reddit_subreddit

为给定的查询抓取特定的 Reddit 子版块,并返回解析后的结果。

抓取本周 r/Python 上排名前 5 的帖子。

chatgpt

搜索并与 ChatGPT 交互以获取 AI 驱动的响应和对话。

让 ChatGPT 用简单的术语解释量子计算。

perplexity

搜索并与 Perplexity 交互以获取 AI 驱动的响应和对话。

询问 Perplexity Web 开发的最新趋势是什么。

参数

以下参数是从用户提示词中推断出来的:

参数

描述

jsRender

在无头浏览器中渲染目标 URL。

geo

设置请求发起的国家/地区。

locale

设置请求的区域设置。

tokenLimit

将响应内容截断到此限制。如果上下文窗口较小,此功能很有用。

prompt

发送给 AI 工具(chatgpt, perplexity)的提示词。

search

激活 ChatGPT 的网页搜索功能(仅限 chatgpt)。

示例

抓取受地理限制的内容

使用以下提示词查询您的 AI 代理:

Scrape peacock.com from a German IP address and tell me the pricing.

此提示词将显示 peacock.com 受到地理限制。要绕过地理限制:

Scrape peacock.com from a US IP address and tell me the pricing.

限制响应令牌数量

如果您的代理上下文窗口较小,抓取返回的内容将被自动截断,以避免上下文溢出。您可以在提示词中增加返回的令牌数量:

Scrape hacker news, return 50k tokens.

如果您的代理上下文窗口较大,请告知其返回 full content

Scrape hacker news, return full content.

相关仓库

Web Scraping API

Google Maps scraper

Amazon scraper

许可证

所有代码均在 MIT 许可证 下发布。

-
security - not tested
F
license - not found
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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/Decodo/mcp-web-scraper'

If you have feedback or need assistance with the MCP directory API, please join our Discord server