Web Scraper & DuckDuckGo Search MCP server

Provides web scraping and DuckDuckGo search capabilities for retrieving and processing web content as markdown.
Back to servers
Provider
Surya Madhav
Release date
Mar 07, 2025
Language
Python

The MCP Web Tools Server provides a Model Context Protocol (MCP) implementation that enables LLMs (like Claude) to interact with web content through standardized tools. Currently, it includes a web scraping tool that can fetch and convert web content to markdown format.

Installation

Prerequisites

To use this server, you'll need Python installed on your system.

Setup

  1. Clone the repository:

    git clone <repository-url>
    cd MCP
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    

    For faster installation, you can use uv:

    uv pip install -r requirements.txt
    

Running the Server

Using the Provided Scripts

On macOS/Linux:

# Run the server with stdio transport (default)
./run.sh server

# Run the server with SSE transport
./run.sh server --transport sse --host localhost --port 5000

# Run the Streamlit UI
./run.sh ui

On Windows:

# Run the server with stdio transport (default)
run.bat server

# Run the server with SSE transport
run.bat server --transport sse --host localhost --port 5000

# Run the Streamlit UI
run.bat ui

Running Manually

Using stdio (default):

python server.py

Using SSE:

python server.py --transport sse --host localhost --port 5000

This starts an HTTP server on localhost:5000 that accepts MCP connections.

Running the Streamlit UI:

streamlit run streamlit_app.py

Testing with MCP Inspector

The MCP Inspector helps test and debug MCP servers:

  1. Install the Inspector:

    npm install -g @modelcontextprotocol/inspector
    
  2. Run the Inspector with your server:

    npx @modelcontextprotocol/inspector python server.py
    
  3. Test the web_scrape tool by providing a URL (e.g., example.com) and viewing the returned markdown.

Integrating with Claude for Desktop

To use this server with Claude for Desktop:

  1. Install Claude for Desktop

  2. Open the configuration file:

    • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  3. Add the following configuration (adjust the path as needed):

    {
      "mcpServers": {
        "web-tools": {
          "command": "python",
          "args": [
            "/absolute/path/to/MCP/server.py"
          ]
        }
      }
    }
    
  4. Restart Claude for Desktop

  5. The web_scrape tool should now be available in Claude's interface

Using the Web Tools

Once integrated with Claude, you can ask queries like:

  • "What's on the homepage of example.com?"
  • "Can you fetch and summarize the content from mozilla.org?"
  • "Get the content from wikipedia.org/wiki/Model_Context_Protocol and explain it to me."

Claude will use the web_scrape tool to fetch the content and include it in its response.

Streamlit UI

The included Streamlit application lets you test your MCP servers configured in Claude for Desktop.

Using the Streamlit UI

  1. Start the Streamlit app:

    streamlit run streamlit_app.py
    
  2. Enter the path to your Claude for Desktop configuration file (default path is pre-filled)

  3. Click "Load Servers" to see all available MCP servers

  4. Select a server tab and click "Connect" to load its tools

  5. Select a tool, provide the required parameters, and click "Execute" to run it

Troubleshooting

  • Missing dependencies: Ensure all requirements are installed properly
  • Connection issues: Verify the server is running and properly configured in Claude for Desktop
  • Tool execution errors: Check the server output for error messages
  • Streamlit UI issues: Confirm Streamlit is installed and the configuration path is correct

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later