@mukundakatta/html-mcp
v0.1.0
Published
MCP server: strip HTML tags, extract plain text, and sanitize HTML.
Maintainers
Readme
html-mcp
MCP server: strip, sanitize, and convert HTML to plain text. Backed by
sanitize-html, so dangerous markup (scripts, javascript: URLs, etc.) is
removed even in the permissive mode.
Tools
to_text
Best-effort browser-style text extraction. Block tags become newlines, inline tags strip, scripts and styles disappear.
strip
Bluntly removes every tag. Entities are decoded.
sanitize
Whitelisted-tag pass.
| mode | allowed tags |
|--------------|------------------------------------------------------------------------------|
| permissive | article markup — headings, lists, tables, images, links (http/https/mailto) |
| strict | inline only — b, i, em, strong, p, br, code |
Configure
{ "mcpServers": { "html": { "command": "npx", "args": ["-y", "@mukundakatta/html-mcp"] } } }License
MIT.
