Outscraper MCP Server
A Model Context Protocol server that provides access to Outscraper's data extraction services, implementing 8 tools for extracting data from Google services and domains including Maps, Reviews, Search, and contact information.
README
Outscraper MCP Server
A comprehensive Model Context Protocol (MCP) server that provides access to Outscraper's powerful data extraction services. This server implements 8 complete tools for extracting data from Google services and domains.
🚀 Features
Complete Outscraper Service Coverage
- 🗺️ Google Maps Search - Search for businesses and places with detailed information
- ⭐ Google Maps Reviews - Extract customer reviews from any Google Maps place
- 📸 Google Maps Photos - Get photos from Google Maps places with metadata
- 🧭 Google Maps Directions - Get directions between locations with multiple travel modes
- 🔍 Google Search - Perform general Google web searches with structured results
- 📰 Google News Search - Search Google News with time-based filtering
- 📱 Google Play Reviews - Extract app reviews from Google Play Store
- 📧 Email & Contact Extraction - Extract emails, phones, and social links from domains
Advanced Capabilities
- Data Enrichment - Automatically enhance results with additional contact information
- Multi-language Support - Search and extract data in different languages
- Regional Filtering - Target specific countries/regions for localized results
- Flexible Sorting - Sort results by relevance, date, rating, etc.
- Batch Processing - Process multiple queries efficiently
- Time-based Filtering - Get only recent reviews or news articles
📦 Installation
Prerequisites
- Python 3.10+
- uv (recommended) or pip
- Outscraper API key
Install with uv (recommended)
git clone <repository-url>
cd outscraper-mcp
uv sync
Install with pip
git clone <repository-url>
cd outscraper-mcp
pip install -e .
🔧 Configuration
Get Your API Key
- Sign up at Outscraper
- Get your API key from the profile page
Set Environment Variable
export OUTSCRAPER_API_KEY="your_api_key_here"
Or create a .env file:
OUTSCRAPER_API_KEY=your_api_key_here
🛠️ Tools Reference
google_maps_search
Search for businesses and places on Google Maps
# Parameters:
query: str # Search query (e.g., 'restaurants brooklyn usa')
limit: int = 20 # Number of results (max: 400)
language: str = "en" # Language code
region: str = None # Country/region code (e.g., 'US', 'GB')
drop_duplicates: bool = False # Remove duplicate results
enrichment: List[str] = None # Additional services ['domains_service', 'emails_validator_service']
google_maps_reviews
Extract reviews from Google Maps places
# Parameters:
query: str # Place query, place ID, or business name
reviews_limit: int = 10 # Number of reviews per place (0 for unlimited)
limit: int = 1 # Number of places to process
sort: str = "most_relevant" # Sort order: 'most_relevant', 'newest', 'highest_rating', 'lowest_rating'
language: str = "en" # Language code
region: str = None # Country/region code
cutoff: int = None # Unix timestamp for reviews after specific date
google_maps_photos
Extract photos from Google Maps places
# Parameters:
query: str # Place query, place ID, or business name
photos_limit: int = 20 # Number of photos per place
limit: int = 1 # Number of places to process
language: str = "en" # Language code
region: str = None # Country/region code
google_maps_directions
Get directions between locations
# Parameters:
query: str # Route query (e.g., 'from Times Square to Central Park')
travel_mode: str = "driving" # 'driving', 'walking', 'bicycling', 'transit'
departure_time: int = None # Unix timestamp for departure time
language: str = "en" # Language code
google_search
Perform Google web search
# Parameters:
query: str # Search query
pages_per_query: int = 1 # Number of result pages
language: str = "en" # Language code
region: str = None # Country/region code
google_search_news
Search Google News
# Parameters:
query: str # News search query
pages_per_query: int = 1 # Number of result pages
language: str = "en" # Language code
region: str = None # Country/region code
tbs: str = None # Time filter: 'qdr:d' (day), 'qdr:w' (week), 'qdr:m' (month)
google_play_reviews
Extract Google Play Store app reviews
# Parameters:
query: str # App package name (e.g., 'com.facebook.katana')
reviews_limit: int = 100 # Number of reviews to extract
sort: str = "most_relevant" # 'most_relevant', 'newest', 'rating'
language: str = "en" # Language code
emails_and_contacts
Extract emails and contacts from domains
# Parameters:
query: str # Domain name (e.g., 'outscraper.com')
🚀 Running the Server
Stdio Transport (Default)
python -m outscraper_mcp
# or
outscraper-mcp
HTTP Transport
from outscraper_mcp import mcp
if __name__ == "__main__":
mcp.run(transport="streamable-http", host="127.0.0.1", port=8000)
💡 Usage Examples
Example 1: Find Restaurants and Get Reviews
# 1. Search for restaurants
results = google_maps_search(
query="italian restaurants manhattan nyc",
limit=5,
language="en",
region="US"
)
# 2. Get reviews for a specific place
reviews = google_maps_reviews(
query="ChIJrc9T9fpYwokRdvjYRHT8nI4", # Place ID from search results
reviews_limit=20,
sort="newest"
)
Example 2: Research Competition
# 1. Search for competitors
competitors = google_search(
query="best pizza delivery apps 2024",
pages_per_query=2,
region="US"
)
# 2. Get app reviews
app_reviews = google_play_reviews(
query="com.dominos.android",
reviews_limit=50,
sort="newest"
)
Example 3: Lead Generation
# 1. Find businesses
businesses = google_maps_search(
query="digital marketing agencies chicago",
limit=20,
enrichment=["domains_service", "emails_validator_service"]
)
# 2. Extract contact information
for business in businesses:
if business.get('site'):
domain = business['site'].replace('https://', '').replace('http://', '')
contacts = emails_and_contacts(query=domain)
🔄 Integration with MCP Clients
This server is compatible with any MCP client, including:
- Claude Desktop
- Zed Editor
- Custom MCP clients
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"outscraper": {
"command": "outscraper-mcp",
"env": {
"OUTSCRAPER_API_KEY": "your_api_key_here"
}
}
}
}
📊 Rate Limits & Pricing
- Check Outscraper Pricing for current rates
- API key usage is tracked per request
- Consider implementing caching for frequently accessed data
🐛 Troubleshooting
Common Issues
- Import Error: Make sure you've installed FastMCP 2.0
- API Key Error: Verify your API key is set correctly
- No Results: Check if your query parameters are valid
- Rate Limits: Implement delays between requests if needed
Enable Debug Logging
import logging
logging.basicConfig(level=logging.DEBUG)
🤝 Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
📄 License
Experimental Software License - see LICENSE file for details.
Notice: This software is experimental and free to use for all purposes. Created by Jay Ozer.
🔗 Links
Built with Blu Goldens
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。