Apify MCP Server क्या है?
Apify MCP Server Apify का Model Context Protocol server — AI agent को Apify Store के हज़ारों तैयार scrapers और crawlers को tools के रूप में खोजने और चलाने देता है. यह Data & Labeling टूल्स की Web Scraping & Crawling श्रेणी में आता है; ओपन सोर्स है, TypeScript में लिखा गया है और MIT लाइसेंस के तहत है।
सारांश
Apify MCP Server, Apify का आधिकारिक Model Context Protocol server है। इससे AI assistant, Apify Store के किसी भी Actor को tool के रूप में इस्तेमाल कर सकता है। Apify Store प्लेटफ़ॉर्म पर मौजूद तैयार scrapers, crawlers और automation tools का कैटलॉग है। इस तरह agent बिना कोई scraper लिखे सोशल मीडिया, search engines, maps, e-commerce साइट्स और सामान्य web pages से डेटा निकाल सकता है। Apify, mcp.apify.com पर Streamable HTTP और OAuth के साथ एक hosted instance चलाता है, इसलिए Claude.ai या Visual Studio Code जैसे clients सिर्फ़ URL से जुड़ सकते हैं। वही server स्थानीय stdio उपयोग के लिए npm package @apify/actors-mcp-server के रूप में भी उपलब्ध है।

Server हर Actor का input schema पढ़ता है और उसे एक मेल खाते MCP tool में बदल देता है, ताकि model को पता रहे कि कौन से arguments भेजने हैं और क्या वापस आएगा। डिफ़ॉल्ट रूप से यह दो Actors लोड करता है: RAG Web Browser, जो web खोजता है और शीर्ष नतीजों का content लौटाता है, और Web Fetch, जो किसी भी URL को Markdown, text, HTML या links के रूप में लौटाता है। इसके अलावा dynamic discovery के लिए helper tools भी हैं: search-actors, fetch-actor-details और call-actor। इनकी मदद से agent Store में उपयुक्त Actor खोज सकता है, उसके inputs देख सकता है और बातचीत के बीच ही उसे चला सकता है। नतीजे Apify datasets और key-value stores में जमा होते हैं, जिन्हें agent get-dataset-items और संबंधित tools से पेज-दर-पेज पढ़ता है।
Scraping के अलावा, वैकल्पिक tool categories Apify platform के और हिस्से भी खोलती हैं: Actor runs और logs, saved tasks, cron schedules, builds, Actor source files, Apify documentation search और Apify API तक read-only पहुँच। tools parameter तय करता है कि क्या लोड होगा। hosted server पर यह URL query के रूप में आता है और स्थानीय रूप से --tools flag के रूप में, और यह एक ही Actor तक सीमित किया जा सकता है। Actors चलाने के लिए आमतौर पर Apify account और API token चाहिए। README में agentic payments भी दर्ज हैं: AGI से prepaid token, Base पर USDC में हर request के लिए x402 payments, या Skyfire PAY tokens। ये उन agents के लिए हैं जो बिना account के भुगतान करते हैं। Server का कोड MIT-licensed TypeScript है, और जो Actors यह चलाता है उनका बिल Apify platform के ज़रिए होता है।
यह क्या करता है
- Apify Store का कोई भी Actor MCP tool के रूप में, जिसका input schema tool के arguments में बदल दिया जाता है, ताकि model जानता रहे कि क्या भेजना है
- Dynamic discovery: search-actors, fetch-actor-details और call-actor से agent किसी काम के बीच में नया Actor खोज, जाँच और चला सकता है
- Web research के लिए डिफ़ॉल्ट tools: search और scrape के लिए RAG Web Browser, और एकल URLs के लिए Web Fetch, जो Markdown, text, HTML या links लौटाता है
- Runs, datasets और key-value stores, saved tasks, schedules, builds, Actor source, Apify docs और read-only Apify API calls के लिए वैकल्पिक categories, जिन्हें tools parameter से चुना जाता है
- mcp.apify.com पर hosted endpoint, जो OAuth या bearer token के साथ काम करता है, या npx @apify/actors-mcp-server के ज़रिए स्थानीय stdio server
- AGI, direct x402 या Skyfire के ज़रिए agentic payments, ताकि कोई autonomous agent बिना Apify account के Actor runs के लिए भुगतान कर सके
शुरू करें
mcp.apify.com पर hosted server वह रास्ता है जिसकी Apify सिफ़ारिश करता है। कुछ सुविधाएँ, जैसे structured Actor results के लिए output schema inference, सिर्फ़ वहीं उपलब्ध हैं। mcp.apify.com का configurator ज़्यादातर clients के लिए config लिखता है, और नीचे दिए snippets README और Apify docs से लिए गए हैं।

