MCP server for web search and scraping using Firecrawl API
Project description
Mavi Firecrawl - MCP Server
A Model Context Protocol (MCP) server for web search and scraping using Firecrawl API.
Features
- Search: Search the web using Firecrawl's powerful search API
- Scrape: Extract content from any URL in markdown or HTML format
Installation
pip install mavi-firecrawl
Setup
1. Get Firecrawl API Key
- Visit https://firecrawl.dev
- Sign up for an account
- Get your API key from the dashboard
2. Set Environment Variable
On Mac/Linux:
export FIRECRAWL_API_KEY="your-api-key-here"
On Windows:
set FIRECRAWL_API_KEY=your-api-key-here
Permanently (add to ~/.bashrc or ~/.zshrc):
echo 'export FIRECRAWL_API_KEY="your-api-key-here"' >> ~/.zshrc
source ~/.zshrc
Usage
Run the server:
mavi-firecrawl
Available Tools
1. search
Search the web using Firecrawl API.
Parameters:
query(string, required): Search querylimit(number, optional): Maximum results to return (default: 5)
Example:
{
"query": "Python programming",
"limit": 5
}
2. scrape
Extract content from a URL using Firecrawl API.
Parameters:
url(string, required): URL to scrapeformats(array, optional): Output formats like ["markdown", "html"] (default: ["markdown"])
Example:
{
"url": "https://example.com",
"formats": ["markdown"]
}
Use with Claude Desktop
1. Set API Key
First, make sure your API key is set in the environment.
2. Configure Claude Desktop
Edit claude_desktop_config.json:
macOS:
nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
Add this configuration:
{
"mcpServers": {
"mavi-firecrawl": {
"command": "mavi-firecrawl",
"env": {
"FIRECRAWL_API_KEY": "your-api-key-here"
}
}
}
}
3. Restart Claude Desktop
4. Test
Ask Claude:
- "Search for information about Python programming"
- "Scrape the content from https://example.com"
Requirements
- Python 3.10+
- Firecrawl API key
- requests library
- mcp library
API Documentation
For more information about Firecrawl API, visit: https://docs.firecrawl.dev
Version
1.0.0
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mavi_firecrawl-1.0.0.tar.gz.
File metadata
- Download URL: mavi_firecrawl-1.0.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b0e57cbcb03505827cf55fe97f87e7947f0c025f237a7e584e3db9ab120690c
|
|
| MD5 |
34d890e3ecc0f435fc4937e9f928cbb8
|
|
| BLAKE2b-256 |
635929f346bc4d4cf09011ae64a3fe5cea893b498a7d058a199a080159feb261
|
File details
Details for the file mavi_firecrawl-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mavi_firecrawl-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b00eef5152971a90f8b20ef34ece3cba8acf1514e1484fb819a0b5a8272978f4
|
|
| MD5 |
8f5f667311bf0236cb99c71055532c17
|
|
| BLAKE2b-256 |
01e6f90b5f9433a536af9b12e706d5e0939665d3c1cd6b9048fd64401ec78b4d
|