Web Content MCP Server

Web Content MCP Server

web-content-mcp•byhmalfee

A Model Context Protocol server that offers Google web search and webpage content extraction, converting pages into clean markdown for AI assistants.

License: Not specified•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Provides a web_search tool that searches Google and returns formatted results with extracted content, with a configurable result count of 1 to 20.
  • •Provides a fetch_webpage tool that fetches a specific URL and extracts its main content.
  • •Extracts main content using multiple selectors, strips scripts, styles, navigation, ads and promotional elements, and converts HTML to markdown.
  • •Connects to MCP-compatible clients over stdio transport and requires a SerpAPI key for Google search functionality.

BEST FOR

  • •Giving an AI assistant the ability to run Google searches and read the resulting pages as markdown.
  • •Reading a single article or webpage as cleaned, markdown-formatted text without ads and navigation noise.

ABOUT WEB-CONTENT-MCP

Web Content MCP Server is cataloged as an MCP server attributed to hmalfee. A Model Context Protocol server that offers Google web search and webpage content extraction, converting pages into clean markdown for AI assistants. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Web Content MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What tools does this MCP server expose?

It exposes two tools: web_search for Google searches with formatted results and extracted content, and fetch_webpage for extracting content from a specific webpage URL.

How does it clean extracted page content?

It removes scripts, styles, navigation, headers, footers, sidebars, advertisements and promotional content, then converts the remaining HTML to markdown.

What is required to run the server?

It requires Node.js 18 or later and a SerpAPI key for Google search functionality.

Upstream README

View this exact version on GitHub

README.md · 9b4f123f86cf · Fetched 2026-11-13 12:09:00 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Web Content MCP Server

A powerful Model Context Protocol (MCP) server that provides intelligent web search and content extraction capabilities. This server enables AI assistants to search Google and fetch webpage content, automatically converting everything to clean, readable markdown format.

🚀 Features

  • Google Search Integration: Perform Google searches with customizable result counts
  • Content Extraction: Automatically extracts main content from web pages
  • Markdown Conversion: Converts HTML content to clean, readable markdown
  • Smart Content Filtering: Removes ads, navigation, and irrelevant elements
  • Multiple Content Strategies: Uses intelligent selectors to find the main content
  • Error Handling: Robust error handling with fallback mechanisms
  • Type Safety: Built with TypeScript and Zod validation

🛠️ Available Tools

Search Google and return formatted results with extracted content.

Parameters:

  • query (string, required): The search query to execute
  • numResults (number, optional): Number of results to return (1-20, default: 5)

Example:

{
  "name": "web_search",
  "arguments": {
    "query": "TypeScript best practices",
    "numResults": 3
  }
}

2. Fetch Webpage (fetch_webpage)

Fetch and extract content from a specific webpage URL.

Parameters:

  • url (string, required): The URL of the webpage to fetch

Example:

{
  "name": "fetch_webpage",
  "arguments": {
    "url": "https://example.com/article"
  }
}

📋 Prerequisites

  • Node.js 18+
  • SerpAPI Key (for Google search functionality)

🔧 Installation

  1. Clone the repository:

    git clone <repository-url>
    cd web-content-mcp
    
  2. Install dependencies:

    npm install
    
  3. Set up environment variables: Create a .env file in the root directory:

    SERPAPI_KEY=your_serpapi_key_here
    

    Get your SerpAPI key from https://serpapi.com/

🚀 Usage

Running the Server

Simply run the server using npx tsx directly:

npx tsx --env-file=.env src/index.ts

This command:

  • Uses tsx to run TypeScript directly without compilation
  • Loads environment variables from .env file
  • Starts the MCP server immediately

As an MCP Server

This server is designed to be used with MCP-compatible clients. Configure your MCP client to connect to this server via stdio transport.

Example MCP client configuration:

{
  "mcpServers": {
    "web-content": {
      "command": "npx",
      "args": [
        "tsx",
        "--env-file=/path/to/web-content-mcp/.env",
        "/path/to/web-content-mcp/src/index.ts"
      ],
      "env": {
        "SERPAPI_KEY": "your_api_key"
      }
    }
  }
}

🏗️ Architecture

The server follows a clean, modular architecture:

src/
├── index.ts      # Main server setup and request handling
├── tools.ts      # Tool implementations (WebSearch, FetchWebpage)
├── types.ts      # TypeScript types and Zod schemas
└── env.ts        # Environment variable configuration

Key Components

  • Server: Main MCP server instance with stdio transport
  • Tools: Modular tool classes with abstract base class
  • Content Extraction: Smart HTML-to-markdown conversion
  • Type Safety: Comprehensive Zod validation schemas
  • Error Handling: Graceful error handling with informative messages

🔍 Content Extraction Strategy

The server uses an intelligent content extraction approach:

  1. Content Selectors: Tries multiple selectors to find main content:

    • main, article, .content, .main-content
    • .post-content, .entry-content, #content
    • .container (as fallback)
  2. Content Cleaning: Removes unwanted elements:

    • Scripts, styles, navigation
    • Headers, footers, sidebars
    • Advertisements and promotional content
  3. Markdown Conversion:

    • Converts HTML to clean markdown
    • Preserves images with alt text
    • Maintains proper heading structure
    • Limits content length to prevent overflow

⚙️ Configuration

The server includes several configurable options in tools.ts:

const config = {
  serpApiKey: env.SERPAPI_KEY,
  timeout: 10000, // Request timeout (ms)
  maxContentLength: 5000, // Max content length per page
  userAgent: "Mozilla/5.0 (compatible; WebContentMCP/1.0)",
};

🔒 Environment Variables

VariableDescriptionRequired
SERPAPI_KEYYour SerpAPI key for Google searchYes

📄 Output Format

Both tools return content in markdown format:

Web Search Results

# Web Search Results for: "query"

Found X results:

## 1. Page Title

**URL:** https://example.com
**Snippet:** Brief description...
**Content:**
Main page content in markdown...

---

Webpage Content

# Webpage Content

**URL:** https://example.com
**Content:**
Extracted page content in markdown...

🛡️ Error Handling

The server includes comprehensive error handling:

  • Network errors: Timeout and connection failures
  • API errors: SerpAPI rate limits and authentication
  • Content errors: Invalid URLs and parsing failures
  • Validation errors: Invalid input parameters

📞 Support

If you encounter any issues or have questions:

  1. Check the Issues page
  2. Create a new issue with detailed information
  3. Include error messages and environment details

Built with ❤️ using TypeScript and the Model Context Protocol

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Web Content MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/web-content-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research