We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/felixdorn/mcp-nix'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
utils.py•295 B
# SPDX-License-Identifier: GPL-3.0-or-later
from bs4 import BeautifulSoup
def html_to_text(html: str) -> str:
"""Extract text from HTML using BeautifulSoup."""
if not html:
return ""
soup = BeautifulSoup(html, "html.parser")
return soup.get_text(separator=" ").strip()