# Use SimilarIQ with VS Code

> VS Code can use SimilarIQ as an HTTP MCP server in Copilot chat. Open Chat Customizations, select MCP Servers, add a server, choose HTTP and enter https://similariq.ai/mcp. Copilot then has ten tools for look-alike company research. A search costs $0.25; reading history, saved companies and the balance is free.

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

## What VS Code's MCP support is

Visual Studio Code is Microsoft's editor, and its chat runs GitHub Copilot as an agent that can call tools. The VS Code documentation describes adding Model Context Protocol servers so that agent can reach outside services. Servers can be local commands over stdio or remote endpoints over HTTP, and the docs recommend HTTP when a server supports it.

SimilarIQ runs a hosted MCP server at `https://similariq.ai/mcp` using streamable HTTP. It is stateless, and there is no package, container or local process involved. In VS Code terms it is an HTTP server with a URL and, optionally, one header.

One thing to know before you start: VS Code's docs currently describe two configuration formats. The native Copilot format uses a top-level `mcpServers` object. The older editor-managed format uses `servers` in `.vscode/mcp.json`, and the docs mark it as deprecated and scheduled for removal. This page gives both, because many projects still carry the older file.

## Why connect VS Code to SimilarIQ

SimilarIQ takes a company domain and returns up to 100 ranked look-alike companies. Each has a `matchScore`, a relationship `type` of Direct, Indirect, Adjacent or Emerging, a `confidence` score and a `likelyCompetitor` flag. Inside an editor, that is useful when you are building something that consumes the data: Copilot can fetch a real response and write code against the actual fields.

