What is PyScrappy MCP?
PyScrappy is an adaptive Python web scraping toolkit that ships an optional MCP server. Once registered, an AI agent can call more than 20 scraper tools, from a generic scrape_url that returns text, links, images, tables and metadata to site-specific scrapers, and get structured data back.
PyScrappy is a Python toolkit that turns websites into structured, LLM-ready data. Its optional MCP server, started with the pyscrappy-mcp command, hands the same scrapers to an AI agent as callable tools.
The generic scraper takes any URL and returns text, links, images, tables and metadata. Results can be converted to Markdown, JSON or a DataFrame, which keeps the output tidy enough to paste into a prompt.
The code is MIT licensed. The MCP extra needs Python 3.10 or newer, while the core library still works on Python 3.9.
What it changes in your workflow
- Reference gathering. Ask the agent to pull the headings, links, images and tables from a page you want to study before you design your own.
- Structured output. Get clean Markdown or JSON instead of pasting raw HTML into a chat.
- JavaScript pages. An optional Playwright backend renders sites that build their content in the browser.
- Resilient selectors. Adaptive selectors remember an element and relocate it by similarity when a site changes its markup.
- Whole sites. Crawl a site from its sitemap.xml, including index files and gzip.
Who it is for
- Developers and designers who want an agent to collect page content and metadata for a redesign or content audit.
- Teams that already work in Python and want one scraping layer for scripts and agents.
- Anyone who needs a local server over stdio rather than a hosted service.
Who it is not for
- People who want a visual design tool. PyScrappy reads content and does not inspect layout or styles.
- Sites that block automated clients. Instagram, Twitter and Spotify scrapers ship but are blocked and need a proxy.
- Anyone who needs a fixed list of tools, since the README only names the most common ones.
Use it with UiChemy
PyScrappy gathers content, not finished pages. A practical route is to scrape the copy and image list of a page you are rebuilding, then recreate the section in WordPress with UiChemy. See the AI builders compared for WordPress for the options.
If your goal is design tokens rather than text, Extract Design System MCP and designlang MCP read colors and type from a live URL instead.
Want the WordPress end of that route? Get Started with UiChemy.
Connect PyScrappy MCP Server: Web Scraping Tools for AI Agents to your AI client
pip install 'pyscrappy[mcp]'Install with the MCP extra
Run pip install 'pyscrappy[mcp]'. This installs the standalone fastmcp package and needs Python 3.10 or newer.
Start the server
Run pyscrappy-mcp for stdio. Add --http for Streamable HTTP or --sse for legacy SSE. You can also run python -m pyscrappy.mcp.
Register it with your client
In Claude Code run claude mcp add pyscrappy pyscrappy-mcp. For Claude Desktop add the config entry above and restart the app.
Fix a missing command
Claude Desktop does not inherit your shell PATH. If pyscrappy-mcp is not found, use the absolute path printed by which pyscrappy-mcp.
Add optional extras
Install pyscrappy[browser] and run playwright install chromium for JavaScript pages, or pyscrappy[stealth] for TLS fingerprint impersonation.
Try a first prompt
Ask the agent to use pyscrappy to get the latest headlines from a news site, or call list_available_scrapers to see every tool.
Client configuration
{
"mcpServers": {
"pyscrappy": {
"command": "pyscrappy-mcp"
}
}
}Endpoints and ports
pyscrappy-mcpStdio by default. Flags --http and --sse switch transport.python -m pyscrappy.mcpRuns the stdio server without the command on PATH.your-keyNeeded only for the lookup_movie tool. Pass it in the env block of your client config.https://pyscrappy.vercel.appDocumentation site linked from the README.What you can do with it
- Generic URL scraperGive it any URL and get structured text, links, images, tables and metadata back.
- LLM-ready outputConvert any result to Markdown, JSON or a DataFrame.
- Adaptive selectorsRemember an element and relocate it by similarity when markup changes.
- JavaScript renderingAdd the Playwright backend for pages that build their content in the browser.
- Sitemap crawlingEnumerate and scrape a whole site from sitemap.xml, index and gzip aware.
- Retry and rate limitingBuilt-in exponential backoff and per-domain rate limiting.
- Plugin scrapersRegister your own scraper and expose it to agents as a typed MCP tool.
- Three transportsRun over stdio, Streamable HTTP or legacy SSE.
Tools it exposes
scrape_url
Takes any URL and returns text, links, images, tables and metadata.
scrape_wikipedia
Scrapes Wikipedia content for an agent to use.
scrape_stock
Returns stock data from the Yahoo Finance scraper.
scrape_news
Reads news from RSS and Atom feeds.
search_github
Searches GitHub through the GitHub scraper.
scrape_with
Calls any registered scraper by name, including ones added through plugins.
list_available_scrapers
Lists the full, live set of scraper tools on your install.
lookup_movie
Looks up a film. Needs a free OMDb API key.
Frequently asked questions
What is PyScrappy MCP?
PyScrappy MCP is the optional Model Context Protocol server inside the PyScrappy web scraping toolkit. After you install the mcp extra and register the pyscrappy-mcp command, an AI agent can call its scrapers as tools and receive structured text, links, images and tables back.
How do I install the PyScrappy MCP server?
Run pip install 'pyscrappy[mcp]' with Python 3.10 or newer, then add the pyscrappy-mcp command to your MCP client. In Claude Code use claude mcp add pyscrappy pyscrappy-mcp. Claude Desktop needs a config entry and a restart, and may need the absolute path to the command.
Which tools does PyScrappy MCP expose?
The README says the server exposes more than 20 tools. The most common are scrape_url, scrape_wikipedia, scrape_stock, scrape_news and search_github. For the full live list, ask the agent to call list_available_scrapers or run list_scrapers from Python.
Can PyScrappy scrape JavaScript-heavy sites?
Yes, with an optional backend. Install pyscrappy[browser] and run playwright install chromium to render pages that build their content in the browser. For sites that block plain clients, the stealth extra adds TLS fingerprint impersonation. Some social scrapers still need a proxy.
Does PyScrappy MCP work with Cursor or only Claude?
The README describes the server as tools for AI agents such as Claude, Cursor and local LLMs, and it uses standard stdio, Streamable HTTP and SSE transports. It gives exact registration steps only for Claude Code and Claude Desktop, so check your client's own MCP setup.
Is PyScrappy MCP free and open source?
The repository is MIT licensed and the package installs from PyPI. Most scrapers need no key. The lookup_movie tool needs a free OMDb API key, which you pass through the env block of your client config.
Can I use scraped content to rebuild a page in WordPress?
Scraping only collects content such as text, links and images. You still need to build the layout. One route is to hand the collected copy to an AI builder and import the result with UiChemy AI to WordPress. Respect the source site's terms and copyright.
Can PyScrappy run without an MCP client?
Yes. PyScrappy is first a Python library and command-line tool. The pyscrappy extract command scrapes a URL straight to a file without writing code, and a local model that cannot speak MCP can use the pyscrappy chat agent, which exposes the same tools.


