Skip to main content
Glama
alexandru2882

URL Text Fetcher MCP Server

fetch_url_text

Extract visible text content from web pages by providing a URL. This tool downloads readable text for analysis or processing in LM Studio.

Instructions

Download all visible text from a URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes

Implementation Reference

  • Registers the fetch_url_text tool using the @mcp.tool() decorator from FastMCP.
    @mcp.tool()
  • The handler function that executes the tool: fetches the URL with requests, parses HTML with BeautifulSoup, and returns the visible text.
    def fetch_url_text(url: str) -> str: """Download all visible text from a URL.""" resp = requests.get(url, timeout=10) resp.raise_for_status() soup = BeautifulSoup(resp.text, "html.parser") return soup.get_text(separator="\n", strip=True)
  • Function signature and docstring define the input schema (url: str) and output (str), used by MCP for tool schema.
    def fetch_url_text(url: str) -> str: """Download all visible text from a URL."""
Install Server

Other Tools

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/alexandru2882/url-text-fetcher-mcp'

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