Skip to main content
Glama

MCP Website Fetcher

MCP Website Fetcher

visitors

Model Context Protocol (MCP) Website Fetcher is a lightweight MCP server implementation that provides a simple tool for fetching website content. It serves as a demonstration project to show how tools can be exposed and interacted with using the MCP protocol.

Overview

This project exposes an MCP-compatible API endpoint with a tool called fetch that allows clients to retrieve the raw content of a specified URL. It's designed mainly for demo purposes and testing how clients can interact with tools over the MCP protocol.

Running the Server Using Docker

The application is automatically built and pushed to GitHub Container Registry (GHCR) on every push to the main branch.

To run the latest version locally using Docker:

docker run -d -p 8000:8000 ghcr.io/electrocucaracha/mcp-website-fetcher:main

This will start the MCP server and expose it on port 8000.

Testing Locally

Once the container is running, you can interact with the server using curl to test its capabilities.

Get the List of Tools

To retrieve the list of available tools exposed by the MCP server:

curl -H "Accept: application/json, text/event-stream" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/list"}' \ http://127.0.0.1:8000/mcp

Fetch the Content of a Website

To fetch the content of https://electrocucaracha.com/:

curl -H "Accept: application/json, text/event-stream" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": { "name": "fetch", "arguments": { "url": "https://electrocucaracha.com/" }}}' \ http://127.0.0.1:8000/mcp

The server will return the HTML content of the requested URL.

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A lightweight MCP server implementation that provides a simple tool for fetching website content, demonstrating how tools can be exposed and interacted with using the MCP protocol.

  1. Overview
    1. Running the Server Using Docker
      1. Testing Locally
        1. Get the List of Tools
        2. Fetch the Content of a Website

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        A powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text) with ease.
        Last updated -
        4
        1,285
        32
        TypeScript
        MIT License
        • Apple
        • Linux
      • A
        security
        A
        license
        A
        quality
        An MCP server for fetching and transforming web content into various formats.
        Last updated -
        4
        6
        Python
        MIT License
        • Apple
      • A
        security
        A
        license
        A
        quality
        A simple MCP server that facilitates website fetching through a configurable server platform using stdio or SSE transport, allowing integration with tools like Cursor for streamlined access.
        Last updated -
        2
        35
        Python
        MIT License
      • -
        security
        A
        license
        -
        quality
        An MCP server that exposes HTTP methods defined in an OpenAPI specification as tools, enabling interaction with APIs via the Model Context Protocol.
        Last updated -
        8
        Python
        MIT License

      View all related MCP servers

      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/electrocucaracha/mcp-website-fetcher'

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