Skip to main content
Glama
alexandru2882

URL Text Fetcher MCP Server

fetch_url_text

Extract and download all visible text content from any webpage using a URL. Designed for web scraping and integration with LM Studio.

Instructions

Download all visible text from a URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes

Implementation Reference

  • The handler function that implements the 'fetch_url_text' tool. It downloads the webpage using requests, parses it with BeautifulSoup, and extracts all 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)
  • The @mcp.tool() decorator registers the fetch_url_text function as an MCP tool.
    @mcp.tool()

Other Tools

Related 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