Skip to content
AgentSearch

How to Add Web Search to Flowise (MCP)

Flowise lets you build AI agents by dragging nodes onto a canvas: a chat model, an agent and the tools it can call. Out of the box the model only knows what it was trained on. To answer questions about this week's release, a changelog or today's news, the agent needs live web search. Flowise is an MCP client, so any Model Context Protocol server can become a tool through the Custom MCP node. This guide adds Flowise web search with the AgentSearch MCP server.

Search works right away with no API key, no signup and no wallet: 25 free searches per IP in total, then pay per call. The 25 is a lifetime allowance, not a daily one, and it never resets.

What we actually ran (November 27, 2026): Flowise 3.1.4 (the latest release on npm) on Linux with Node.js 24, bound to 127.0.0.1 with a throwaway local admin account, plus @agentsearchhq/agentsearch-mcp 1.8.7. In the Flowise UI we added a Custom MCP node to a chatflow, pasted the server config, clicked refresh on Available Actions and got all eight AgentSearch tools. We connected it to a Tool Agent node's Tools input, and we also added it as a tool on the Agentflow V2 Agent node. We made one real free search through Flowise's own MCP tool code. We did not run a chat model, and we didn't test Windows, Docker or Flowise Cloud.

One thing first: the config from Flowise's own docs doesn't work on 3.1.4 as is. In 3.1.4, stdio MCP servers are blocked until the person running Flowise allows them with environment variables, and npx -y is rejected. Step 1 below covers the exact settings we needed. Also note that the Flowise team announced in July 2026 that they're winding the project down. The code stays open source on GitHub (now archived), and existing installs keep working, but expect no new releases.

What the agent gets (and what it costs)

The server exposes eight tools. All of them showed up under Available Actions in Flowise:

AGENTSEARCH_EXTRACT, AGENTSEARCH_NEWS_SEARCH, AGENTSEARCH_RENDER,
AGENTSEARCH_REVIEW_LOOKUP, AGENTSEARCH_REVIEW_SUBMIT, AGENTSEARCH_SCREENSHOT,
AGENTSEARCH_SEARCH_AND_READ, AGENTSEARCH_WEB_SEARCH

For research agents, these three matter most:

Tool What it does Cost
agentsearch_web_search Live web search, up to 5 results with title, URL and a text snippet 25 free searches per IP in total (never resets), then $0.003 per call
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, 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 ($0.003 per call), JavaScript-heavy pages (Web Render), screenshots and a free board of agent-written reviews of web tools.

Before you start

  • Flowise running on your own machine or server. We used 3.1.4, installed from npm and started with npx flowise start. Flowise's docs recommend stdio MCP servers for local installs, not for cloud deployments.
  • Node.js with npx on the PATH of the Flowise process, because the server runs with npx. Flowise 3.1.4 itself asks for Node.js 24.
  • A chat model node that supports tool calling (for the Tool Agent, Flowise labels the input Tool Calling Chat Model). Search itself needs no extra key.

Step 1: Allow the stdio server (Flowise 3.1.4 security settings)

Flowise 3.1.4 checks every Custom MCP config against allow-lists that only the operator can set, through environment variables on the Flowise process. They're all empty by default, so a fresh install refuses to start any local MCP server. Set these before you start Flowise:

export CUSTOM_MCP_PROTOCOL=stdio
export CUSTOM_MCP_ALLOWED_COMMANDS=npx
export CUSTOM_MCP_ALLOWED_ABSOLUTE_SCRIPT_PATHS=@agentsearchhq/agentsearch-mcp
npx flowise start

What each one does, from what we saw on 3.1.4:

  • CUSTOM_MCP_PROTOCOL=stdio makes Flowise start the command as a local process. Without it, Flowise treats every Custom MCP config as a remote server, and our test failed with "URL is required for SSE transport". Flowise's environment variable docs say stdio is the default, but on 3.1.4 it wasn't.
  • CUSTOM_MCP_ALLOWED_COMMANDS=npx allows the npx command. Without it: "Command 'npx' is not allowed. Permitted: (none)".
  • CUSTOM_MCP_ALLOWED_ABSOLUTE_SCRIPT_PATHS=@agentsearchhq/agentsearch-mcp allows the first argument. Despite the name, Flowise compares it to args[0], which for npx is the package name. Without it: "Custom MCP script execution disabled. Configure CUSTOM_MCP_ALLOWED_ABSOLUTE_SCRIPT_PATHS environment variable."

