Skip to main content
Glama
hexdecimal16

Web Search MCP Tool

by hexdecimal16

Web Search MCP Tool

A Model Context Protocol (MCP) server that provides a tool for performing Google searches and retrieving the content of the top results.

Features

  • Performs a Google search for a given query.

  • Identifies the top 5 non-social media search results.

  • Crawls the content of the top results.

  • Returns the crawled content as a single string.

Related MCP server: Playread

Prerequisites

  • Python 3.13+

  • uv: This project uses uv for package management. If you don't have it, install it with:

    curl -LsSf https://astral.sh/uv/install.sh | sh

Installation

  1. Clone the repository:

    git clone https://github.com/hexdecimal16/web-search-mcp
    cd web-search-mcp
  2. Create and activate a virtual environment:

    uv venv
    source .venv/bin/activate
  3. Install dependencies: The project's dependencies are defined in pyproject.toml. Install them using uv:

    uv sync

Usage

This tool is designed to be launched by an MCP client application (e.g., Claude Desktop) using stdio as the transport mechanism.

MCP Client Configuration

You must configure your MCP client to launch the tool. The following JSON configuration uses uv to run the web_search.py script.

Note: This configuration is based on the user's specific request. For some MCP client environments that have issues with asyncio event loop conflicts, a different configuration may be needed.

{
  "mcpServers": {
    "web-search": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/your/project/web-search-mcp",
        "run",
        "web_search.py",
        "--timeout=15"
      ]
    }
  }
}

Important: Replace /path/to/your/project/web-search-mcp with the correct absolute path to this project on your filesystem.

Testing

To verify that the script is syntactically correct and the tool is functioning, you can run the included tests using pytest.

  1. Install test dependencies:

    uv pip install pytest pytest-asyncio
  2. Run the tests:

    pytest
F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

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

Related MCP Servers

  • F
    license
    B
    quality
    D
    maintenance
    Enables web searching and content scraping through Google Custom Search API. Provides tools to search the internet, extract webpage content, and automatically scrape search results for comprehensive information gathering.
    3
  • A
    license
    -
    quality
    F
    maintenance
    Enables Google search automation and web content extraction using Playwright. Performs Google searches and fetches main content from web pages, returning structured results in JSON format.
    44
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Enables comprehensive web and news searches via the Google Custom Search API with integrated content extraction using the Mozilla Readability algorithm. It allows users to perform quick snippet lookups or deep searches that fetch and format full article content into clean markdown.
    3
    14
    2
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Enables free web searching using Google search results without the need for API keys or authentication. It returns structured data including titles, URLs, and descriptions with configurable result limits.
    46
    MIT

View all related MCP servers

Related MCP Connectors

  • Search the web and extract clean, readable text from webpages. Process multiple URLs at once to sp…

  • Web search, news, page retrieval, sitemaps, and trending topics through Search1API.

  • LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.

View all MCP Connectors

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/hexdecimal16/web-search-mcp'

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