This MCP server scrapes web content and converts it to Markdown format. It uses Playwright for headless browser automation, BeautifulSoup for HTML parsing, and Pypandoc for HTML to Markdown conversion, making it capable of handling modern JavaScript-heavy websites.
When using uv
, no specific installation is needed. You'll use uvx
to directly run the server.
Alternatively, install via pip:
pip install mcp-playwright-scraper
After installation, you need to install Playwright browser dependencies:
playwright install --with-deps chromium
Add this to your claude_desktop_config.json
:
"mcpServers": {
"mcp-playwright-scraper": {
"command": "uvx",
"args": ["mcp-playwright-scraper"]
}
}
"mcpServers": {
"mcp-playwright-scraper": {
"command": "python",
"args": ["-m", "mcp_playwright_scraper"]
}
}
# Using uvx
$ claude mcp add mcp-playwright-scraper -- uvx mcp-playwright-scraper
# Using pip installation
$ claude mcp add mcp-playwright-scraper -- python -m mcp_playwright_scraper
Add to your Zed settings.json:
"context_servers": [
"mcp-playwright-scraper": {
"command": {
"path": "uvx",
"args": ["mcp-playwright-scraper"]
}
}
],
"context_servers": {
"mcp-playwright-scraper": {
"command": "python",
"args": ["-m", "mcp_playwright_scraper"]
}
},
mcp-playwright-scraper
stdio
uvx mcp-playwright-scraper
or python -m mcp_playwright_scraper
Once configured, you can use the scraper with a prompt like:
Use the mcp-playwright-scraper to scrape the content from https://example.com and summarize it.
The server implements one tool:
scrape_to_markdown
: Scrapes content from a URL and converts it to Markdown
url
(string) - The URL to scrapeverify_ssl
(boolean) - Whether to verify SSL certificates (default: true)You can use the MCP inspector to debug the server:
npx @modelcontextprotocol/inspector uvx mcp-playwright-scraper
The Inspector will display a URL you can access in your browser to begin debugging.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.