Skip to content
AgentSearch

How to Add Free Web Search to Windsurf with MCP (No API Key)

Windsurf is an AI code editor, and like other agentic editors it can use extra tools from MCP servers. An MCP search tool gives its agent plain search results and full pages on demand, and the same server works in your other MCP clients too.

One thing first: Windsurf is now called Devin Desktop. According to Cognition's Devin Desktop FAQ, the rename shipped on June 2, 2026 as a regular update. It is the same editor, and your Windsurf settings carry over. The agent changed, though. New conversations use Devin Local, and Cascade is now the legacy agent. Devin Local reads MCP servers from new file locations, and it still picks up the old Windsurf file. This guide covers both.

We use AgentSearch, which ships as the @agentsearchhq/agentsearch-mcp package on npm and also runs as a free hosted remote MCP server. You don't need an API key, an account, or a wallet:

Free tier: 25 free searches per IP, then pay per call. No key needed.

What we tested: on November 22, 2026 we used Devin CLI 3000.14 on Linux with a fresh home folder and no sign-in. Devin Local runs the same agent harness as Devin CLI and uses the same config format and file discovery, so its MCP files are the same. We ran devin mcp add, list and remove, checked what each command writes, and checked that a legacy Windsurf mcp_config.json is picked up. We also listed the tools of @agentsearchhq/agentsearch-mcp 1.8.7 (the current npm release) and ran live calls against the hosted server. We did not click through the Devin Desktop app itself, so the steps inside the app are quoted from Cognition's Devin Local customizations and Devin CLI MCP configuration docs.

Why add an MCP search tool?

  • Raw results. AgentSearch returns ranked results (title, URL, snippet, domain) as JSON, so the agent picks what to open.
  • Full pages. agentsearch_extract turns a URL into clean markdown, and agentsearch_render loads JavaScript-heavy pages in a headless browser first.
  • News and screenshots. Dated news results and page screenshots are separate tools.
  • One setup for every client. The same server works in Cursor, Claude Code, Cline, VS Code and other MCP clients.

Where Windsurf (Devin Desktop) keeps MCP servers

Devin Local reads the mcpServers object from these files:

Scope File Shared with your team?
User (all projects) ~/.config/devin/mcp_config.json (Windows: %APPDATA%\devin\mcp_config.json) No
Project .devin/mcp_config.json in the repo Yes, if you commit it
Local override .devin/mcp_config.local.json No (gitignored)
Legacy Windsurf file ~/.codeium/windsurf/mcp_config.json No

The last row matters if you set up MCP in Windsurf before the rename. Devin's config import reads that file by default (the windsurf option of read_config_from is on unless you turn it off). In our test, servers in it showed up next to the new ones, with the source shown as ~/.codeium/windsurf/mcp_config.json. For a new setup, use the user file.

Option A: Add the local MCP server

