Start free →
Integrations

Use SimilarIQ with Gemini

Connect SimilarIQ to Gemini: setup, example prompts and tasks, spend controls and troubleshooting for look-alike company search.

Updated 2026-11-25 · 2 free searches, no card · $0.0025 per look-alike

Quick answer

Gemini CLI connects to SimilarIQ as a remote MCP server: run gemini mcp add --transport http similariq https://similariq.ai/mcp, then authenticate with /mcp auth similariq. We could not verify a self-serve way to add a custom MCP server in the consumer Gemini app, so for that surface use the SimilarIQ web app or REST API. Searches cost $0.25 each.

What Gemini is, and which part supports MCP

Gemini is Google's assistant, and the name covers several products. The one with documented, self-serve support for custom Model Context Protocol servers is Gemini CLI, Google's open-source terminal agent. Its documentation describes an mcpServers block in settings.json, a gemini mcp add command, and OAuth support for remote servers over SSE or HTTP transports.

The other surfaces are different. When we searched Google's documentation, we did not find a way for an ordinary user to add their own remote MCP server in the consumer Gemini app. Google's developer site describes a Connected Apps Platform for bringing services into the Gemini app, which it presents as a preview that developers apply to. Google Cloud's documentation describes custom MCP server data stores for Gemini Enterprise as an administrator-side setup that an organization policy blocks by default. Neither is a paste-a-URL flow.

One more note from the Gemini CLI documentation itself: it carries a notice that for unpaid tier and Google One users, Gemini CLI was replaced by Antigravity CLI. We did not verify Antigravity CLI's MCP configuration, so this page covers Gemini CLI as documented. If you are on the replacement tool, check its own docs for where a remote MCP server goes.

Why connect Gemini CLI to SimilarIQ

A terminal agent is useful for research that ends in a file. SimilarIQ takes one company domain and returns up to 100 ranked look-alike companies, each with a matchScore, a relationship type of Direct, Indirect, Adjacent or Emerging, a confidence score and a likelyCompetitor flag. Gemini CLI can call that as a tool, then write the results to CSV, join them to a file in your repo, or draft a report.

Every search is a fresh research pass that cross-validates results across multiple independent intelligence sources. The result set is intentionally small in shape: names, domains and scores. There are no contacts, firmographics or funding data, so the agent's job is usually to filter and join. The AI agent research use case describes that pattern.

Setup walkthrough for Gemini CLI

The quickest route is the command the Gemini CLI docs give for HTTP servers. The docs list the flags: -t or --transport takes stdio, sse or http, -s or --scope takes user or project with project as the default, and -H or --header sets HTTP headers. Create a SimilarIQ account first; registration includes 2 free searches.

If you prefer to edit the file, Gemini CLI reads ~/.gemini/settings.json for user scope and .gemini/settings.json for a project. The docs are specific about one key: streamable HTTP servers use httpUrl, while url is for SSE endpoints. A minimal entry is {"mcpServers":{"similariq":{"httpUrl":"https://similariq.ai/mcp"}}}. For key auth, add "headers":{"X-API-Key":"sk-live-..."} to the same object. Note that this differs from the generic type and url shape many other clients use.

Gemini CLI's docs say OAuth for remote servers supports automatic discovery and dynamic client registration, and that the flow needs a machine that can open a web browser; headless sessions are not supported for it. On a server or in CI, use the API key header in place of OAuth.

  • Add the server: gemini mcp add --transport http similariq https://similariq.ai/mcp. Add -s user to make it available in every project.
  • Start Gemini CLI and run /mcp auth similariq. Your browser opens the SimilarIQ sign-in and consent screen; approve it.
  • Run /mcp to confirm the server shows as connected and lists its tools.
  • For key-based auth, use gemini mcp add --transport http --header "X-API-Key: sk-live-..." similariq https://similariq.ai/mcp and skip the OAuth step.
  • Ask a question that needs look-alike data and approve the tool call when Gemini CLI asks for confirmation.

If you use the Gemini app or the Gemini API

Without a verified custom-connector path in the consumer Gemini app, the honest route is to run the search somewhere else and bring the output in. Run it in the SimilarIQ web app, export CSV or JSON, and upload or paste the file into Gemini for analysis. Exports and re-reading past searches are free, so this costs only the original $0.25 per search.

Developers building on Google's models can call the REST API from their own code and pass the JSON to the model. The request is POST https://similariq.ai/api/v1/search with a body such as {"domain":"stripe.com","limit":100} and an X-API-Key header. The REST API reference lists every endpoint, and there are Node and Python SDKs if you would rather not write the HTTP call.

Example prompts to try in Gemini CLI

