[ clawifi for crewai ]
Web search and page reading for CrewAI
Add Clawifi’s hosted MCP server to a CrewAI agent and it can search the web, read pages and PDFs, and get only the passages that answer each question, with sources.
What Clawifi gives CrewAI#
CrewAI agents take MCP servers straight from the mcps field. Clawifi’s hosted server gives them search, page reading, maps and crawls with no tool code to write.
- Search:
search_freesearches many engines as one and returns ranked results with their sources. - Read:
fetch_urlandscrape_urlread pages and PDFs as Markdown; with aquery,scrape_urlreturns only the passages that answer it. - Parse and discover:
extract_urlpulls structured fields from a page;map_sitelists a site’s URLs;start_crawlandget_crawlread several pages. - Jobs, history and monitors:
create_job,get_job,list_historyandlist_monitorsfor longer runs and scheduled checks. - Cost first:
estimateprices a call before it runs, and the account tools show your credits.
Set it up#
1. Get an API key
Create an account at clawifi.dev/signup. The Free plan includes 1,000 credits a month. Copy the key the console shows you (it is shown once) and keep it in an environment variable,
CLAWIFI_API_KEY.2. Install CrewAI with MCP support
CrewAI’s MCP integration needs the
mcplibrary (CrewAI MCP docs).pip install -U crewai mcp3. Add Clawifi to an agent
Use
MCPServerHTTPwith the hosted URL and your key in anAuthorizationheader, as CrewAI’s structured configuration shows.import os from crewai import Agent, Crew, Task from crewai.mcp import MCPServerHTTP researcher = Agent( role="Web researcher", goal="Answer questions from current web sources, with links", backstory="Reads pages before answering", mcps=[ MCPServerHTTP( url="https://api.clawifi.dev/mcp", headers={"Authorization": f"Bearer {os.environ['CLAWIFI_API_KEY']}"}, streamable=True, ), ], ) task = Task(description="Find the latest MCP specification changes and summarise them.", expected_output="A short summary with links", agent=researcher) print(Crew(agents=[researcher], tasks=[task]).kickoff())4. Run it
Set
CLAWIFI_API_KEYand your model provider’s key, then run the script.
Sources for this setup: CrewAI MCP docs · Remote MCP · MCP tools. Clawifi works with CrewAI; it is not affiliated with its makers.
Reference: MCP tools lists every tool, the CLI checks a key and prints MCP config, and Rate limits and plans shows how many calls run at once on each plan.
Example prompts#
Search the web for the three newest papers on agent memory and read their abstracts.
Read https://docs.crewai.com/en/mcp/overview and return only the passages about authentication.
Map https://docs.python.org/3/library/ and list the pages that cover asyncio.
Questions#
How do I use Clawifi in CrewAI?
Add MCPServerHTTP(url="https://api.clawifi.dev/mcp", headers={"Authorization": "Bearer <your key>"}) to an agent’s mcps list.
Can I use it without a key?
Without a key, search_free, fetch_url, scrape_url and map_site work on the hosted server as a trial: 12 calls a minute and 50 a day per address. A free API key includes 1,000 credits a month and opens every tool.
Which tools does the agent get?
Every tool the hosted server offers: search, page and PDF reading, passage selection, maps and crawls. They are listed on MCP tools.
What does it cost?
Each tool call is billed like the API route it runs: most cost 1 credit and a browser render 3. Cache hits, failures on Clawifi’s side and answers with nothing to read (a blocked page, a JavaScript shell, a 404) cost 0. The Free plan includes 1,000 credits a month. See Pricing.
Related comparisons: Clawifi vs Brave Search API · Clawifi vs Exa · Clawifi vs Tavily.
Other agents and frameworks#
Next: Integrations · Docs · Pricing