mcp-web-scraper
Playwright tabanlı, Javascript render eden sayfaları otonom şekilde tarayan (scrape) ve bunu Model Context Protocol (MCP) standartlarıyla AI Asistanlarına sunan gelişmiş bir web scraper sunucusudur.
🌟 Özellikler
scrape_page: Herhangi bir URL'den metin içeriklerini, başlığı ve sayfaya dair metadataları okuyun.scrape_queue: Birden fazla URL'yi arka plan kuyruğuna (job queue) ekleyerek otonom olarak asenkron tarayın.watch_page: Belirli bir URL'in kaynak içeriği değiştiğinde canlı bildirimler (polling/events) alın.take_screenshot: Hedef web sayfasının tam ekran görüntüsünü yüksek boyutlu şifrelenmiş (Base64) biçimde yakalayın.fill_form: CSS Selector'ları kullanarak otomatik ve otonom şekilde web formları doldurun.extract_table: Hedefteki karmaşık HTML tablolarını kolayca yapılandırılmış JSON verilerine (Array) ayrıştırın.get_links: Sayfa üzerindeki tüm bağlantıları (links) tek tuşla etiketleyip çekin.
🚀 Anti-Bot (İnsan Taklidi / Stealth)
Eskimiş dış kütüphanelere bağlı kalmaksızın, kendi içinde barındırdığı manuel stealth protokolleri sayesinde:
- Cloudflare vb.
webdriveralgılayıcılarını tamamen maskeler. - Yapay fare hareketleri ile gerçek insan taklidi yapar.
- İzole context, özel
user-agentve dil (tr-TR) ayarları üzerinden işlem sağlar.
🛠️ Kurulum
En kolay kurulum yolu, doğrudan PyPI üzerinden resmi paketi indirmektir. Sisteminizde Python 3.10+ yüklü olmalıdır.
# 1. MCP sunucusunu (ve bağımlılıklarını) global olarak indirin
pip install mcp-web-scraper
# 2. Playwright otomasyonu için gereken Chromium tarayıcısını indirin
playwright install chromium
🎮 Kullanım (AI Asistanlarına Ekleme)
Bu server, standart bir stdio altyapısı kullanarak JSON-RPC 2.0 mimarisini destekler. AI istemcileriniz için (örn: Claude Desktop, Cursor, Antigravity) konfigürasyon dosyasına (claude_desktop_config.json veya IDE mcp_config.json) kullanım yönteminize göre aşağıdaki bloklardan birini eklemeniz yeterlidir:
1. PyPI Üzerinden Pip Install Sonrası:
{
"mcpServers": {
"mcp-web-scraper": {
"command": "mcp-web-scraper"
}
}
}
2. UVX ile (Sıfır Kurulum, Anında Çalıştırma):
{
"mcpServers": {
"mcp-web-scraper": {
"command": "uvx",
"args": ["mcp-web-scraper"]
}
}
}
3. GitHub Kaynak Kodundan Çalıştırma:
{
"mcpServers": {
"mcp-web-scraper": {
"command": "python",
"args": ["-m", "mcp_web_scraper"]
}
}
}
Alternatif olarak, doğrudan Smithery komutları (smithery.yaml) aracılığıyla sisteminize anında entegre edebilirsiniz.
Deneme ve Geliştirme (Test)
Uçtan uca tüm bu MCP tool'larının gerçek dünyada nasıl çalıştığını (Wikipedia,E-ticaretarkadasim ve Example sayfalarında) test etmek için proje içindeki test betiğini kullanabilirsiniz:
# Tüm tool'ların çıktılarını terminale yansıtan test scripti
python test_real.py
# Unittest'leri test etmek isterseniz:
pytest tests/
👨💻 Geliştirici
Metadata
Release files for mcp-web-scraper 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_web_scraper-0.1.1.tar.gz | 15.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_web_scraper-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.4 kB
Release files / mcp_web_scraper-0.1.1.tar.gz
| Download URL | mcp_web_scraper-0.1.1.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa95285caa46a934a5dc0bba9015dd026bec92b635e383077ebb883ae8160f47
|
|
BLAKE2b-256 checksum How to use checksums |
bea92c11ef35453132bd72f0641be7cff9f2e472d89a21a41d3f223f51bb0591
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / mcp_web_scraper-0.1.1-py3-none-any.whl
| Download URL | mcp_web_scraper-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
002664030755626a1f265ca4fa24925390ff75066e36d3cba528f3dd272d3eac
|
|
BLAKE2b-256 checksum How to use checksums |
ba600cf101a7f8bbab1d64c822a34702f108f425177095eea6b09ae9c9837cb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Security for mcp-web-scraper 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.