websearch-tools
Web Search tools are a series of tools that allow Claude to acces de internet via MCP Server
Documentation
WebSearch - Advanced Web Search and Content Extraction Tool
A powerful web search and content extraction tool built with Python, leveraging the Firecrawl API for advanced web scraping, searching, and content analysis capabilities.
🚀 Features
- Advanced Web Search: Perform intelligent web searches with customizable parameters
- Content Extraction: Extract specific information from web pages using natural language prompts
- Web Crawling: Crawl websites with configurable depth and limits
- Web Scraping: Scrape web pages with support for various output formats
- MCP Integration: Built as a Model Context Protocol (MCP) server for seamless integration
📋 Prerequisites
- Python 3.8 or higher
- uv package manager
- Firecrawl API key
- OpenAI API key (optional, for enhanced features)
- Tavily API key (optional, for additional search capabilities)
🛠️ Installation
1. Install uv:
# On Windows (using pip)
pip install uv
# On Unix/MacOS
curl -LsSf https://astral.sh/uv/install.sh | sh
# Add uv to PATH (Unix/MacOS)
export PATH="$HOME/.local/bin:$PATH"
# Add uv to PATH (Windows - add to Environment Variables)
# Add: %USERPROFILE%\.local\bin2. Clone the repository:
git clone https://github.com/yourusername/websearch.git
cd websearch3. Create and activate a virtual environment with uv:
# Create virtual environment
uv venv
# Activate on Windows
.\.venv\Scripts\activate.ps1
# Activate on Unix/MacOS
source .venv/bin/activate4. Install dependencies with uv:
# Install from requirements.txt
uv sync5. Set up environment variables:
# Create .env file
touch .env
# Add your API keys
FIRECRAWL_API_KEY=your_firecrawl_api_key
OPENAI_API_KEY=your_openai_api_key🎯 Usage
Setting Up With Claude for Desktop
Instead of running the server directly, you can configure Claude for Desktop to access the WebSearch tools:
1. Locate or create your Claude for Desktop configuration file:
2. Add the WebSearch server configuration to the `mcpServers` section:
{
"mcpServers": {
"websearch": {
"command": "uv",
"args": [
"--directory",
"D:\\ABSOLUTE\\PATH\\TO\\WebSearch",
"run",
"main.py"
]
}
}
}3. Make sure to replace the directory path with the absolute path to your WebSearch project folder.
4. Save the configuration file and restart Claude for Desktop.
5. Once configured, the WebSearch tools will appear in the tools menu (hammer icon) in Claude for Desktop.
Available Tools
1. Search
2. Extract Information
3. Crawl Websites
4. Scrape Content
📚 API Reference
Search
- `query` (str): The search query
- Returns: Search results in JSON format
Extract
- `urls` (List[str]): List of URLs to extract information from
- `prompt` (str): Instructions for extraction
- `enableWebSearch` (bool): Enable supplementary web search
- `showSources` (bool): Include source references
- Returns: Extracted information in specified format
Crawl
- `url` (str): Starting URL
- `maxDepth` (int): Maximum crawl depth
- `limit` (int): Maximum pages to crawl
- Returns: Crawled content in markdown/HTML format
Scrape
- `url` (str): Target URL
- Returns: Scraped content with optional screenshots
🔧 Configuration
Environment Variables
The tool requires certain API keys to function. We provide a `.env.example` file that you can use as a template:
1. Copy the example file:
# On Unix/MacOS
cp .env.example .env
# On Windows
copy .env.example .env2. Edit the `.env` file with your API keys:
# OpenAI API key - Required for AI-powered features
OPENAI_API_KEY=your_openai_api_key_here
# Firecrawl API key - Required for web scraping and searching
FIRECRAWL_API_KEY=your_firecrawl_api_key_hereGetting the API Keys
1. OpenAI API Key:
2. Firecrawl API Key:
If everything is configured correctly, you should receive a JSON response with search results.
Troubleshooting
If you encounter errors:
1. Ensure all required API keys are set in your `.env` file
2. Verify the API keys are valid and have not expired
3. Check that the `.env` file is in the root directory of the project
4. Make sure the environment variables are being loaded correctly
🤝 Contributing
1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Firecrawl for their powerful web scraping API
- OpenAI for AI capabilities
- MCPThe MCP community for the protocol specification
📬 Contact
José Martín Rodriguez Mortaloni - @m4s1t425 - jmrodriguezm13@gmail.com
Made with ❤️ using Python and Firecrawl
Frequently asked questions
What is websearch-tools?
websearch-tools is Web Search tools are a series of tools that allow Claude to acces de internet via MCP Server
How do I install websearch-tools?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is websearch-tools open source?
Yes — it is hosted on GitHub at https://github.com/m4s1t4/webSearch-Tools and has 1 stars.
Related MCP tools
🙌 OpenHands: Code Less, Make More for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.
基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择ChatGPT/Claude/DeepSeek/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to
🚀 The fast, Pythonic way to build MCP servers and clients Trusted by 19900+ developers. Trusted by 19900+ developers. Trusted by 19900+ developers.
🔥 MaxKB is an open-source platform for building enterprise-grade agents. MaxKB 是强大易用的开源企业级智能体平台。 for the Model Context Protocol. Enhance AI assistants with po
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP