๐ Web Browser MCP Server
๐ค Transform your AI applications with powerful web browsing capabilities! Let your AI read and understand the web.
โจ Features
- ๐ฏ Smart Content Extraction - Target exactly what you need with CSS selectors
- โก Lightning Fast - Built with async processing for optimal performance
- ๐ Rich Metadata - Capture titles, links, and structured content
- ๐ก๏ธ Robust & Reliable - Built-in error handling and timeout management
- ๐ Cross-Platform - Works everywhere Python runs
๐ Quick Start
Installation
Choose your favorite package manager:
# Using pip
pip install web-browser-mcp-server
# Using uv (recommended)
uv pip install web-browser-mcp-server
๐ Claude Desktop Integration
Add this to your Claude Desktop config to unlock web browsing superpowers:
๐ Click to view configuration{
"mcpServers": {
"web-browser-mcp-server": {
"command": "uv",
"args": [
"--directory",
"/path/to/web-browser-mcp-server",
"run",
"web-browser-mcp-server"
],
"env": {
"REQUEST_TIMEOUT": "30"
}
}
}
}
๐ก Replace
/path/to/web-browser-mcp-server
with your installation path
๐ฎ Usage Examples
Extract exactly what you need from any webpage:
# Basic webpage fetch
result = browse_webpage(url="https://example.com")
# Target specific content with CSS selectors
result = browse_webpage(
url="https://example.com",
selectors={
"headlines": "h1, h2",
"main_content": "article.content",
"navigation": "nav a"
}
)
โ๏ธ Configuration
Customize behavior with environment variables:
Variable | Description | Default |
---|---|---|
REQUEST_TIMEOUT |
โฑ๏ธ Max request time (seconds) | 30 |
USER_AGENT |
๐ต๏ธ Custom user agent string | Modern Chrome UA |
LOG_LEVEL |
๐ Logging verbosity | "info" |
MAX_RETRIES |
๐ Max retry attempts | 3 |
๐ ๏ธ Development
Set up your dev environment in seconds:
# Create and activate virtual environment
uv venv
source .venv/bin/activate
# Install dev dependencies
uv pip install -e ".[test]"
# Run tests
python -m pytest
๐ค Contributing
Contributions are welcome! Feel free to:
- ๐ Report bugs
- ๐ก Suggest features
- ๐ง Submit pull requests
๐ License
MIT License - do what you want! See LICENSE for details.
๐ Level Up Your AI with Web Browsing Powers! ๐
Built for the Model Context Protocol | Made with โค๏ธ by the MCP Community
๐ Star us on GitHub! If you find this tool useful, consider giving it a star! It helps others discover the project.