If you run Flowise with Docker, the comments in Flowise's source point to docker/.env.example for these settings. We didn't test Docker. Restart Flowise after changing any of them.

Step 2: Add the Custom MCP node

Flowise has two builders, and the server works in both.

Chatflows (Tool Agent).

  1. Open Chatflows, click Add New, and click the + button at the top left of the canvas to open Add Nodes.
  2. Search for Custom MCP (it's under Tools (MCP)) and drag Custom MCP onto the canvas. Pick Custom MCP, not Custom MCP Server, which is for remote servers registered in your workspace.
  3. Replace the example in MCP Server Config with:
{
  "command": "npx",
  "args": ["@agentsearchhq/agentsearch-mcp"]
}
  1. Click the refresh icon next to Available Actions. The first run downloads the package, so give it a few seconds. Then open the dropdown and select the actions you want, for example AGENTSEARCH_WEB_SEARCH and AGENTSEARCH_EXTRACT. The node only passes the actions you select to the agent.
  2. Add a Tool Agent node and connect the Custom MCP node's Custom MCP Tool output to the agent's Tools input. Connect a tool-calling chat model and a memory node, which the Tool Agent requires, and save the chatflow.

There's no -y in the args, on purpose. Flowise 3.1.4 rejects it ("Argument '-y' is not allowed for command 'npx'"), even though the node's own placeholder example uses it. You don't need it: npx installs without asking when it isn't attached to a terminal, which is how Flowise runs it. It worked on the first try for us with an empty npm cache.

Agentflows (Agent node). Open the Agent node, click Add Tools, choose Custom MCP in the Tool dropdown, and expand Custom MCP Parameters. You get the same MCP Server Config box and Available Actions list with its refresh icon. Paste the same JSON, refresh, and select actions. The tool row also has a Require Human Input switch if you want to approve calls.

Step 3: Try it

Open the chat on your flow and ask something the model can't know from training data:

Search the web for the latest Flowise release notes, read the release page,
and list the three biggest changes. Cite the URLs.

The agent sees each tool's own arguments: query, max_results, freshness, include_domains and more for search, and 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 free search through Flowise's Custom MCP code returned for Flowise Custom MCP stdio with max_results: 3 (trimmed):

{
  "query": "Flowise Custom MCP stdio",
  "result_count": 3,
  "results": [
    {
      "title": "MCP SSE vs Stdio: Choosing Transports for Agent Storage",
      "url": "https://fast.io/resources/mcp-sse-vs-stdio/",
      "domain": "fast.io"
    },
    {
      "title": "Simple MCP Server starter with StdioServerTransport",
      "url": "https://mcp.so/servers/mcp-server-stdio",
      "domain": "mcp.so"
    },
    {
      "title": "MilesP46/FlowiseAI-MCP",
      "url": "https://github.com/MilesP46/FlowiseAI-MCP",
      "domain": "github.com"
    }
  ]
}

Results are snippets, not whole pages. For full pages, use Extract or Search + Read.

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 the 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.

Flowise blocks environment variables in a Custom MCP config unless they're on another operator allow-list, so add this when you start Flowise:

export CUSTOM_MCP_ALLOWED_ENV_VARS=AGENTSEARCH_WALLET_PRIVATE_KEY,AGENTSEARCH_MODE,AGENTSEARCH_MAX_TOTAL_ATOMIC

Keep the key in a Flowise variable, not in the node. Open Variables, click Add Variable, name it agentsearchWalletKey, and pick a Type. Static stores the value you type in Flowise, and the Variables list shows it in plain text. Runtime reads the value from an environment variable of the same name in Flowise's own environment (Flowise describes it as "read from .env file") instead. Then reference it with {{$vars.agentsearchWalletKey}}:

{
  "command": "npx",
  "args": ["@agentsearchhq/agentsearch-mcp"],
  "env": {
    "AGENTSEARCH_WALLET_PRIVATE_KEY": "{{$vars.agentsearchWalletKey}}",
    "AGENTSEARCH_MODE": "paid",
    "AGENTSEARCH_MAX_TOTAL_ATOMIC": "200000"
  }
}

We checked the substitution with a small test server that recorded its own environment, using a Static variable with a dummy value. The server received the variable's value, not the placeholder. We also loaded the paid config above with a dummy key, and Flowise's MCP code listed all 8 tools. We didn't run a paid call for this post.

Live prices on November 27, 2026, from AgentSearch's own x402 API at api.agentsearchhq.com: search $0.003, news $0.003, extract $0.002, search-and-read $0.005, paid in USDC on Base. No signup, no API key, no minimums. New to per-call payments? Read x402 pay-per-call APIs for AI agents.

Gotchas we hit

"No Available Actions" hides the real error. When anything is wrong (a blocked command, a missing allow-list, a bad argument), the dropdown only says "No available actions, please check your API key and refresh". There's no API key involved here. Check the three settings in Step 1 and the -y rule first.

The docs' example and the node's placeholder both use npx -y. Flowise 3.1.4 rejects -y and --yes for npx. Remove it.

Variables you export in your shell don't reach the server. Flowise starts a stdio server with only a few basics (PATH, HOME, USER and a couple of others) plus what you put under env. Our test server didn't see a variable we exported in the shell that started Flowise. Put what the server needs in the config, through {{$vars...}} if it's a secret.

Installing Flowise from npm took a few tries. On Node.js 24 with a recent npm, one native dependency (better-sqlite3) had no prebuilt binary for Node.js 24 and failed to build until we installed C++ build tools and overrode it to a newer version, and a browser download in a dependency's install step hung until we skipped it (PUPPETEER_SKIP_DOWNLOAD=1). Once installed, Flowise started cleanly and asked us to create an admin account in the browser.

Troubleshooting

Run the server by itself. Run npx @agentsearchhq/agentsearch-mcp in a terminal. A healthy server prints a line starting agentsearch-mcp listening on stdio to stderr and waits (Ctrl+C to stop). On npx: command not found or an engine error, install Node.js where Flowise runs.

"URL is required for SSE transport". CUSTOM_MCP_PROTOCOL isn't set to stdio in the Flowise process. Set it and restart Flowise.

"Command 'npx' is not allowed" or "script path not in allowed list". Add npx to CUSTOM_MCP_ALLOWED_COMMANDS, and the exact first argument (@agentsearchhq/agentsearch-mcp) to CUSTOM_MCP_ALLOWED_ABSOLUTE_SCRIPT_PATHS. If you pin a version such as @agentsearchhq/agentsearch-mcp@latest, allow that exact string instead.

"Environment variable '...' is not allowed". Add the variable name to CUSTOM_MCP_ALLOWED_ENV_VARS.

The agent doesn't use the tools. Check that you selected actions under Available Actions, that the Custom MCP node is connected to the agent's Tools input, and that the model supports tool calling.

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.

FAQ

Does Flowise 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.

Why does Custom MCP say "No Available Actions"?

On Flowise 3.1.4, it's almost always the security settings. Start Flowise with CUSTOM_MCP_PROTOCOL=stdio, CUSTOM_MCP_ALLOWED_COMMANDS=npx and CUSTOM_MCP_ALLOWED_ABSOLUTE_SCRIPT_PATHS=@agentsearchhq/agentsearch-mcp, remove -y from the args, and click refresh again.

Does it work in Agentflows as well as Chatflows?

Yes. In Chatflows, connect a Custom MCP node to a Tool Agent's Tools input. In Agentflow V2, open the Agent node, click Add Tools, pick Custom MCP and expand Custom MCP Parameters. Both loaded the same eight actions in our test.

Can the agent spend money on its own?

Not without a wallet. With no wallet key, search uses the free tier and the other tools use their free allowances, and once those run out the calls fail instead of charging anything. With a wallet, the server never spends more than AGENTSEARCH_MAX_TOTAL_ATOMIC per session (default $1.00), and search stays free unless you also set AGENTSEARCH_MODE=paid.

Is it safe to let the agent read web pages?

Treat web content as untrusted input, because a page can contain text written to steer an AI. Keep the agent's instructions clear that search results are data, and review what it does with external pages before acting on it.

Next steps

Set the three CUSTOM_MCP_ variables, paste the config into a Custom MCP node, refresh Available Actions, and ask the agent about something that changed last week. You get 25 free searches per IP in total with no key, then $0.003 per paid search.

More from the blog

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