OAuth के साथ hosted server से जुड़ें
OAuth सपोर्ट करने वाले client में सिर्फ़ URL से server जोड़ें और पूछे जाने पर Apify में साइन इन करें। पुराना /sse endpoint हटा दिया गया है, इसलिए Streamable HTTP के साथ सादा URL इस्तेमाल करें।
{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com"
}
}
}
या API token को bearer header में भेजें
बिना OAuth वाले clients के लिए, अपना Apify API token Authorization header में भेजें।
{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com",
"headers": {
"Authorization": "Bearer <APIFY_TOKEN>"
}
}
}
}stdio के ज़रिए स्थानीय रूप से चलाएं
Claude Desktop जैसे स्थानीय integrations के लिए, environment में अपने token के साथ npm package शुरू करें। Rental Actors सिर्फ़ hosted endpoint के ज़रिए काम करते हैं। स्थानीय रूप से आपको अपने configured toolset के Actors मिलते हैं।
{
"mcpServers": {
"apify": {
"command": "npx",
"args": ["-y", "@apify/actors-mcp-server"],
"env": {
"APIFY_TOKEN": "YOUR_APIFY_TOKEN"
}
}
}
}Tool set को पक्का करें
Default tool set versions के बीच बदल सकता है, इसलिए README production में tools को साफ़ नाम से तय करने की सलाह देता है। Categories, एकल tools या Actors पास करें: hosted URL पर query parameter के रूप में, और स्थानीय रूप से flag के रूप में। किसी एक Actor का नाम देने पर सिर्फ़ वही Actor उपलब्ध होता है।
# hosted
https://mcp.apify.com?tools=actors,docs,apify/rag-web-browser,apify/web-fetch
# local
npx @apify/actors-mcp-server --tools actors,docs,apify/rag-web-browser,apify/web-fetch
npx @apify/actors-mcp-server --tools apify/my-actorज़रूरत हो तो telemetry से बाहर निकलें
Tool-call telemetry (और stdio पर Sentry error tracking) डिफ़ॉल्ट रूप से चालू रहती है।
# hosted
https://mcp.apify.com?telemetry-enabled=false
# local
npx @apify/actors-mcp-server --telemetry-enabled=falseकमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।
कब इस्तेमाल करें
- किसी chat assistant को अनुरोध पर Google Maps, Instagram, Facebook या search results से structured डेटा निकालने दें। लिखे-लिखाए scraper की जगह Store के मौजूदा scraper का इस्तेमाल करें।
- Research agent को RAG Web Browser और Web Fetch के ज़रिए web search और page fetching दें। JavaScript rendering Apify संभालता है।
- AI client से अपना Apify account मैनेज करें: runs और logs देखें, datasets पढ़ें, saved tasks बदलें और schedules सेट करें।
- tools=<your-actor> के साथ किसी एक in-house Actor को agent के लिए अकेले, सख़्ती से सीमित tool के रूप में उपलब्ध कराएं।
How Apify MCP Server compares
Apify MCP Server alongside other open-source web scraping & crawling tools AI/TLDR tracks, ranked by GitHub stars.
| टूल | स्टार | यह क्या करता है |
|---|---|---|
| Firecrawl | ★ 215k | किसी भी वेबसाइट को अपने LLM ऐप्स के लिए साफ़ Markdown या स्ट्रक्चर्ड JSON में बदलें |
| Agent Reach | ★ 117k | पहले से कॉन्फ़िगर की गई वेब-एक्सेस लेयर, जो CLI एजेंट को उन साइटों के लिए रीडर देती है जहाँ उसकी पहुँच नहीं है |
| Scrapling | ★ 108k | एडैप्टिव Python वेब स्क्रैपिंग, जो साइट में बदलाव के बावजूद काम करती रहे और anti-bot सिस्टम को बायपास करे |
| Crawl4AI | ★ 88.4k | वेब पेजों को साफ़, LLM के लिए तैयार Markdown में बदलने वाला ओपन सोर्स वेब क्रॉलर |
| Scrapy | ★ 65.7k | बड़े पैमाने पर वेबसाइट क्रॉल करने और संरचित डेटा निकालने के लिए एक Python फ़्रेमवर्क |
| changedetection.io | ★ 36.2k | LLM-फ़िल्टर्ड अलर्ट के साथ सेल्फ-होस्टेड वेब पेज चेंज मॉनिटरिंग |
| ScrapeGraphAI | ★ 33k | सादी अंग्रेज़ी के प्रॉम्प्ट से LLM और ग्राफ़ पाइपलाइन द्वारा संरचित वेब डेटा निकालें |
| Apify MCP Server | ★ 19k | Apify का Model Context Protocol server — AI agent को Apify Store के हज़ारों तैयार scrapers और crawlers को tools के रूप में खोजने और चलाने देता है |
