Model Context Protocol (MCP) Integration
Connect SearchHive's web scraping and search capabilities to any AI agent
Universal AI Agent Support
Quick Start
Install globally
npm install -g @searchhive/mcp-server
Set environment variable
export SEARCHHIVE_API_KEY=sk_live_your_key_here
Get your API key from the dashboard
Available Tools
Real-time web search with optional auto-scraping of top results
Features
Example Usage
swift_search({
query: "latest AI developments 2025",
auto_scrape_top: 3,
include_contacts: true
})
Enterprise web scraping with browser rendering
Features
Example Usage
scrape_forge({
url: "https://example.com",
extract: ["title", "text", "links"],
use_browser: true
})
AI-powered research across multiple sources
Features
Example Usage
deep_dive({
query: "climate change impact 2025",
max_sources: 10,
generate_summary: true
})
Extract emails and phone numbers from text
Features
Example Usage
extract_contacts({
text: "Contact us at hello@example.com or call (555) 123-4567"
})
Scrape multiple URLs efficiently in batch
Features
Example Usage
batch_scrape({
urls: ["https://site1.com", "https://site2.com"],
include_contacts: true
})
AI Client Setup
Native integration with Anthropic's Claude Desktop app
Setup: Add to MCP settings
AI-powered code editor with MCP support
Setup: Configure in settings
Open-source AI coding assistant
Setup: Add to config.json
Visual Studio Code with MCP extension
Setup: Install extension
Add this configuration to your Claude Desktop MCP settings file:
claude_desktop_config.json
{
"mcpServers": {
"searchhive": {
"command": "npx",
"args": ["@searchhive/mcp-server"],
"env": {
"SEARCHHIVE_API_KEY": "sk_live_your_key_here"
}
}
}
}
Add this to your Cursor settings:
cursor-settings.json
{
"mcp": {
"servers": {
"searchhive": {
"command": "searchhive-mcp",
"env": {
"SEARCHHIVE_API_KEY": "sk_live_your_key_here"
}
}
}
}
}
Usage Examples
Ask your AI agent to research any topic comprehensively:
๐ฌ You:
"Research the latest developments in quantum computing and provide me with a comprehensive summary including key players and recent breakthroughs."
๐ค AI Agent:
Uses deep_dive
tool to search multiple sources, scrape content, and generate an AI-powered summary with citations.
Find and extract contact information from company websites:
๐ฌ You:
"Find contact information for the top 5 AI startups in San Francisco."
๐ค AI Agent:
Uses swift_search
to find companies, then batch_scrape
with contact extraction to gather emails and phone numbers.
Analyze and extract specific information from web pages:
๐ฌ You:
"Scrape this product page and extract all the technical specifications and pricing information."
๐ค AI Agent:
Uses scrape_forge
with custom extraction patterns to pull structured data from complex pages.
Troubleshooting
If you're getting authentication errors:
- Verify your API key is correct and active in the dashboard
- Ensure the
SEARCHHIVE_API_KEY
environment variable is set - Check that your plan has sufficient credits
If the MCP server won't connect:
- Restart your AI client after configuration changes
- Check that the MCP server is properly installed:
npx @searchhive/mcp-server --version
- Verify the configuration syntax in your AI client settings
If tools are failing:
- Check the SearchHive API status for any outages
- Verify URLs are accessible and properly formatted
- Reduce batch sizes if hitting rate limits