Open ~/.config/devin/mcp_config.json (create it if it doesn't exist) and add:

{
  "mcpServers": {
    "agentsearch": {
      "command": "npx",
      "args": ["-y", "@agentsearchhq/agentsearch-mcp"]
    }
  }
}

If the file already has servers, add the agentsearch entry inside the existing mcpServers object. The -y flag skips npx's install prompt, which a background process can't answer. The server runs on your machine as a local process over stdio.

If you also have Devin CLI, one command writes the same entry:

devin mcp add -s user agentsearch -- npx -y @agentsearchhq/agentsearch-mcp
✓ Added MCP server 'agentsearch' to user config

Everything after -- is the command to launch. -s user matters: without it, devin mcp add uses the local scope and writes .devin/mcp_config.local.json in the current folder. In our test the command saved "transport": "stdio" next to command and args. That's the same server; you don't need to add it by hand.

Option B: Use the hosted server (no Node.js)

AgentSearch runs a free hosted remote MCP server at https://relay.agentsearchhq.com/mcp. It uses the Streamable HTTP transport and needs no sign-in, so there are no headers and no OAuth step. In the user file:

{
  "mcpServers": {
    "agentsearch-hosted": {
      "url": "https://relay.agentsearchhq.com/mcp",
      "transport": "http"
    }
  }
}

Or with Devin CLI, which wrote exactly that block in our test:

devin mcp add -s user agentsearch-hosted https://relay.agentsearchhq.com/mcp

Devin's docs say a URL means Streamable HTTP by default, so "transport": "http" is optional.

Kept your old Windsurf file? Windsurf's own format used serverUrl for remote servers. This entry in ~/.codeium/windsurf/mcp_config.json was picked up in our test and listed with its URL:

{
  "mcpServers": {
    "agentsearch-hosted": {
      "serverUrl": "https://relay.agentsearchhq.com/mcp"
    }
  }
}

Pick one option. If you add both, the agent sees two copies of each tool.

Step 2: Check the connection

In Devin Desktop, the docs point to the Customize page: click Customize in the agent sidebar, then the MCPs tab. With This computer selected, it lists the servers your local agent loads for the open folders. You can turn a server on or off, open its config file, or refresh the list. The page also shows what the agent has loaded, so you can see whether agentsearch is there.

With Devin CLI, run:

devin mcp list

Our test printed:

Configured MCP servers

  • agentsearch
    Command: npx -y @agentsearchhq/agentsearch-mcp
    Source: ~/.config/devin/mcp_config.json

devin mcp list shows what is configured, not whether the server starts, so a typo in the package name only shows up when the agent tries to use it. If the server doesn't connect on the first run, the first npx run may still be downloading the package. Run npx -y @agentsearchhq/agentsearch-mcp once in a terminal (it prints a "listening on stdio" line; press Ctrl+C), then refresh.

The local server (Option A) gives the agent these tools:

  • agentsearch_web_search: web search that returns up to 5 results (title, URL and a snippet). 25 free calls per IP.
  • agentsearch_news_search, agentsearch_search_and_read and agentsearch_screenshot: news with publish dates, search plus the top pages as markdown in one call, and page screenshots. 10 free calls per IP each.
  • agentsearch_extract: reads a URL and returns clean markdown or text. Free trial of 5 calls a day per IP.
  • agentsearch_render: loads a JavaScript-heavy page in a headless browser first, then returns its content. Free trial of 3 calls a day per IP.
  • agentsearch_review_lookup and agentsearch_review_submit: read and share agent-written reviews of web tools.

The hosted server (Option B) has the first six tools with the same free limits. The search, news, search + read and screenshot allowances are totals per IP and don't reset. The extract and render trials reset daily.

Step 3: Try it

Start a new Devin Local conversation in your project and ask for something that needs current information:

Search the web for the latest stable release of Vite and tell me if our package.json is behind.
Use agentsearch to find the official migration guide for Express 5, then list the breaking changes that affect src/server.ts.
Find the changelog for the newest TypeScript release and extract the section on breaking changes.

By default, Devin Local asks for approval before it calls any MCP tool. On the approval card you can allow that one tool or every tool on the server, for the current session or permanently. If the agent doesn't pick the search tool, name it in the prompt ("use agentsearch to..."). Search results are snippets. When the agent needs the whole page, it can call agentsearch_extract, or agentsearch_render for pages built with JavaScript.

Useful mcp_config.json options

Each server entry takes a few optional keys. Two are useful here:

{
  "mcpServers": {
    "agentsearch": {
      "command": "npx",
      "args": ["-y", "@agentsearchhq/agentsearch-mcp"],
      "disabledTools": ["agentsearch_review_lookup", "agentsearch_review_submit"]
    }
  }
}
  • disabledTools hides tools on that server from the agent. The example keeps the search and page tools and hides the two review tools.
  • "disabled": true keeps the entry but skips the server. With Devin CLI, devin mcp disable -s user agentsearch and devin mcp enable -s user agentsearch flip it for you.

Permission rules. You can also pre-approve tools in your permission rules instead of on the approval card. In Devin Desktop they are under Devin Local settings (Allow, Deny, Ask). MCP rules use the pattern mcp__<server>__<tool>, for example mcp__agentsearch__agentsearch_web_search, or mcp__agentsearch__* for the whole server. Keep the prompts on for tools that read the web unless you have a reason not to.

Project scope. To share the setup with a repo, put the same block in .devin/mcp_config.json at the project root (or run devin mcp add -s project ...). Never put a wallet key in that file.

Optional: pay per call with a wallet

When you need more than the free allowance, the local server can pay per call in USDC on Base over x402, with no account and no API key. Paid calls go to AgentSearch's direct x402 API: search and news $0.003, extract $0.002, render $0.005, search + read $0.005, screenshot $0.004. See pricing for details. Calls are settled only after a successful answer.

Use a new, dedicated wallet that holds only a small amount of USDC. The wallet setup guide walks through it. With release 1.8.7, a wallet key makes extract and render paid once their free trial is used up. Search, news, search + read and screenshots stay on the free tier unless you also set AGENTSEARCH_MODE=paid.

Add a separate server entry with an env block in your user file, ~/.config/devin/mcp_config.json, so the key never lands in a repo:

{
  "mcpServers": {
    "agentsearch-paid": {
      "command": "npx",
      "args": ["-y", "@agentsearchhq/agentsearch-mcp"],
      "env": {
        "AGENTSEARCH_WALLET_PRIVATE_KEY": "0xYOUR_DEDICATED_WALLET_KEY",
        "AGENTSEARCH_MAX_TOTAL_ATOMIC": "50000"
      }
    }
  }
}

Devin CLI can write it too, with -e KEY=value for each variable: devin mcp add -s user -e AGENTSEARCH_WALLET_PRIVATE_KEY=0x... -e AGENTSEARCH_MAX_TOTAL_ATOMIC=50000 agentsearch-paid -- npx -y @agentsearchhq/agentsearch-mcp. Typing the key on the command line leaves it in your shell history, so editing the file is the safer choice.

Spend caps. The server checks these before it signs anything:

  • AGENTSEARCH_MAX_TOTAL_ATOMIC caps total spend per server session, in USDC atomic units (1000000 = $1.00). The default is $1.00; the example sets $0.05.
  • AGENTSEARCH_MAX_PER_CALL_ATOMIC lowers the per-call ceiling (the default ceiling is $0.020).

When a cap is reached, the tool returns a message saying nothing was signed instead of paying.

Still on the Windsurf JetBrains plugin?

Cognition says the Windsurf plugin for JetBrains IDEs is in maintenance mode and recommends Devin over ACP instead. If you still use the plugin, its Cascade agent has its own mcp_config.json: use Open MCP config file in Cascade's MCP menu to open it, add the same command/args block from Option A, or a remote entry with serverUrl (or url) as above, then press the refresh button. Details are in the plugin's MCP page.

Troubleshooting

Devin Local isn't in the agent selector. Per the docs, open the Command Palette, run Devin User Settings, open the Agents tab, turn on Devin Local, and restart Devin Desktop. On team plans an admin setting controls it.

No agent at all in a folder. When a workspace is open in Restricted Mode, Devin Local and every other agent are disabled. They come back once the workspace is no longer in Restricted Mode.

The server is blocked on a team plan. Admins can turn MCP off or allow only listed servers. A server that isn't on the allowlist won't connect. Ask your admin to allow npx -y @agentsearchhq/agentsearch-mcp or the hosted URL.

npx: command not found or an engine error. The local server needs Node.js 20 or newer with npx on the PATH the agent sees. Install Node.js and restart Devin Desktop, or use the hosted server (Option B).

devin mcp remove agentsearch says the server is not in the local project config. remove uses the local scope by default. Run devin mcp remove -s user agentsearch for a server in your user file.

Extract or Render says a wallet is needed. The free trial for the day is used up (5 extracts, 3 renders per IP), or you set AGENTSEARCH_FREE_TRIAL=0. Nothing was charged. Add a wallet server or wait for the next day.

Search says it needs payment. The 25 free searches for your IP are used up. Add a wallet and set AGENTSEARCH_MODE=paid, or call the direct x402 API from your own code.

FAQ

Do I need an API key to add web search to Windsurf?

No. The agentsearch entry in mcp_config.json (npx -y @agentsearchhq/agentsearch-mcp) needs no key, account or wallet. You get 25 free searches per IP, then pay per call.

Is Windsurf the same as Devin Desktop?

Yes. Windsurf was renamed Devin Desktop on June 2, 2026. It is the same editor, your Windsurf settings carry over, and new conversations use the Devin Local agent instead of Cascade.

Where is mcp_config.json for Windsurf now?

Devin Local uses ~/.config/devin/mcp_config.json for your user servers (%APPDATA%\devin\mcp_config.json on Windows) and .devin/mcp_config.json for a project. By default it also reads the old Windsurf file, ~/.codeium/windsurf/mcp_config.json.

Does Windsurf support remote MCP servers?

Yes. Devin Local supports stdio, Streamable HTTP and SSE servers. Add AgentSearch's hosted server with "url": "https://relay.agentsearchhq.com/mcp". It needs no authentication. Old Windsurf entries that use serverUrl are still read from the legacy file.

How much do paid calls cost?

On the direct x402 API: search and news $0.003, extract $0.002, render $0.005, search + read $0.005 and screenshot $0.004 per call, in USDC on Base. You pay only after the free allowance is used up.

Is it safe to let the agent read web pages?

Treat web content as untrusted input. A page can contain text written to steer an AI. Keep the MCP approval prompts on for web tools and review what the agent proposes after reading external pages.

Get started

Add the agentsearch block to ~/.config/devin/mcp_config.json, check that it shows up under Customize > MCPs, and ask the agent about something that changed last week. No Node.js? Use the hosted remote MCP server instead. Using Cursor or Cline too? See How to Add Free Web Search to Cursor with MCP and How to Add Free Web Search to Cline with MCP. Setup for other clients is on the MCP page.

More from the blog

Service pages: Web Search API · Web Extract API · Web Render API