web-clipper-mcp
Web Clipper MCP Server
MCP server for clipping web pages to Markdown with local images.
Installation
Using uvx (Recommended)
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Add to Claude Desktop config (~/.config/claude/claude_desktop_config.json){
"mcpServers": {
"web-clipper": {
"command": "uvx",
"args": ["--from", "/Users/like/research/web-clipper-mcp", "web-clipper-mcp"]
}
}
}Using pip
cd /Users/like/research/web-clipper-mcp
python -m venv .venv
source .venv/bin/activate
pip install -e .{
"mcpServers": {
"web-clipper": {
"command": "/Users/like/research/web-clipper-mcp/.venv/bin/python",
"args": ["-m", "web_clipper_mcp.server"]
}
}
}Tools
get_page_structure
Analyze a web page's structure and return a summary with CSS selector suggestions.
Parameters:
url(required): The URL to analyze
Example:
Analyze https://example.com/articleclip_url
Extract content from a URL and convert to Markdown.
Parameters:
url(required): The URL to clipselector(optional): CSS selector to extract specific contentsave_to(optional): File path to save the Markdown (default: ~/Downloads/web-clipper/{YYYY-MM-DD}-{timestamp}/{title}.md)download_images(optional): Whether to download images locally (default: true)force_image_attr(optional): Force using specific attribute for images (e.g., "data-src", "src", "file")
Example:
Save https://example.com/article to ~/notes/article.mdclip_html
Convert raw HTML to Markdown.
Parameters:
html(required): Raw HTML content to convertbase_url(optional): Base URL for resolving relative image URLssave_to(optional): File path to save the Markdowndownload_images(optional): Whether to download images locally (default: true)
Example:
Convert this HTML to Markdown: <div>...</div>Usage
Install the MCP server
Add to Claude Desktop config
Restart Claude Desktop
Use natural language to clip web pages:
帮我保存 https://example.com/article这篇文章的结构是什么? https://example.com/article把这段 HTML 转成 Markdown: <div>...</div>Prompt
clip-webpage
Recommended workflow for clipping web pages. Guides the LLM through: analyzing page structure, identifying content area, and calling clip_url with appropriate parameters.
Arguments:
url(required): The URL to clipcontent_selector(optional): CSS selector for content area (e.g.,article,div.post)
Features
Auto-extract main content using Readability
CSS selector support for manual content selection
Local image download and path replacement
Markdown output with proper formatting
Batch image lazy-loading pattern detection
Force image attribute selection for ambiguous cases
Automatic save with timestamp folder to prevent overwrites
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/achenglike/web-clipper-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server