Scrapegraphai
БесплатноНе проверенA local stdio MCP server for structured web scraping with ScrapeGraphAI and an OpenAI-compatible model API, providing tools to list models and scrape URLs.
Описание
A local stdio MCP server for structured web scraping with ScrapeGraphAI and an OpenAI-compatible model API, providing tools to list models and scrape URLs.
README
A local stdio MCP server for structured web scraping with ScrapeGraphAI and an OpenAI-compatible model API.
Tools
list_models: List models from the configured OpenAI-compatible API.scrape_url: Scrape a URL with ScrapeGraphAISmartScraperGraphand return extracted results.
Requirements
- Python 3.12+
- Playwright Chromium
- An OpenAI-compatible API key and base URL
Install
git clone https://github.com/HeartLoveLung/Scrapegraphai_MCP.git
cd Scrapegraphai_MCP
python -m venv .venv
.\.venv\Scripts\pip install -r requirements.txt
.\.venv\Scripts\playwright install chromium
You can also install dependencies manually:
.\.venv\Scripts\pip install scrapegraphai langchain-openai httpx requests python-dotenv playwright
.\.venv\Scripts\playwright install chromium
Environment
Copy the example file:
Copy-Item .env.example .env
Edit .env:
SCRAPEGRAPHAI_API_KEY=sk-your-api-key
SCRAPEGRAPHAI_BASE_URL=https://gpt.qt.cool/v1
SCRAPEGRAPHAI_MODEL=deepseek-v4-flash
SCRAPEGRAPHAI_VERIFY_SSL=false
SCRAPEGRAPHAI_MODEL_TOKENS=50000
Do not commit .env.
MCP Client Config
Copy mcp_config.example.json, replace the paths with your local repository path, and add it to an MCP-compatible client.
Windows example:
{
"mcpServers": {
"scrapegraphai-local": {
"command": "C:\\path\\to\\Scrapegraphai_MCP\\.venv\\Scripts\\python.exe",
"args": [
"C:\\path\\to\\Scrapegraphai_MCP\\tools\\scrapegraphai_mcp_server.py"
],
"env": {
"SCRAPEGRAPHAI_API_KEY": "sk-your-api-key",
"SCRAPEGRAPHAI_BASE_URL": "https://gpt.qt.cool/v1",
"SCRAPEGRAPHAI_MODEL": "deepseek-v4-flash",
"SCRAPEGRAPHAI_VERIFY_SSL": "false",
"SCRAPEGRAPHAI_MODEL_TOKENS": "50000"
}
}
}
}
You can also omit env from the MCP config and use a local .env file in the repository root.
Example Tool Calls
list_models
{
"name": "list_models",
"arguments": {
"timeout": 10
}
}
scrape_url
{
"name": "scrape_url",
"arguments": {
"url": "https://gpt.qt.cool/checkin",
"prompt": "Extract the main visible content and return JSON.",
"model": "deepseek-v4-flash",
"timeout": 90,
"headless": true,
"html_mode": true
}
}
Local Smoke Test
Check that the server imports and exposes tools:
.\.venv\Scripts\python.exe -c "import importlib.util; spec=importlib.util.spec_from_file_location('m', r'tools\scrapegraphai_mcp_server.py'); m=importlib.util.module_from_spec(spec); spec.loader.exec_module(m); print(sorted(m.TOOLS.keys()))"
Expected output:
['list_models', 'scrape_url']
Notes
scrape_urlstarts a Playwright browser. Some sandboxed environments must allow Chromium process launch.- If the model API returns
503 model_unavailable, switch to another available model or retry later. - Replace all example API keys with your own key.
Установка Scrapegraphai
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/HeartLoveLung/Scrapegraphai_MCPFAQ
Scrapegraphai MCP бесплатный?
Да, Scrapegraphai MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Scrapegraphai?
Нет, Scrapegraphai работает без API-ключей и переменных окружения.
Scrapegraphai — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Scrapegraphai в Claude Desktop, Claude Code или Cursor?
Открой Scrapegraphai на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Playwright
Browser automation, scraping, screenshots
автор: MicrosoftPuppeteer
Browser automation and web scraping.
автор: modelcontextprotocolopentabs-dev/opentabs
Plugin-based MCP server + Chrome extension that gives AI agents access to web applications through the user's authenticated browser session. 100+ plugins with a
автор: opentabs-devrobhunter/agentdeals
1,500+ developer infrastructure deals, free tiers, and startup programs across 54 categories. Search deals, compare vendors, plan stacks, and track pricing chan
автор: robhunterCompare Scrapegraphai with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории browse