It is also useful for people who work in VS Code but are not writing software: analysts keeping research in Markdown, RevOps staff maintaining CSVs, founders drafting a market section. Copilot can run a search and write the table straight into the open file. The [MCP server feature page](https://similariq.ai/features/mcp-server) lists what each tool does.

Results contain company names, domains and scores only. There are no contacts, revenue or headcount fields, so Copilot cannot fill those columns from SimilarIQ.

## Requirements and policy

The VS Code pages we read list two prerequisites: enable AI features and open a local project folder. They then say to select Copilot as the session target in chat. Those pages do not state a Copilot plan requirement for MCP, and we will not guess one; check GitHub's Copilot documentation for your plan.

Organizations can restrict MCP. The docs say managed allowlists apply and that local configuration cannot override organizational restrictions. If the server will not start on a work machine, a policy is a likely reason. You also need a SimilarIQ account; [registration](https://similariq.ai/register) includes 2 free searches.

## Setup walkthrough

The steps below follow VS Code's guided flow for adding a server by URL. Labels change between releases, so if yours differ, look for the MCP Servers section of chat customizations or run **MCP: Add Server** from the Command Palette. On first use, VS Code shows an authenticate action for servers that need sign-in; that opens the SimilarIQ sign-in and consent screen for OAuth 2.1.

To write the native file by hand, the docs give the user-level path as `~/.copilot/mcp-config.json` and a workspace file `.mcp.json` at the workspace root. The entry is `{"mcpServers":{"similariq":{"type":"http","url":"https://similariq.ai/mcp","tools":["*"]}}}`. The `tools` list controls which tools are available; `["*"]` enables all of them. For key auth add `"headers":{"X-API-Key":"${SIMILARIQ_API_KEY}"}`. The docs say to use the braced form, because a bare dollar-sign variable is treated as literal text.

For the older editor-managed format, `.vscode/mcp.json` takes `{"servers":{"similariq":{"type":"http","url":"https://similariq.ai/mcp"}}}`. That format supports an `inputs` array with a `promptString` entry, so a header can be written as `"X-API-Key": "${input:similariq-key}"` and VS Code prompts for the value once and stores it securely.

- Select **Copilot** as the session target, then run **Chat: Open Customizations** from the Command Palette.
- Select **MCP Servers**, then **Add Server** in the User group.
- Choose the **HTTP** option and enter `https://similariq.ai/mcp`.
- Enter a server ID such as `similariq`.
- Select **Global**, then **Copilot Global** to make it available across your workspaces.
- Review any trust request, then authenticate when prompted and approve access on the SimilarIQ consent screen.
- Ask Copilot a look-alike question, expand the tool call in the conversation, and confirm it used the SimilarIQ server.

## Example prompts to try

Copilot gets ten tools. `find_similar_companies` costs 1 credit and `start_bulk_search` costs 1 credit per domain. 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`. VS Code's docs note that you do not have to name the server, though naming it helps while testing. Searches take about 30 to 60 seconds.

- "Use SimilarIQ to find look-alikes of zendesk.com and insert a Markdown table of the top 20 into this file."
- "What is my SimilarIQ balance?"
- "Search intercom.com and generate a TypeScript interface that matches the fields in the response."
- "Open my last SimilarIQ search and write the Direct results to competitors.csv in this workspace."
- "Start a bulk search on the domains in seeds.txt and check the job status."
- "Compare the results for zendesk.com with accounts.csv and list the domains that are missing from our file."
- "Save the three highest-scoring Emerging companies to my SimilarIQ watchlist."
- "Create a share link for that search and paste it under the Sources heading."

## Controlling spend

The price is $0.0025 per look-alike, 100 per search, $0.25 per search, on a pay-as-you-go balance with a $10 minimum deposit and no expiry. Copilot's tool calls spend from the same balance as the web app and API. Twenty searches in an afternoon cost $5.00. A bulk run over 200 domains costs $50.

Limit the tool list on the VS Code side. In the native config, replace `["*"]` with the tool names you want; leaving out `start_bulk_search` prevents multi-credit calls from chat. The docs are clear that the tool list does not bypass tool approvals, so you still see a prompt. Approve only the calls you understand, as the VS Code docs advise.

On the SimilarIQ side, set a monthly cap, which is a hard ceiling on card charges, and use the free `get_search_balance` tool as a pre-flight check. Past results are free to re-read, so ask Copilot to reuse an existing search before starting a new one. More in [spend controls](https://similariq.ai/features/spend-controls).

## End-to-end workflows

**Competitor section in a repo doc.** Open your strategy or README file, ask Copilot to search your company's domain, and have it write a table of Direct and Emerging results with scores. Cost: $0.25. Review the low-confidence rows yourself before committing.

**Fixture-first integration.** Ask Copilot to run one search, save the JSON under a fixtures folder, generate types from it, and scaffold a client for `POST https://similariq.ai/api/v1/search`. The [Node.js guide](https://similariq.ai/find-competitors-with-node-js) shows the request shape. Cost: one search.

**CSV gap analysis.** With a CRM export open, ask Copilot to bulk search your top ten customers, merge the results, and list look-alike domains that are not in the export. Cost: ten credits, $2.50. Add contacts and firmographics from your own sources afterward.

## Troubleshooting

Start with the server's log. The VS Code docs say to open the server's menu in the MCP Servers list, or run **MCP: List Servers**, and choose **Show Output**. Workspace-defined servers inherit Workspace Trust and will not start in Restricted mode. If Copilot answers without a tool call, the connection is not confirmed; check that the server is enabled for the Copilot session and that the tool list includes what you need. If sign-in lapsed, use the authenticate action again.

SimilarIQ errors are plain HTTP statuses. 401: bad or missing key, often an unset environment variable behind the header. 402: out of credits. 429: the rate limiter is smoothing a burst, so wait or use bulk. 502: the search failed, the credit was refunded and you can retry safely. When you share logs, redact tokens and headers first, as the VS Code docs recommend.

## Security practices

Prefer OAuth for personal use. If you use a key, keep it out of shared files: VS Code's docs say not to commit tokens or populated authentication headers, and to reference an environment variable or an input prompt instead. Put team-shared server definitions in the workspace file without credentials and let each person authenticate.

Create one SimilarIQ key per person or environment so a single key can be revoked alone. Review trust prompts before accepting them, and keep tool approvals on for anything that spends credits. `create_share_link` produces a public read-only URL, so treat it as publishing. SimilarIQ has no published security certifications; do your own review if policy requires.

## Frequently asked questions

### How do I add the SimilarIQ MCP server to VS Code?

Run **Chat: Open Customizations**, select MCP Servers, add a server, choose HTTP and enter `https://similariq.ai/mcp`. Or add an entry under `mcpServers` in `~/.copilot/mcp-config.json` with `"type": "http"` and the URL.

### Which file does VS Code read, mcp.json or mcp-config.json?

Both exist. The native Copilot format uses `mcpServers` in `~/.copilot/mcp-config.json` or a workspace `.mcp.json`. The older editor-managed format uses `servers` in `.vscode/mcp.json`, which the VS Code docs mark as deprecated.

### Do I need a paid Copilot plan for MCP in VS Code?

The VS Code documentation we read lists enabling AI features and opening a project folder as prerequisites and does not state a plan requirement. GitHub sets Copilot plan rules, and organizations can restrict MCP by policy, so check both.

### Can I use an API key instead of signing in?

Yes. Add a `headers` object with `X-API-Key` and reference the key from an environment variable in braced form, or from an input prompt in the older format. Do not commit a literal key.

### What does SimilarIQ cost from VS Code?

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

### Does this also cover Cursor or Claude Code?

Those clients have their own setup. See the [Cursor page](https://similariq.ai/cursor) and the [Claude Code page](https://similariq.ai/claude-code). The server URL is the same everywhere; only the config location and shape differ.
