How to Add Free Web Search to Goose with MCP (No API Key)
goose is an open source AI agent that runs on your own machine, as a CLI and as a desktop app. It started at Block and is now part of the Agentic AI Foundation at the Linux Foundation, with its code at aaif-goose/goose. goose gets its tools from extensions, and extensions are MCP servers. Add an MCP search tool and goose can look things up on the live web and read full pages when it needs them. The same server works in your other MCP clients too.
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 25, 2026 we installed the goose CLI 1.61.0 (the current stable release) on Linux with fresh config folders and no sign-in to any model provider. We added both extensions below with goose configure and checked what it wrote to config.yaml. goose started each extension and listed its tools. We then ran goose run against a small local stand-in for a model, and goose called the hosted search tool and got live results back. We also tried the hand-written YAML from this post in a clean config, and the available_tools filter. We used @agentsearchhq/agentsearch-mcp 1.8.7 (the current npm release). We did not test goose Desktop or a real model. Those steps are quoted from the goose docs and the goose source.
Why add an MCP search tool?
- Raw results. AgentSearch returns ranked results (title, URL, snippet, domain) as JSON, so goose picks what to open.
- Full pages.
agentsearch_extractturns a URL into clean markdown, andagentsearch_renderloads JavaScript-heavy pages in a headless browser first. - News and screenshots. Dated news results and page screenshots are separate tools.
- Search + read in one call.
agentsearch_search_and_readreturns the top results with each page as markdown. - One setup for every client. The same server works in Cursor, Claude Code, Zed, VS Code and other MCP clients.
Where goose keeps extensions
goose CLI and goose Desktop share one config file. Per the goose config files guide, it is at:
| OS | Config file |
|---|---|
| macOS / Linux | ~/.config/goose/config.yaml |
| Windows | %APPDATA%\Block\goose\config\config.yaml |
Extensions live under the extensions key. You can edit the file by hand, use goose configure in a terminal, or use the Extensions page in goose Desktop. All three write the same entries. Restart goose (or start a new session) after editing the file by hand.
Option A: Add the local MCP server
With goose configure (CLI)
Run goose configure, choose Add Extension, then Command-line Extension, and answer the prompts:
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ agentsearch
│
◇ What command should be run?
│ npx -y @agentsearchhq/agentsearch-mcp
│
◇ Please set the timeout for this tool (in secs):
│ 300
│
◇ Enter a description for this extension:
│ Web search, page extract, render, news and screenshots
│
◇ Would you like to add environment variables?
│ No
│
└ Added agentsearch extension
The timeout prompt shows 300 as a hint, but in our test you have to type the number; pressing Enter on the empty field gives "Input required". 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. You need Node.js 20 or newer.
In config.yaml
The same extension written by hand. This is the short form we tested in a clean config:
extensions:
agentsearch:
name: agentsearch
type: stdio
cmd: npx
args: ["-y", "@agentsearchhq/agentsearch-mcp"]
enabled: true
timeout: 300
Each argument is its own list item. goose configure writes the same thing, plus empty envs, env_keys, cwd and bundled keys and the description. If the file already has an extensions key, add only the agentsearch entry under it.
In goose Desktop
Open the sidebar, click Extensions, then Add custom extension. In the form, set Extension Name to agentsearch, Type to Standard IO (STDIO), Command to npx -y @agentsearchhq/agentsearch-mcp, leave Timeout as it is, and click Add Extension.
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.
With goose configure: Add Extension > Remote Extension (Streamable HTTP), name it agentsearch-hosted, enter https://relay.agentsearchhq.com/mcp as the endpoint URI, type a timeout (300) and a description, and answer No to custom headers. In config.yaml:
extensions:
agentsearch-hosted:
name: agentsearch-hosted
type: streamable_http
uri: https://relay.agentsearchhq.com/mcp
enabled: true
timeout: 300
Note the key is uri, not url. In goose Desktop, choose Type Streamable HTTP in the Add custom extension form and put the address in Endpoint. goose can start an OAuth flow for remote servers that ask for it. The AgentSearch relay doesn't, and in our test the extension connected with no sign-in prompt.
Pick one option. If you add both, goose sees two copies of each tool.
One-click install for goose Desktop
goose Desktop also installs extensions from goose:// links, in the deeplink format from the goose docs. With goose Desktop installed, these open it and add the extension (we did not test Desktop ourselves):
Step 2: Check the connection
goose doesn't list an extension's tools until it starts it. A quick way to check without starting a chat: run goose configure, choose goose settings > Tool Permission, and pick agentsearch. goose starts the extension and lists its tools (this step needs a model provider set up, as it does for any session). In our test it showed:
agentsearch__agentsearch_web_search
agentsearch__agentsearch_extract
agentsearch__agentsearch_search_and_read
agentsearch__agentsearch_news_search
agentsearch__agentsearch_render
agentsearch__agentsearch_screenshot
agentsearch__agentsearch_review_lookup
agentsearch__agentsearch_review_submit
goose puts the extension name and two underscores in front of each tool name. The hosted extension showed the six search and page tools (no review tools) as agentsearch-hosted__.... Press Ctrl+C to leave the menu without changing anything.
What the tools do:
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_readandagentsearch_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_lookupandagentsearch_review_submit: read and share agent-written reviews of web tools (local server only).
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 session with goose session (or a new chat in goose Desktop) 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.
For a one-off run, goose run -t "..." works the same way. In our test run, goose called agentsearch-hosted__agentsearch_web_search and passed the JSON results back to the model. Search results are snippets. When goose needs the whole page, it can call agentsearch_extract, or agentsearch_render for pages built with JavaScript.
Just for one session. To try AgentSearch without saving anything to your config, start a session with the extension on the command line. Both flags worked in our test:
goose session --with-extension "npx -y @agentsearchhq/agentsearch-mcp"
goose session --with-streamable-http-extension "https://relay.agentsearchhq.com/mcp"
Extensions added this way get a name made from the command, so the tools show up as npx__agentsearch_web_search or relay_agentsearchhq_com_mcp__agentsearch_web_search.
Permissions and fewer tools
goose runs tools without asking by default. The default goose mode is auto (Completely Autonomous), and in our test the search ran with no prompt. If you want to approve calls, switch to smart_approve or approve with /mode in a CLI session, goose configure > goose settings > goose mode, or the mode button at the bottom of goose Desktop.
Per-tool rules. Per the goose tool permissions docs, each tool can be set to Always Allow, Ask Before or Never Allow, on top of Manual or Smart approval mode. In the CLI that's goose configure > goose settings > Tool Permission. Picking Always Allow for search in our test wrote this to permission.yaml, next to config.yaml:
user:
always_allow:
- agentsearch__agentsearch_web_search
ask_before: []
never_allow: []
Load only the tools you use. The goose docs say goose works best with fewer than 25 tools enabled across all extensions. The extension entry takes an available_tools list, and goose hides every tool that isn't on it. With this entry, the two review tools disappeared from the list in our test:
extensions:
agentsearch:
name: agentsearch
type: stdio
cmd: npx
args: ["-y", "@agentsearchhq/agentsearch-mcp"]
enabled: true
timeout: 300
available_tools:
- agentsearch_web_search
- agentsearch_news_search
- agentsearch_search_and_read
- agentsearch_extract
- agentsearch_render
- agentsearch_screenshot
Use the plain tool names here, without the agentsearch__ prefix.
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.
Keep the key out of config.yaml. Add a second extension with goose configure > Add Extension > Command-line Extension (name it agentsearch-paid, same npx command) and answer Yes to "Would you like to add environment variables?". Add AGENTSEARCH_WALLET_PRIVATE_KEY with your dedicated wallet's key, then AGENTSEARCH_MODE = paid if you want search, news, search + read and screenshots to pay too. Add a spend cap such as AGENTSEARCH_MAX_TOTAL_ATOMIC = 50000 the same way. goose masks the values as you type and stores them in its secret storage: the system keyring, or a plain-text secrets.yaml when no keyring is available. In our test (with a placeholder, not a real key, and the first two variables) the config only got the names:
extensions:
agentsearch-paid:
name: agentsearch-paid
type: stdio
cmd: npx
args: ["-y", "@agentsearchhq/agentsearch-mcp"]
enabled: true
timeout: 300
envs: {}
env_keys:
- AGENTSEARCH_WALLET_PRIVATE_KEY
- AGENTSEARCH_MODE
Turn off the free agentsearch extension with Toggle Extensions so goose doesn't see two copies of each tool. Values in envs would be written to config.yaml in plain text, so don't put the key there, and keep secrets.yaml out of any dotfiles repo.
Spend caps. The server checks these before it signs anything:
AGENTSEARCH_MAX_TOTAL_ATOMICcaps 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_ATOMIClowers 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.
Troubleshooting
The extension doesn't load. Run goose info -v to see which config file goose reads and what's in it. Logs are in ~/.local/state/goose/logs/ on macOS and Linux and %APPDATA%\Block\goose\data\logs\ on Windows (goose Desktop also writes main.log, see the logs guide).
npx: command not found or an engine error. The local server needs Node.js 20 or newer with npx on the PATH goose sees. On Windows, the goose known issues page says goose expects Node.js in C:\Program Files\nodejs\. Or use the hosted server (Option B).
The first start is slow. The first npx run downloads the package. Run npx -y @agentsearchhq/agentsearch-mcp once in a terminal (it prints a "listening on stdio" line; press Ctrl+C), then start a new goose session.
goose never calls the tool. Name it in the prompt ("use agentsearch to..."), and turn off extensions you don't need so the search tool stands out.
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 extension 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 goose?
No. The agentsearch extension (npx -y @agentsearchhq/agentsearch-mcp) needs no key, account or wallet. You get 25 free searches per IP, then pay per call.
What are extensions in goose?
Extensions are how goose gets tools, and they are MCP servers. You add them with goose configure, from the Extensions page in goose Desktop, or under extensions in config.yaml.
Where is the goose config file?
At ~/.config/goose/config.yaml on macOS and Linux and %APPDATA%\Block\goose\config\config.yaml on Windows. goose CLI and goose Desktop use the same file.
Does goose support remote MCP servers?
Yes. Use an extension with type: streamable_http and a uri, plus headers if the server needs them. AgentSearch's hosted server at https://relay.agentsearchhq.com/mcp needs no headers and no sign-in.
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 goose read web pages?
Treat web content as untrusted input. A page can contain text written to steer an AI, and goose runs tools without asking by default. Use Smart or Manual approval mode, or set the page tools to Ask Before, when goose also has shell or file tools.
Get started
Run goose configure and add the agentsearch command-line extension (or paste the YAML into ~/.config/goose/config.yaml), then start goose session and ask about something that changed last week. No Node.js? Use the hosted remote MCP server instead. Using other tools too? See How to Add Free Web Search to Zed with MCP and How to Add Free Web Search to Claude Code with MCP. Setup for other clients is on the MCP page.
More from the blog
- How to Add Free Web Search to Zed with MCP (No API Key)
- How to Add Free Web Search to Claude Code with MCP (No API Key)
- How to Add Free Web Search to OpenAI Codex CLI with MCP (No API Key)
- How to Add Free Web Search to Google Gemini CLI with MCP (No API Key)
- Free Remote MCP Server for Web Search: Hosted, No Install, No API Key
- MCP Web Search Server: Add Live Web Search to Any MCP Client (No API Key)
Service pages: Web Search API · Web Extract API · Web Render API