MCP ExplorerExplorer

Mcp Fetch

@ziobuddaon 9 months ago
1 GPL-3.0
FreeCommunity
AI Systems
MCP Fetch

Overview

What is Mcp Fetch

mcp_fetch is a simple MCP (Model Context Protocol) server designed to analyze web pages using the Claude Desktop application.

Use cases

Use cases for mcp_fetch include analyzing website performance, extracting data from web pages for research, and automating content analysis for SEO purposes.

How to use

To use mcp_fetch, first ensure your virtual environment is activated, then open Claude Desktop. Click on the connection icon to verify that the web-analyzer is connected, and use the analyze_url tool to request analysis of any webpage.

Key features

Key features of mcp_fetch include the ability to analyze web pages, integration with Claude Desktop, and the use of Python libraries such as httpx and BeautifulSoup for web scraping and analysis.

Where to use

mcp_fetch can be used in fields such as web development, data analysis, and digital marketing, where understanding web content is crucial.

Content

Web Analyzer MCP

A simple MCP (Model Context Protocol) server that analyzes web pages through Claude Desktop.

Prerequisites

  • Python 3.12 or higher
  • Claude Desktop application installed

Installation

  1. Clone or create the project directory:
mkdir web_analyzer
cd web_analyzer
  1. Create and activate a virtual environment:
# Create virtual environment
python -m venv venv

# Activate virtual environment
# On Windows:
venv\Scripts\activate
# On Unix/MacOS:
source venv/bin/activate
  1. Create the following files in your project directory:

requirements.txt:

mcp>=1.0.0
httpx>=0.27.0
beautifulsoup4>=4.12.0

web_analyzer.py: (copy the provided MCP server code)

  1. Install dependencies:
pip install -r requirements.txt
  1. Configure Claude Desktop:
  • Open or create the configuration file:

    • On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • On Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Add the following configuration (adjust paths according to your system):

{
  "mcpServers": {
    "web-analyzer": {
      "command": "/full/path/to/your/venv/bin/python",
      "args": [
        "/full/path/to/your/web_analyzer.py"
      ],
      "env": {}
    }
  }
}
  1. Restart Claude Desktop

Usage

  1. Make sure your virtual environment is activated
  2. Open Claude Desktop
  3. Click on the 🔌 icon to verify that web-analyzer is connected
  4. Ask Claude to analyze any webpage using the analyze_url tool

Troubleshooting

If the server doesn’t appear in Claude Desktop:

  1. Check that all paths in claude_desktop_config.json are correct
  2. Verify that the virtual environment is activated
  3. Ensure all dependencies are installed
  4. Check Claude Desktop logs for errors

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers