# Use SimilarIQ with AutoGen

> SimilarIQ has no AutoGen-specific extension. AutoGen agents reach it through the framework's MCP tools module: build StreamableHttpServerParams with the URL https://similariq.ai/mcp and an X-API-Key header, raise its 30-second default timeout, then load tools with mcp_server_tools or McpWorkbench. A search returns up to 100 ranked look-alike companies for $0.25.

Source: https://similariq.ai/integrations/autogen · Updated 2026-11-25

## What AutoGen is, and its current status

AutoGen is Microsoft's open-source framework for building applications in which several AI agents converse and cooperate. Agents are given a model client and tools, placed in a team, and exchange messages until a termination condition is met. Extensions, including model clients and tool adapters, live in a separate package named `autogen-ext`.

One status note before you build. The project's README states that AutoGen is in maintenance mode, with contributions limited to bug fixes, security patches and documentation improvements, and that new users should start with Microsoft Agent Framework. This page covers AutoGen as documented for teams that already run it. If you are starting fresh, read Microsoft's guidance first; the SimilarIQ side of the setup is the same hosted endpoint whichever framework calls it.

SimilarIQ publishes no AutoGen extension. It offers a hosted [MCP server](https://similariq.ai/features/mcp-server), a REST API and a Python SDK, and AutoGen's MCP module can load the first of those directly.

## Why give an AutoGen team a look-alike tool

Multi-agent conversations are good at breaking a research question into parts and bad at producing facts none of the agents hold. When a team is asked to map a company's competitors, the agents can debate at length and still draw on the same model memory. The debate adds confidence without adding coverage.

A SimilarIQ call adds coverage. One domain in, up to 100 ranked companies out, each with `matchScore`, a relationship `type` (Direct, Indirect, Adjacent or Emerging), a `confidence` score and a `likelyCompetitor` flag. The engine runs a fresh research pass per search and cross-validates across multiple independent intelligence sources.

Typed, scored rows also give the team something concrete to disagree about. A critic agent can challenge a specific Indirect classification or ask why a low-confidence result was kept, which is more useful than critiquing prose. The [relationship types page](https://similariq.ai/features/relationship-types) defines each label.

## Setup walkthrough: load the MCP tools

AutoGen's reference gives the install command for the MCP module as `pip install -U "autogen-ext[mcp]"`. Install it alongside the AgentChat package and a model client extra, as the README shows. Then create a SimilarIQ API key in the app; it starts with `sk-live-` and is displayed once.

The module is `autogen_ext.tools.mcp`. For a remote streamable HTTP server the parameters class is `StreamableHttpServerParams`. Build it as `StreamableHttpServerParams(url='https://similariq.ai/mcp', headers={'X-API-Key': KEY}, timeout=120)`. The reference documents `url` as required, `headers` as optional, `timeout` defaulting to 30.0, `sse_read_timeout` defaulting to 300.0 and `terminate_on_close` defaulting to `True`.

There are two ways to turn those parameters into tools. `await mcp_server_tools(server_params)` returns a list of tool adapters, one per server tool, which you hand to an agent as its tools. `McpWorkbench(server_params)` is used as an async context manager, or through `start()` and `stop()`, and exposes `list_tools()` and `call_tool(name, arguments)`. This page does not spell out the agent constructor, because agent parameter names were not re-verified for this write-up; follow the AgentChat reference for your version.

## The 30-second default and other transport notes

The documented default of 30.0 for `timeout` on `StreamableHttpServerParams` sits at the low end of a SimilarIQ search, which takes roughly 30 to 60 seconds. Set it to 120 or higher as shown above. The module also defines `SseServerParams`, whose documented `timeout` default is 5, and `StdioServerParams` for local processes. Neither applies here: SimilarIQ's server is remote and speaks streamable HTTP, so there is no local process to launch and nothing to install on the server side.

If a call is cut off despite the higher value, do not assume the credit was wasted. Completed searches are saved automatically, and `list_recent_searches` is a free tool. Have the agent look there before running the same domain again. A search that fails on SimilarIQ's side is refunded automatically.

The reference page reviewed for this write-up shows `headers` as the way to send credentials and does not document a built-in OAuth flow for these parameter classes. Use the API key header. One key works across the MCP server, the REST API, the SDKs and the CLI.

## The REST alternative

If your team needs one capability, a single function tool is easier to audit than ten MCP tools. Write a Python function that takes a domain, sends `POST https://similariq.ai/api/v1/search` with the body `{"domain":"stripe.com","limit":100}` and the header `X-API-Key: sk-live-...`, and returns the parsed list. Register it using the function-tool mechanism your AutoGen version documents.

The Python SDK shortens the body of that function. Install it with `pip install similariq`; it uses only the standard library and provides `search`, `results`, `history`, `balance` and the bulk methods. Signatures are on the [SDK page](https://similariq.ai/sdk). Give the tool a description that states the cost, one credit, and the wait, 30 to 60 seconds, so the model treats it as an expensive call.

## Example prompts for the team

These requests map onto SimilarIQ's MCP tools by name. Use them as the task you give the team or as instructions to a single agent.

- Report the remaining search credits before starting. `get_search_balance`, free.
- Find look-alikes for shopify.com and return Direct and Indirect results above a match score of 70. `find_similar_companies`, one credit.
- If this domain was searched before, reuse that result. `list_recent_searches`, then `get_search_results`.
- Submit this list of 60 domains as one job and report status until it completes. `start_bulk_search`, then `get_bulk_job`.
- Save the strongest five matches to the watchlist. `save_company`.
- Show what is already on the watchlist. `list_saved_companies`.
- Produce a read-only link for the reviewer. `create_share_link`.
- Summarise every company found so far across all searches. `list_my_companies`.

## Controlling spend in agent conversations

Conversational teams can loop. One agent proposes a search, another asks for a re-run with a different limit, and a third repeats the request after a summary drops the result. Each `find_similar_companies` call is one credit, $0.25, and `limit` does not change the price, so re-running to get a shorter list is pure waste. Ask for the full 100 once and filter in the conversation.

Structure helps more than instructions. Give the two paid tools, `find_similar_companies` and `start_bulk_search`, to one agent. Filter the list from `mcp_server_tools` for the others so they hold only the eight free tools. Set a firm termination condition on the team so a stalled conversation ends.

Budget with real numbers: 20 searches cost $5.00, 200 cost $50, and a bulk job of 500 domains costs $125. In SimilarIQ, the balance is a natural stop when auto-refill is off, and the monthly cap is a hard ceiling when it is on. See [spend controls](https://similariq.ai/features/spend-controls).

## Two team designs

**Researcher and critic.** The researcher holds the SimilarIQ tools. Given a target company, it checks history, runs one search and posts the Direct and Indirect results. The critic has no tools. It questions low-confidence rows and asks the researcher to justify any company it does not recognise. The conversation ends with an agreed shortlist and a share link. Total spend is one credit. The [competitor analysis use case](https://similariq.ai/use-cases/competitor-analysis) describes what a finished analysis should contain.

**Batch mapper.** A planner agent receives 40 portfolio company domains and asks the researcher to submit them as one bulk job. The researcher polls `get_bulk_job` until it finishes, then reads each result. An analyst agent counts overlap between lists to find companies that compete with more than one portfolio company. Forty domains cost $10.00. SimilarIQ returns company names, domains and scores only, so funding or headcount columns must be joined from your own data.

## Troubleshooting and security

A connection error at start-up usually means a wrong URL or a missing header; the URL must be exactly `https://similariq.ai/mcp`. A 401 means the key is absent or revoked. A 402 means the balance is empty. A 429 means the rate limiter is smoothing a burst, so space the calls out. A 502 means the search failed and the credit was returned. A failure at around 30 seconds points to the default `timeout`.

Use a separate key per deployment so one can be revoked alone. Read it from the environment; do not place it in system messages, which every agent in the conversation and the model provider can see. Results contain company names taken from the open web, so instruct agents to treat tool output as data and keep any code-executing agent away from raw tool text.

## Frequently asked questions

### Is AutoGen still maintained?

The AutoGen README states the project is in maintenance mode, limited to bug fixes, security patches and documentation, and directs new users to Microsoft Agent Framework. Existing AutoGen deployments can still use the MCP module described here.

### Does SimilarIQ have an official AutoGen extension?

No. There is no SimilarIQ package for AutoGen. You load the hosted SimilarIQ MCP server through AutoGen's own `autogen_ext.tools.mcp` module, or wrap the REST API as a function tool.

### Which AutoGen class connects to a remote MCP server?

`StreamableHttpServerParams` describes a streamable HTTP server by `url` and optional `headers`. Pass it to `mcp_server_tools` for a list of tool adapters, or to `McpWorkbench` for a managed session.

### What timeout should I set?

AutoGen's reference documents a default `timeout` of 30.0 on `StreamableHttpServerParams`. A SimilarIQ search takes roughly 30 to 60 seconds, so set it to 120 or more.

### How do I authenticate?

Put your `sk-live-` key in the `headers` argument as `X-API-Key`. The same key works for direct REST calls and the Python SDK.

### What does a team run cost?

Only searches cost money: $0.25 each for up to 100 look-alikes, and one credit per domain in a bulk job. Balance checks, history, past results, saved companies and share links are free.
