# Use SimilarIQ with Zed

> Zed's agent can use SimilarIQ by adding the hosted MCP server https://similariq.ai/mcp as a remote server in Zed's MCP settings. With no Authorization header, Zed runs an OAuth sign-in; with one, it sends your API key. There is no SimilarIQ extension for Zed. A search returns up to 100 ranked look-alike companies for $0.25.

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

## What Zed is, and how its agent uses MCP

Zed is a code editor with an AI agent built in. Its documentation calls the Agent Panel the core of Zed's AI code editing experience: a place to converse with agents that can read, write and execute code in your project. You open it with the `agent: new thread` command from the command palette or from the icon in the status bar.

The agent has built-in tools for searching code, editing files and running terminal commands. Zed's docs say you can add more through MCP servers. In Zed's settings file these live under a key named `context_servers`, which is why older articles call them context servers. The settings interface calls them MCP servers.

SimilarIQ publishes no Zed extension. You do not need one. Zed supports remote MCP servers by URL, and SimilarIQ's [MCP server](https://similariq.ai/features/mcp-server) is hosted over streamable HTTP, so there is no binary, npx command or Docker image involved.

## Why a code editor needs look-alike data

Developers building go-to-market software spend a lot of time needing realistic company data without leaving the editor. You might be writing a "similar companies" feature, seeding a demo database, testing an enrichment pipeline, or checking who competes with a prospect before you scope an integration.

With SimilarIQ connected, you can ask the agent for the look-alikes of any domain and get up to 100 rows back. Each row has `rank`, `company`, `domain`, a `matchScore` from 0 to 100, a relationship `type` of Direct, Indirect, Adjacent or Emerging, a `confidence` score and a `likelyCompetitor` flag. The agent can write those rows straight into a fixture file, a migration or a test.