With the server connected, Gemini CLI sees ten tools. find_similar_companies costs 1 credit and start_bulk_search costs 1 credit per domain. Eight are free: get_bulk_job, list_recent_searches, get_search_results, list_my_companies, save_company, list_saved_companies, create_share_link and get_search_balance. A fresh search takes roughly 30 to 60 seconds.

  • "Find companies similar to twilio.com with SimilarIQ and write them to lookalikes.csv with rank, company, domain, matchScore, type and confidence."
  • "Check my SimilarIQ balance and print it."
  • "Read accounts.csv, start a SimilarIQ bulk search on the domain column, and poll the job until it finishes."
  • "Take my last SimilarIQ search and keep only Direct rows with confidence of at least 70. Save the result as JSON."
  • "Compare the look-alikes of twilio.com with the domains in customers.csv and list the ones we do not have yet."
  • "Save the top ten Emerging companies from that search to my SimilarIQ watchlist."
  • "Create a share link for the twilio.com search and add it to NOTES.md."

Controlling spend

SimilarIQ is pay-as-you-go: $0.0025 per look-alike, 100 per search, $0.25 per search. MCP calls use the same balance as the app and API. An agent that runs 20 searches spends $5.00, and a bulk file of 500 domains costs $125. Agents loop, so put limits in place before you hand one a long list.

Gemini CLI gives you client-side controls. Its docs describe includeTools and excludeTools arrays per server, and say excludeTools takes precedence. Excluding start_bulk_search means the agent can only spend one credit at a time. The trust setting defaults to false, which keeps tool-call confirmations on; leave it that way for a server that can spend money.

On the SimilarIQ side, set a monthly cap as a hard ceiling on card charges, and have the agent call the free get_search_balance tool before and after a batch. The spend controls page explains the cap and auto-refill. You can also disconnect the client from your account page.

End-to-end workflows

Seed list to prospect file. Put your ten best customer domains in a text file. Ask Gemini CLI to start a bulk search, wait for the job, merge the results, drop domains already in your CRM export, and write a ranked CSV. Cost: ten credits, $2.50. The output is companies only; add contacts from your own data provider.

Competitor section for a planning doc. Ask Gemini CLI to search your own domain, keep the Direct and Emerging rows, and draft a competitor section in Markdown with the scores in a table. Cost: $0.25. Review low-confidence rows by hand before you circulate it.

Scripted checks without an agent. For a job that runs on a schedule, a plain script is more predictable than a prompt. The SDKs and CLI cover the same operations, for example similariq search stripe.com --limit 100 --csv.

Troubleshooting

Run /mcp first. Gemini CLI's docs list the states it reports: connected, connecting and disconnected, plus a disabled state for servers you have turned off. If the server is disconnected, check that you used httpUrl and not url in settings.json; the wrong key makes Gemini CLI treat the endpoint as SSE. If authentication has expired, run /mcp auth similariq again. The docs say tokens are stored in ~/.gemini/mcp-oauth-tokens.json.

For SimilarIQ errors: 401 means a bad or missing key in the header. 402 means the balance is out of credits. 429 means the rate limiter is smoothing a burst, so slow the loop or use bulk. 502 means the search failed, the credit was refunded and a retry is safe. Gemini CLI's default request timeout in its docs is ten minutes, well above the 30 to 60 seconds a search takes.

Security practices

Prefer OAuth on your own machine. If you must use a key, be careful where it lands: a project-scope .gemini/settings.json is easy to commit by accident. Put key-based config at user scope, or keep the key out of the repository entirely. Keys are shown once when created and can be revoked from the SimilarIQ app.

Keep trust set to false so each tool call is confirmed, and restrict tools with includeTools when an agent only needs to read. Remember that create_share_link produces a public read-only URL. SimilarIQ publishes no security certifications, so do your own review if your organization requires one.

Frequently asked questions

Can Gemini connect to the SimilarIQ MCP server?

Gemini CLI can. Its documentation supports remote MCP servers over HTTP, and SimilarIQ hosts one at https://similariq.ai/mcp. We could not verify a self-serve custom MCP option in the consumer Gemini app, so use exports or the REST API there.

What is the Gemini CLI command to add SimilarIQ?

gemini mcp add --transport http similariq https://similariq.ai/mcp. Add -s user for all projects. Then run /mcp auth similariq inside Gemini CLI to sign in, or pass --header "X-API-Key: sk-live-..." to use a key.

Why does my settings.json entry not connect?

Gemini CLI uses httpUrl for streamable HTTP servers and url for SSE. SimilarIQ is streamable HTTP, so the entry needs "httpUrl": "https://similariq.ai/mcp". The generic type and url shape used by other clients is not what Gemini CLI documents.

Does this work with Gemini Enterprise?

Google Cloud's documentation describes custom MCP server data stores for Gemini Enterprise, created by an administrator and blocked by default by an organization policy. We have not tested SimilarIQ in that setup. Ask your Google Cloud administrator, or use the MCP server from a client where setup is self-serve.

How much does it cost to use SimilarIQ from Gemini CLI?

$0.25 per search, 100 look-alikes at $0.0025 each, from the same balance as the app and API. Eight of the ten tools are free. New accounts get 2 free searches without a credit card.

Can I use SimilarIQ data with the Gemini API in my own app?

Yes, by calling SimilarIQ yourself. Send a POST to the search endpoint with your X-API-Key header, then pass the JSON to the model as context. SimilarIQ returns company, domain, scores and type only, so join any other data you need.

One website in. 100 look-alikes out.

2 free searches on signup, no card. Then $0.0025 per look-alike, with no subscription, no seats and no contract.