docs/api-reference/mcp-server.md
The Scrapling MCP Server provides nine powerful tools for web scraping through the Model Context Protocol (MCP). This server integrates Scrapling's capabilities directly into AI chatbots and agents, allowing conversational web scraping with advanced anti-bot bypass features.
You can start the MCP server by running:
scrapling mcp
Or import the server class directly:
from scrapling.core.ai import ScraplingMCPServer
server = ScraplingMCPServer()
server.serve(http=False, host="0.0.0.0", port=8000)
The standardized response structure that's returned by all MCP server tools:
handler: python
:docstring:
Model classes for session management:
handler: python
:docstring:
handler: python
:docstring:
handler: python
:docstring:
The main MCP server class that provides all web scraping tools:
handler: python
:docstring: