How to Add Free Web Search to Continue (VS Code/JetBrains) with MCP
Continue is the open-source AI coding assistant for VS Code and JetBrains IDEs. Its Agent mode can call tools, and it gets new tools through the Model Context Protocol (MCP). What it can't do on its own is look things up on the live web: a new library release, a changelog, an error message someone answered last week. This guide adds Continue web search with one YAML block and the AgentSearch MCP server.
Search works right away with no API key, no signup and no wallet. You get 25 free searches per IP in total, then pay per call. The 25 is a lifetime allowance and it never resets. When the agent needs a whole page, it gets clean markdown back, with a small free daily trial of extract (5 a day per IP) and pay-per-call pricing after that.
You'll set up:
- A workspace MCP block in
.continue/mcpServers/(one project), or - An
mcpServersentry in your global~/.continue/config.yaml(every project). - An optional paid setup with a hard budget, using Continue's
${{ secrets.* }}syntax.
What we actually ran (November 27, 2026): @agentsearchhq/agentsearch-mcp 1.8.7 on Node 24, Continue's own config parser @continuedev/config-yaml 1.42.0, and the Continue CLI (@continuedev/cli 1.5.47, the cn command). Both YAML files below passed Continue's parser and schema check. The CLI loaded the config.yaml version and listed all eight AgentSearch tools. We also connected to the server the way Continue does (stdio, minimal environment) and made one real free search and one free-trial extract. We did not drive the VS Code or JetBrains UI, and we did not run a model; that needs your own model key. The latest Continue extension on Open VSX at the time was 2.1.0.
What the agent gets (and what it costs)
The AgentSearch MCP server exposes eight tools. For coding research, three matter:
| Tool | What it does | Cost |
|---|---|---|
agentsearch_web_search |
Live web search, up to 5 results with title, URL and snippet | 25 free searches per IP in total (never resets), then $0.003 per call over x402 |
agentsearch_extract |
Any public URL as clean markdown | Free trial: 5 a day per IP, then $0.002 per call |
agentsearch_search_and_read |
Search plus the page text of the top hits, in one call | 10 free calls per IP in total (never resets), then $0.005 per call |
There's no account and no API key at any tier, and no minimum spend. Paid calls use x402: the API answers with a 402 and a price, the MCP server signs a small USDC payment on Base, and you're only charged when a usable answer comes back. The other tools cover news, JavaScript-heavy pages (Web Render), screenshots and a free service review board. More on the Search and Extract pages.
Before you start
- Continue installed in VS Code or a JetBrains IDE (IntelliJ IDEA, PyCharm, WebStorm and the rest).
- Node.js 20 or newer, because the server runs with
npx. - A chat model that supports tool calling. Continue's docs are clear that MCP tools only work in Agent mode, not in plain Chat.
Option 1: One project (.continue/mcpServers/)
Continue's docs describe a folder for workspace MCP servers. Create .continue/mcpServers/agentsearch.yaml at the top level of your project:
name: AgentSearch
version: 0.0.1
schema: v1
mcpServers:
- name: AgentSearch
type: stdio
command: npx
args:
- "-y"
- "@agentsearchhq/agentsearch-mcp"
The folder name is plural (mcpServers), and a standalone block file needs the name, version and schema lines on top. Without them it isn't a valid block. type: stdio is optional for a local command, but it makes the intent clear.
Coming from Claude Desktop, Cursor or Cline? Continue's docs say you can drop the same JSON MCP config file into .continue/mcpServers/ (for example .continue/mcpServers/mcp.json) and it gets picked up.
Option 2: Every project (~/.continue/config.yaml)
Your user-level config lives at ~/.continue/config.yaml on macOS and Linux, and %USERPROFILE%\.continue\config.yaml on Windows. To open it, click the configs dropdown above the chat input and pick the cog next to Local Config. Add an mcpServers list (or one more entry to it):
name: Local Config
version: 1.0.0
schema: v1
models:
# ... your models ...
mcpServers:
- name: AgentSearch
command: npx
args:
- "-y"
- "@agentsearchhq/agentsearch-mcp"
connectionTimeout: 60000
Continue reloads the config when you save it from the IDE. connectionTimeout is in milliseconds. Continue's source sets a default of 20 seconds, and the first npx run downloads the package, so a minute gives it room.
This is the version we loaded in the Continue CLI. With a placeholder model and this mcpServers entry, cn logged these tools as ready next to its built-in ones:
agentsearch_web_search, agentsearch_extract, agentsearch_search_and_read,
agentsearch_news_search, agentsearch_render, agentsearch_screenshot,
agentsearch_review_lookup, agentsearch_review_submit
Use it in Agent mode
Open the Continue sidebar (Cmd/Ctrl+L in VS Code, Cmd/Ctrl+J in JetBrains), switch the mode selector to Agent, and ask something that needs the live web:
Search the web for the latest release notes of the library we use for HTTP retries,
read the changelog page, and tell me if anything breaks our usage. Cite the URLs.
The model sees each tool's own description and arguments: query, max_results, freshness, include_domains and more for search; url and max_chars for extract. A good pattern is to search first and then read only the page you need.
Here's what one real search through the server returned when we asked for Continue.dev MCP servers config.yaml with max_results: 3. All three hits were Continue's own documentation pages (MCP servers, the MCP deep dive, and the Continue docs MCP server), each with title, url, content (the snippet), domain and published_date. Then agentsearch_extract fetched the top URL on the free extract trial.
Going past the free tier: pay per call with x402
When the 25 free searches are used up, add a wallet. Use a new, dedicated wallet holding a few dollars of USDC on Base, never your main one. The MCP server reads these environment variables:
| Variable | What it does |
|---|---|
AGENTSEARCH_WALLET_PRIVATE_KEY |
Key of the dedicated wallet. Turns on paid extract and the other paid tools. |
AGENTSEARCH_MODE=paid |
Also makes search paid ($0.003 per call). A wallet key alone keeps search on the free tier. |
AGENTSEARCH_MAX_TOTAL_ATOMIC |
Spend cap per server session in USDC atomic units (default 1000000, which is $1.00). |
AGENTSEARCH_MAX_PER_CALL_ATOMIC |
Optional lower cap per call. |
Don't paste the key into config.yaml. Reference it as a Continue secret:
mcpServers:
- name: AgentSearch
command: npx
args:
- "-y"
- "@agentsearchhq/agentsearch-mcp"
connectionTimeout: 60000
env:
AGENTSEARCH_WALLET_PRIVATE_KEY: ${{ secrets.AGENTSEARCH_WALLET_PRIVATE_KEY }}
AGENTSEARCH_MODE: paid
AGENTSEARCH_MAX_TOTAL_ATOMIC: "200000" # $0.20 hard cap per session
Then put the key in ~/.continue/.env (or .continue/.env in the project, and add it to .gitignore):
AGENTSEARCH_WALLET_PRIVATE_KEY=0xYOUR_DEDICATED_WALLET_KEY
Restart the IDE after you change a secret. Continue's FAQ explains why the .env file matters: the IDE extensions can't read the variables you export in your shell. Continue's source also starts stdio servers with only a few variables (HOME, USER and a couple of others, plus your PATH) merged with the env you give it. So the wallet variables have to be in that env block.
Live prices on November 27, 2026: search $0.003, news $0.003, extract $0.002, search-and-read $0.005, all paid in USDC over x402 on Base to AgentSearch's own API at api.agentsearchhq.com. No signup, no API key, no minimums. Calls are only charged when a usable answer comes back. We checked the variable names against the package README and this YAML against Continue's parser. We didn't run a paid call for this post.
Gotchas we hit
The CLI with --config ignored the workspace folder. When we ran cn --config ./config.yaml with no mcpServers in that file, the AgentSearch block in the project's .continue/mcpServers/ was not loaded; only the built-in tools showed up. With the entry in config.yaml, all eight tools loaded. The workspace folder is documented for the IDE extensions. If you use the Continue CLI, put the server in config.yaml.
Troubleshooting
No AgentSearch tools in the chat. Make sure you're in Agent mode and that your model supports tool calling. In a block file, check the name/version/schema lines and the plural folder name .continue/mcpServers.
npx: not found or the server fails to start. Install Node.js 20+. On macOS and Linux, Continue reads PATH from your login shell, so npx has to be on that PATH. Or install the package globally (npm i -g @agentsearchhq/agentsearch-mcp) and use command: agentsearch-mcp with no args.
Times out on the first run. npx downloads the package the first time. Raise connectionTimeout (milliseconds) or install it globally.
HTTP 429 from search or extract. You've used the free allowance: the 25 lifetime searches for your IP, the 10 lifetime search-and-read calls, or the daily extract trial (5). Add a wallet as shown above to keep going.
Wallet set but search still free. That's expected. Search only switches to paid with AGENTSEARCH_MODE=paid. Also check the secret resolves: the key belongs in a .env file Continue reads, not only in your shell.
FAQ
Does Continue web search need an API key?
Not with this setup. The AgentSearch MCP server gives you 25 free searches per IP in total with no key, account or wallet, then you pay per call over x402. You still need whatever key your chat model uses.
Does this work the same in JetBrains as in VS Code?
Yes. Both extensions read the same ~/.continue/config.yaml and the same .continue/mcpServers/ folder, so one YAML block covers both. Only the sidebar shortcut differs (Cmd/Ctrl+L in VS Code, Cmd/Ctrl+J in JetBrains).
Related guides
- How to add free web search to VS Code Copilot agent mode
- How to add free web search to Cline
- How to add free web search to Cursor
Get started
mcpServers:
- name: AgentSearch
command: npx
args: ["-y", "@agentsearchhq/agentsearch-mcp"]
Add that to ~/.continue/config.yaml (or a .continue/mcpServers/ block), switch Continue to Agent mode, and ask it to search. You get 25 free searches per IP in total with no key, then $0.003 per paid search.
More from the blog
- How to Add Free Web Search to VS Code Copilot Agent Mode with MCP (No API Key)
- How to Add Free Web Search to Cline with MCP (No API Key)
- How to Add Free Web Search to Cursor with MCP (No API Key)
Service pages: Web Search API · Web Extract API · Search + Read API · Web Render API