What CrewAI is and how its agents get tools
CrewAI is a multi-agent framework for Python. You define agents, each with a role, a goal and a backstory, give them tasks, and group them into a crew that runs the tasks in order or under a manager. An agent can only act on the outside world through the tools you attach to it.
CrewAI's documentation describes two ways to attach tools from a Model Context Protocol server. The recommended one is a field on the agent named mcps, which accepts transport objects such as MCPServerHTTP, imported from crewai.mcp. The second is MCPServerAdapter, imported from crewai_tools, which you manage yourself and whose output you pass to the agent's tools. The docs also cover custom tools written as plain Python.
SimilarIQ publishes no CrewAI plugin and is not listed in a CrewAI tool catalog. What it does publish is a hosted MCP server over streamable HTTP, a REST API and a Python SDK. Those are enough.
Why a crew benefits from look-alike data
Crews are usually built as a pipeline of specialists: a researcher gathers, an analyst judges, a writer produces. The weak link is often the first step. A researcher agent asked for competitors without a data tool answers from the model's memory, and every later agent inherits that short, famous-names-only list.
SimilarIQ gives the researcher a structured source. One call with a domain returns up to 100 companies with rank, company, domain, matchScore, a relationship type (Direct, Indirect, Adjacent or Emerging), confidence and likelyCompetitor. Results come from a fresh research pass that is cross-validated across multiple independent intelligence sources, and the confidence score reports how well those sources agreed.
That structure matters for hand-offs between agents. The analyst can be told to keep Direct results above a score, and the writer can be told to mention only companies with high confidence. Rules like those cannot be written against a paragraph of prose.
Setup walkthrough: the mcps field
CrewAI's docs give uv add mcp as the install step for this route. Then create a SimilarIQ API key in the app. It starts with sk-live-, is shown once, and belongs in an environment variable.
Build the agent with mcps=[MCPServerHTTP(url='https://similariq.ai/mcp', headers={'X-API-Key': KEY})], where KEY is read from the environment. CrewAI documents url as required and headers as optional HTTP headers for authentication. It documents streamable as defaulting to True, which matches the streamable HTTP transport SimilarIQ uses, so you do not need to set it.
Two further options are worth knowing. cache_tools_list defaults to False; set it to True and the tool list is cached after first discovery, which saves a round trip on each run. tool_filter defaults to None, meaning every tool is available; CrewAI documents create_static_tool_filter() as one way to build a filter. The docs also show a bare URL string with a #tool_name suffix to select one tool, but they do not show how to send headers with that form, so use the MCPServerHTTP object.
Setup walkthrough: MCPServerAdapter and custom tools
The adapter route installs with uv pip install 'crewai-tools[mcp]'. CrewAI's example builds a server_params dictionary with a url and "transport": "streamable-http", then opens with MCPServerAdapter(server_params, connect_timeout=60) as mcp_tools: and passes mcp_tools to the agent's tools. The docs recommend the with form because it starts and stops the connection for you. Their streamable HTTP page does not show a headers entry in server_params, so this page does not give one; prefer the mcps route when you authenticate with a key.
If you only need search, skip MCP and write one tool. CrewAI documents two forms: a class that subclasses BaseTool from crewai.tools, with name, description, an args_schema and a _run method, or a function decorated with @tool from the same module. Inside it, send POST https://similariq.ai/api/v1/search with the body {"domain":"stripe.com","limit":100} and the X-API-Key header, or call the Python SDK installed with pip install similariq.
Write the description carefully. State that the tool costs one credit per call, takes 30 to 60 seconds, and returns up to 100 companies. Agents read descriptions when choosing tools, and a clear cost statement reduces repeat calls.
Timeouts to check
CrewAI's MCP overview says connections time out after 30 seconds and that the value is configurable. For the adapter the parameter is connect_timeout, which defaults to 30 seconds; for crews built with @CrewBase there is a class attribute, mcp_connect_timeout, with the same default. Those govern connecting and listing tools, which SimilarIQ answers quickly.
The number that matters more is the limit on a single tool call, because a search takes roughly 30 to 60 seconds. CrewAI's overview mentions built-in timeouts but does not state a default for tool execution. Check the reference for your installed version, and if a search is cut off, look for an execution timeout setting before assuming the server failed. Past searches are saved, so list_recent_searches will show whether the result exists.
Example prompts and task descriptions
These work as task descriptions for an agent that has the SimilarIQ tools. Tool names are the ones the MCP server exposes.
- Check the search balance and stop if fewer than five credits remain. Uses
get_search_balance, which is free. - Find look-alikes for the given domain and return only Direct results with a match score of 75 or more. Uses
find_similar_companies, one credit. - Look in recent searches for this domain before searching again. Uses
list_recent_searchesandget_search_results. - Submit these 50 domains as one bulk job and wait for it to finish. Uses
start_bulk_searchandget_bulk_job. - Save the five closest matches to the watchlist. Uses
save_company. - Create a share link for the search so a reviewer can open it without logging in. Uses
create_share_link. - List every company found across past searches and count how often each appears. Uses
list_my_companies.
Controlling spend in a multi-agent run
Multi-agent systems spend in ways single agents do not. Two agents can each decide to research the same company, and a manager can re-delegate a task that already ran. Only two SimilarIQ tools cost credits: find_similar_companies at one credit and start_bulk_search at one credit per domain. Give those two tools to exactly one agent. Give every other agent a filtered list containing the eight free tools, or no SimilarIQ tools at all.
The arithmetic is simple. One search is $0.25. A crew that researches 20 accounts spends $5.00. A nightly crew covering 200 accounts spends $50. Instruct the paying agent to call get_search_balance first and list_recent_searches second, and to search only when the domain is missing from history.
Outside the framework, the balance is the backstop. With auto-refill off, a looping crew stops at zero with a 402. With auto-refill on, the monthly cap you set is a hard ceiling. Both are described under spend controls.
Two crews worth building
Prospecting crew. A researcher agent takes a list of closed-won customer domains and runs one search each. An analyst agent with no paid tools merges the results, removes duplicates and existing customers, and keeps companies that appear for more than one seed. A writer agent drafts one line per account explaining which customer it resembles. SimilarIQ supplies companies and scores only, so add your own enrichment tool if the output needs contacts. See look-alike prospecting.
Diligence crew. For an investment memo, the researcher searches the target company's domain. The analyst groups the 100 results by relationship type and flags Emerging companies with high confidence as entrants worth a closer look. The writer produces the competitive section and calls create_share_link so the partner can inspect the raw list. Cost: $0.25 per target. The due diligence use case covers what to verify by hand.
Troubleshooting and security
No tools on the agent usually means the URL or header is wrong. Confirm the URL is exactly https://similariq.ai/mcp and the header key is X-API-Key. A 401 means the key is missing or revoked. A 402 means the balance is empty. A 429 means the rate limiter is smoothing a burst; slow the crew down. A 502 means the search failed, the credit was refunded and a retry is safe.
Create one key per crew so you can revoke a single deployment. Load keys from the environment or a secrets manager and keep them out of agent backstories and task text, which are sent to the model. Company names in results come from the open web. Tell agents to treat tool output as data to analyse, never as instructions, and review anything a crew sends externally. The guide to agent research tools goes further on this.
Frequently asked questions
Is there an official SimilarIQ tool for CrewAI?
No. SimilarIQ has no CrewAI package or catalog listing. You connect with CrewAI's built-in MCP support pointed at the hosted SimilarIQ MCP server, or by writing a custom tool around the REST API.
How do I add a remote MCP server to a CrewAI agent?
CrewAI's docs recommend the agent's mcps field with an MCPServerHTTP object from crewai.mcp, giving it a url and optional headers. An alternative is MCPServerAdapter from crewai_tools with a streamable-http transport.
How does the crew authenticate to SimilarIQ?
Pass your sk-live- key in the headers of MCPServerHTTP as X-API-Key. For a custom REST tool, send the same header on the request. One key works for both.
Will a 30-second CrewAI timeout break a search?
The 30-second default CrewAI documents is for connecting to the MCP server, not for running a tool. CrewAI's overview does not state a default tool execution timeout, so check your version's reference and allow at least two minutes for a search.
How do I stop several agents from paying for the same search?
Attach the two paid tools to one agent only, and have it check list_recent_searches before searching. Reading a past result with get_search_results is free and immediate.
Does SimilarIQ return contacts for the companies a crew finds?
No. Each result is a company name, a domain, a match score, a relationship type, a confidence score and a likely-competitor flag. Add a separate enrichment tool to the crew for people or firmographic data.