Skip to main content

Streamlined MCP server for Outscraper's Google Maps data extraction services - 2 essential tools for maps search and reviews

Project description

Outscraper MCP Server

smithery badge PyPI version Python 3.10+

A streamlined Model Context Protocol (MCP) server that provides access to Outscraper's Google Maps data extraction services. This server implements 2 essential tools for extracting Google Maps data with high reliability.

🚀 Features

Google Maps Data Extraction

  • 🗺️ Google Maps Search - Search for businesses and places with detailed information
  • ⭐ Google Maps Reviews - Extract customer reviews from any Google Maps place

Advanced Capabilities

  • Data Enrichment - Enhance results with additional contact information via enrichment parameter
  • Multi-language Support - Search and extract data in different languages
  • Regional Filtering - Target specific countries/regions for localized results
  • Flexible Sorting - Sort reviews by relevance, date, rating, etc.
  • Time-based Filtering - Filter reviews by date using cutoff parameter
  • High Volume Support - Handles async processing for large requests automatically

📦 Installation

Installing via Smithery (Recommended)

To install the Outscraper MCP server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install outscraper-mcp --client claude

Installing via PyPI

# Using pip
pip install outscraper-mcp

# Using uv (recommended)
uv add outscraper-mcp

# Using uvx for one-time execution
uvx outscraper-mcp

Manual Installation

git clone https://github.com/jayozer/outscraper-mcp
cd outscraper-mcp

# Using uv (recommended)
uv sync

# Using pip
pip install -e .

🔧 Configuration

Get Your API Key

  1. Sign up at Outscraper
  2. 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

🛠️ Client Configuration

Claude Desktop

Add to your claude_desktop_config.json:

Via Smithery (Automatic):

{
  "mcpServers": {
    "outscraper": {
      "command": "npx",
      "args": ["-y", "@smithery/cli", "run", "outscraper-mcp"],
      "env": {
        "OUTSCRAPER_API_KEY": "your_api_key_here"
      }
    }
  }
}

Via Local Installation:

{
  "mcpServers": {
    "outscraper": {
      "command": "uvx",
      "args": ["outscraper-mcp"],
      "env": {
        "OUTSCRAPER_API_KEY": "your_api_key_here"
      }
    }
  }
}

Via Manual Installation:

{
  "mcpServers": {
    "outscraper": {
      "command": "uv",
      "args": ["run", "python", "-m", "outscraper_mcp"],
      "env": {
        "OUTSCRAPER_API_KEY": "your_api_key_here"
      }
    }
  }
}

Cursor AI

Automatic Installation with UVX (Recommended):

{
  "mcpServers": {
    "outscraper": {
      "command": "uvx",
      "args": ["outscraper-mcp"],
      "env": {
        "OUTSCRAPER_API_KEY": "your_api_key_here"
      }
    }
  }
}

Manual Installation:

{
  "mcpServers": {
    "outscraper": {
      "command": "outscraper-mcp",
      "env": {
        "OUTSCRAPER_API_KEY": "your_api_key_here"
      }
    }
  }
}

Note for Cursor Users: The configuration file is typically located at:

  • macOS: ~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  • Windows: %APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
  • Linux: ~/.config/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

🛠️ 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

🚀 Running the Server

Development & Testing

# FastMCP Inspector - Web-based testing dashboard
fastmcp dev outscraper_mcp/server.py

# Then open your browser to: http://127.0.0.1:6274
# Interactive testing of Google Maps tools with real-time responses

Stdio Transport (Default)

# Via PyPI installation
outscraper-mcp

# Via uv
uv run python -m outscraper_mcp

# Via manual installation
python -m 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: Lead Generation with Enrichment

# Find businesses with enhanced contact information
businesses = google_maps_search(
    query="digital marketing agencies chicago",
    limit=20,
    enrichment=["domains_service", "emails_validator_service"]
)

# Get detailed reviews for sentiment analysis
for business in businesses:
    if business.get('place_id'):
        reviews = google_maps_reviews(
            query=business['place_id'],
            reviews_limit=10,
            sort="newest"
        )

Example 3: Market Research

# Research competitors in specific area
competitors = google_maps_search(
    query="coffee shops downtown portland",
    limit=50,
    region="US"
)

# Analyze recent customer feedback
recent_reviews = google_maps_reviews(
    query="coffee shops downtown portland",
    reviews_limit=100,
    sort="newest"
)

🔄 Integration with MCP Clients

This server is compatible with any MCP client, including:

📊 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

  1. Import Error: Make sure you've installed the package correctly

    pip install --upgrade outscraper-mcp
    
  2. API Key Error: Verify your API key is set correctly

    echo $OUTSCRAPER_API_KEY
    
  3. No Results: Check if your query parameters are valid

  4. Rate Limits: Implement delays between requests if needed

Enable Debug Logging

import logging
logging.basicConfig(level=logging.DEBUG)

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

outscraper_mcp-1.0.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

outscraper_mcp-1.0.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file outscraper_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: outscraper_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for outscraper_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4398efa2745c17da680cf67509e0ced24a292ac951cc7f6e19c84fbe3b03198d
MD5 84625752f0b859ef34af077694ed6f9a
BLAKE2b-256 0043c73504770ab69f290ad575ee16d5723d06c0c85c91c38cae6d1d9d451448

See more details on using hashes here.

File details

Details for the file outscraper_mcp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: outscraper_mcp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for outscraper_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a47c042f026667264b30cc746b3547e1fa8c7957ed50bef6281e9bafc2bc0ee5
MD5 3810406c242b35d6a3daa1fcd40a8a0d
BLAKE2b-256 c5fec4fbb3b6a2e47ebe7661a50f6fe90bec86b3194363061e64b935a86c3415

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page