MCP Server

Model Context Protocol (MCP) server that connects LLMs and applications to Decodo's platform

A Model Context Protocol (MCP) server that connects LLMs and applications to Decodo's platform. The server facilitates integration between MCP-compatible clients and Decodo's services, streamlining access to our tools and capabilities.

MCP is available with Web API Advanced plans.

📘

More information can be found on GitHub here.

And on Step-by-Step guide here.

Quick start via Smithery (Recommended)

Visit the decodo-mcp-server page on Smithery, select your preferred MCP client and generate installation instructions.

Obtain Web Scraping API credentials

You'll need the Decodo Advanced Web Scraping API credentials, which you can get by starting a free trial on the dashboard. Once you have a plan activated, take a note of your generated username and password:

Running the MCP server locally (manual)

Prerequisites

Step-by-step guide

  1. Clone this repository:
git clone https://github.com/Decodo/decodo-mcp-server
  1. Run the following commands in the terminal:
cd decodo-mcp-server
npm install
npm run build
  1. Take note of your build location:
cd build/
pwd

Adding index.js to the end of this directory, your build file location should look something like this:

/Users/your.user/projects/decodo-mcp/build/index.js
  1. Update your MCP client with the server information:
  • Claude Desktop

Follow the guide here to find the setup file, then update claude_desktop_config.json to look like this:

{
  "mcpServers": {
    "decodo-mcp": {
      "command": "node",
      "args": ["/Users/your.user/projects/decodo-mcp/build/index.js"],
      "env": {
        "SCRAPER_API_USERNAME": "your_username",
        "SCRAPER_API_PASSWORD": "your_password"
      }
    }
  }
}
  • Cursor

For installation instructions, see the Cursor documentation.

Tools

The server exposes the following tools:

ToolDescriptionExample prompt
scrape_as_markdownScrapes any target URL, expects a URL to be given via prompt. Returns results in MarkdownScrape peacock.com from a US IP address and tell me the pricing
google_search_parsedScrapes Google Search for a given query, and returns parsed resultsScrape Google Search for shoes and tell me the top position
amazon_search_parsedScrapes Amazon Search for a given query, and returns parsed resultsScrape Amazon Search for toothbrushes

Parameters

The following parameters are inferred from user prompts:

ParameterDescription
jsRenderWhen set to true, enables javascript rendering.
geoThe geographical location on which the result depends. Read more.
localeSets the locale of the request
tokenLimitTruncates the response content up to this limit, useful if the context window is small
fullResponseSkips automatic truncation and returns full content. If context window is small, may throw warnings

Examples

Scraping geo-restricted content

Query your AI agent with the following prompt:

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

This prompt will say that peacock.com is geo-restricted. To bypass the geo-restriction:

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

Limiting number of response tokens

If your agent has a small context window, the content returned from scraping will be automatically truncated, in order to avoid context-overflow. You can increase the number of tokens returned within your prompt:

Scrape hacker news, return 50k tokens.

If your agent has a big context window, tell it to return full content:

Scrape hacker news, return full content.

Related repositories

Web Scraping API

Google Maps scraper

Amazon scraper


Support

Still can't find an answer? Want to say hi? We take pride in our 24/7 customer support. Alternatively, you can reach us via our support email at [email protected].

Feedback

Something's missing? Request an article!
Got feedback? Let us know how we're doing and what can be improved.