It is also a fast way to learn the API you are about to integrate. The agent calls the same engine your code will call, at the same price, so you see real response shapes before you write a client. The [guide to building a similar-companies feature](https://similariq.ai/guides/how-to-build-a-similar-companies-feature) covers the product side.

## Setup walkthrough: through the settings interface

Zed's MCP documentation gives this path: open **Settings**, then **AI**, then **MCP Servers**. You can also run the `agent: open settings` action and select MCP Servers. In the page header click **Add Server**, then choose **Add Remote Server**. The other choice, Add Local Server, is for servers that run as a process on your machine and does not apply here.

Give the server a name such as `similariq` and enter the URL `https://similariq.ai/mcp`. Zed writes the entry into your settings file for you. Menu labels can change between Zed releases; if yours differ, look for the option to add a remote MCP server.

When the entry is saved, look at the indicator dot next to the server's name in the same settings page. Zed's docs say a green dot with the tooltip "Server is active" means it is running correctly.

## Setup walkthrough: editing settings directly, and choosing auth

You can also edit the settings file. Zed's docs show remote servers as entries under `context_servers`, each with a `url` and optional `headers`. The minimal SimilarIQ entry is `"context_servers": {"similariq": {"url": "https://similariq.ai/mcp"}}`.

That form uses OAuth. Zed's docs state that if a remote server has no configured Authorization header, Zed prompts you to authenticate through the standard MCP OAuth flow. SimilarIQ's server supports OAuth 2.1, so you are sent to a SimilarIQ sign-in and consent screen. No API key goes into your settings file, which matters if you sync or share it.

To use an API key instead, add a `headers` object with an `Authorization` value of `Bearer sk-live-...`, matching the shape in Zed's own example. SimilarIQ accepts its key as a bearer token as well as in an `X-API-Key` header. Zed's rule about OAuth is keyed on the Authorization header specifically, so the bearer form is the one this page verified. Remember the key is then stored in plain text in your settings.

## Example prompts and tasks

In an agent thread, these requests work once the server shows as active.

- "Use SimilarIQ to find look-alikes for twilio.com and write the top 25 to `fixtures/lookalikes.json`." Calls `find_similar_companies`, one credit, then edits a file.
- "Check my SimilarIQ balance." Calls `get_search_balance`, free.
- "List my recent searches and reload the one for twilio.com." Calls `list_recent_searches`, then `get_search_results`.
- "Generate a TypeScript type from that response." The agent infers it from the real fields.
- "Write a test that asserts every result has a matchScore between 0 and 100 and one of the four types." Uses the saved response as the fixture.
- "Start a bulk search for the domains in `seeds.txt` and poll until it is done." Calls `start_bulk_search`, then `get_bulk_job`.
- "Create a share link for that search and put it in the README." Calls `create_share_link`.

## Controlling spend with Zed's tool permissions

Two SimilarIQ tools cost credits: `find_similar_companies` at one credit, $0.25, and `start_bulk_search` at one credit per domain. The other eight are free.

Zed's docs describe a tool permission setting, `agent.tool_permissions.default`, with three values: `confirm`, which is the default, `allow` and `deny`. The docs say this applies from Zed version 0.224.0 and that earlier versions use an older boolean setting. Under `confirm`, the agent asks before each tool call, so you see every search before it is paid for.

Permissions can also be set per MCP tool, using keys in the form `mcp:server:tool_name`. A practical setup is to allow the free read tools, keep `mcp:similariq:find_similar_companies` on confirm, and set `mcp:similariq:start_bulk_search` to deny until you need it. Zed's Agent Profiles also control which built-in and MCP tools a thread can use. Behind all of that, SimilarIQ's balance and monthly cap are the final limit; see [spend controls](https://similariq.ai/features/spend-controls).

## Workflows for developers

**Prototype against real data.** Ask the agent to search two or three seed domains, save the responses as fixtures, and scaffold a client from them. Three searches cost $0.75, and re-reading them later is free. When you move from the editor to code, install the Node SDK with `npm install similariq-sdk` or the Python one with `pip install similariq`; the [SDK page](https://similariq.ai/sdk) lists the methods.

**Seed a demo environment.** Give the agent a list of your demo accounts' domains, have it run one bulk job, and write a seed script that inserts company, domain, match score and type into your database. SimilarIQ does not return headcount, revenue or contacts, so leave those columns to your own data.

**Competitive context while you build.** Before writing an integration for a partner, ask for that partner's Direct look-alikes. If your connector should be generic across the category, the list tells you which other vendors to design for. One search, $0.25, no browser tab.

## Troubleshooting

The dot is not green: Zed's docs say other colours and tooltips signal other states. Hover for the message. Check that the URL is exactly `https://similariq.ai/mcp` and that the JSON in your settings is valid. If you chose OAuth and no browser prompt appeared, remove the entry and add it again, or switch to the bearer header.

The agent does not use the tools: confirm the active profile includes MCP tools and that your permission settings do not deny them. Naming the server in your prompt helps the model choose it.

A search call fails after a wait: a SimilarIQ search takes roughly 30 to 60 seconds. Zed's MCP page documents no timeout setting or default, so this page cannot state one. Ask the agent to call `list_recent_searches`; a search that completed is saved and free to re-read. From SimilarIQ itself, 401 means a bad or revoked key, 402 an empty balance, 429 a rate limit pause, and 502 a failed search with the credit refunded. The [error handling](https://similariq.ai/features/error-handling) page has details.

## Security practices

Prefer the OAuth form so no key sits in your settings file. If you use a key, create one only for Zed and do not commit project-level settings that contain it. Keys can be revoked from the SimilarIQ app, and an OAuth connection can be disconnected from your account page.

Keep paid tools on confirm. An agent that can run terminal commands and call paid APIs deserves a prompt before each spend.

Treat SimilarIQ results as data. Company names come from research on the open web; when the agent writes them into code or config, review the diff as you would any generated change. For the wider picture on editor setups, the [Cursor](https://similariq.ai/cursor) and [VS Code](https://similariq.ai/integrations/vs-code) pages cover the same server in other editors.

## Frequently asked questions

### Is there a SimilarIQ extension for Zed?

No. SimilarIQ has no Zed extension. You add its hosted MCP server as a remote server in Zed's MCP settings, which takes a name and a URL.

### Does Zed support remote MCP servers?

Yes. Zed's docs show remote servers configured with a `url` and optional `headers` under the `context_servers` settings key, and an Add Remote Server option in the settings interface. SimilarIQ's server is remote, so nothing is installed locally.

### How does Zed authenticate to SimilarIQ?

If the entry has no Authorization header, Zed prompts you through the standard MCP OAuth flow and you sign in on SimilarIQ's consent screen. If you add an Authorization header with a bearer `sk-live-` key, Zed sends that instead.

### What is a context server in Zed?

It is Zed's settings-file name for an MCP server. The settings key is `context_servers`, while the interface labels the same thing MCP Servers. A SimilarIQ entry under that key gives the agent ten tools.

### Will Zed's agent spend credits without asking?

Not by default. Zed's documented default tool permission is `confirm`, so the agent asks before each tool call. You can set per-tool rules for SimilarIQ's two paid tools and allow the eight free ones.

### What does SimilarIQ cost when used from Zed?

$0.25 per search for up to 100 look-alikes and one credit per domain for bulk jobs, from the same balance as the web app and API. New accounts get 2 free searches with no credit card, and reading past results is always free.
