MCP Website Fetcher
Provides a way to test the MCP server's capabilities by making HTTP requests to fetch website content and list available tools.
Allows running the MCP server in a containerized environment, with automatic builds pushed to GitHub Container Registry.
Integrates with GitHub Container Registry for Docker image hosting and GitHub Actions for code linting.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Website Fetcherfetch the latest news from bbc.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Website Fetcher
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.
Related MCP server: web-mcp-server
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:mainThis will start the MCP server and expose it on port 8000.
How to setup a development environment
This project includes Dev Container support, making it easy to get started with a fully configured development environment. This ensures consistency across development setups and allows contributors to begin working without manual environment configuration.
Option 1: GitHub Codespaces
You can launch a cloud-based development environment instantly:
Option 2: Local Dev Container (Visual Studio Code)
Install Visual Studio Code.
Install the Dev Containers extension.
Ensure you have a container runtime installed and running:
Docker Desktop (Windows/macOS)
Docker Engine or Podman (Linux)
Open this repository in Visual Studio Code.
When prompted, reopen the project in a Dev Container.
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/mcpFetch 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/mcpThe server will return the HTML content of the requested URL.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server (stdio): fetch web pages as clean readable markdown via the AgentForge API
Docs: https://docs.keenable.ai/mcp-server Keenable is a free, remote MCP server that gives agents access to the web index. Search the web with ranked results and date/site filters, then fetch any indexed page as clean markdown. Works out of the box with no account or API key.
Related MCP Servers
- AlicenseCqualityBmaintenanceA 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.238MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that exposes web_search and web_fetch tools, allowing LLM applications to search the web via DuckDuckGo and fetch page content as cleaned markdown.-
- FlicenseBqualityDmaintenanceA lightweight MCP server that exposes the web_reader tool via r.jina.ai for reading web content.1-
- AlicenseNot gradedqualityCmaintenanceA self-contained web-research MCP server that lets local LLM agents search, fetch, and synthesize web content using tools like web_search, web_fetch, and web_research.2MIT