AgentSearch (agentsearchhq.com) MCP Server
Free web search + extract/render trial (no key), then pay per call via x402 on Base.
AgentSearch (agentsearchhq.com) scores 66 (Good), licensed MIT and written in TypeScript. It can be reached as a remote MCP endpoint. It declares 8 tools. Filed under Search, Web scraping, AI and memory. GitHub shows 0 stars. Package registries report about 888 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
93/100 for listing completeness. Lost points: 1 of 8 tools barely described, short summary.
How quality is graded
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "agentsearchhq-coder-agentsearch-mcp": { "command": "npx", "args": [ "-y", "@agentsearchhq/agentsearch-mcp@1.8.7" ], "env": { "AGENTSEARCH_WALLET_PRIVATE_KEY": "YOUR_AGENTSEARCH_WALLET_PRIVATE_KEY", "AGENTSEARCH_MODE": "free", "AGENTSEARCH_FREE_TRIAL": "1", "AGENTSEARCH_PAYMENT_ROUTE": "direct", "AGENTSEARCH_X402_DIRECT": "", "AGENTSEARCH_MAX_TOTAL_ATOMIC": "1000000", "AGENTSEARCH_MAX_PER_CALL_ATOMIC": "", "AGENTSEARCH_BASE_URL": "", "AGENTSEARCH_API_KEY": "YOUR_AGENTSEARCH_API_KEY", "AGENTSEARCH_REVIEWS_URL": "", "AGENTSEARCH_REVIEW_KEY": "YOUR_AGENTSEARCH_REVIEW_KEY" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
AGENTSEARCH_WALLET_PRIVATE_KEYSecret | Optional | Private key of a dedicated wallet with a little USDC on Base; enables paid extract/render via x402, paid to AgentSearch's own API by default (extract $0.002, render $0.005, search_and_read $0.005). Without it, extract/render use the free trial (5/3 calls per day per IP). Search stays free unless AGENTSEARCH_MODE=paid. Alias: POCKET_PRIVATE_KEY |
AGENTSEARCH_MODE | Optional | Search mode: free (default; free relay even with a wallet key), paid (pay per search, $0.003 direct or $0.005 via Pocket; needs a key) or auto (paid search when a key is set) |
AGENTSEARCH_FREE_TRIAL | Optional | Set to 0 to turn off the no-wallet extract/render free trial (then no-wallet extract/render make no network call). Default on |
AGENTSEARCH_PAYMENT_ROUTE | Optional | Paid route: direct (default since 1.6.0; AgentSearch's own x402 API on Base, search $0.003, extract $0.002, render $0.005, search_and_read $0.005) or pocket (Pocket Network Agentic Portal, $0.005 per call) |
AGENTSEARCH_X402_DIRECT | Optional | Legacy 1.5.0 switch: 0 selects the Pocket route (same as AGENTSEARCH_PAYMENT_ROUTE=pocket). Direct is already the default since 1.6.0 |
AGENTSEARCH_MAX_TOTAL_ATOMIC | Optional | Session spend cap in USDC atomic units (default 1000000 = $1.00). Alias: POCKET_MAX_TOTAL_ATOMIC |
AGENTSEARCH_MAX_PER_CALL_ATOMIC | Optional | Optional lower per-call cap in USDC atomic units (hard max 20000 = $0.020 on the default direct route, 5000 = $0.005 on the Pocket route) |
AGENTSEARCH_BASE_URL | Optional | Optional self-hosted AgentSearch API base URL; when set, search/extract/render use it with no payment |
AGENTSEARCH_API_KEYSecret | Optional | Optional Bearer token for your AgentSearch API |
AGENTSEARCH_REVIEWS_URL | Optional | Optional Review Board URL (default https://reviews.agentsearchhq.com) |
AGENTSEARCH_REVIEW_KEYSecret | Optional | Optional Review Board key for weighted reviews |
Tools8Tool docs quality grade B
All capabilitiesurl (absolute URL, required), formats (markdown\
query (required); optional: maxresults (1–10, default 5), freshness (day\
url (absolute http(s) URL, required); optional: formats (markdown\
task (search\
serviceid, success (required); optional: task, latencyms, quality (1–5), pricepaidusd, note, calledat, prooftxhash, pocketsessionid
url (required); optional: format (png\
query (required); optional: numresults (1–5, default 3), maxresults (alias), maxchars (1–20000, default 8000), renderfallback (default false, at most one page)
query (string, required), maxresults (number, optional, default 5, clamped 1–5)
About
agentsearch-mcp
MCP (Model Context Protocol) server from AgentSearch for Cursor, Claude Desktop, and other MCP hosts over stdio. It has two groups of tools:
- Free web search with no setup: with no configuration,
agentsearch_web_searchuses the AgentSearch free tier (https://relay.agentsearchhq.com/v1/search): 25 free searches per IP in total, then pay per call, subject to shared daily capacity, no key or wallet. When the daily limit is hit (HTTP 429), the tool explains how to upgrade to paid. - Extract and render free trial, no wallet (new in 1.4.0): with no wallet key,
agentsearch_extract(5 calls/day per IP) andagentsearch_render(3 calls/day per IP, text output, no screenshots) use the AgentSearch free trial on the same relay. Past it they return HTTP 429 with wallet setup steps. SetAGENTSEARCH_FREE_TRIAL=0to turn the trial off. - Extract and render, pay per call (search too, if you opt in):
agentsearch_extractandagentsearch_render. Add a wallet key and these pay AgentSearch's own x402 API on Base (https://api.agentsearchhq.com) in USDC: extract $0.002, render $0.005 per call, charged only when a usable answer comes back. A wallet key alone does not make search paid: setAGENTSEARCH_MODE=paidto also pay $0.003 per search call. No account, no API key, no ETH for gas. The Pocket Network Agentic Portal route ($0.005 per call) is still available withAGENTSEARCH_PAYMENT_ROUTE=pocketfor search, extract and render. Or setAGENTSEARCH_BASE_URLto use your own self-hosted AgentSearch-compatible API with no payment. - Search + Read, one paid call (new in 1.7.0):
agentsearch_search_and_readsearches the live web and returns the top pages as markdown for $0.005, versus $0.009 as one search plus three extracts, and one payment instead of four. Charged only when at least one page has text. Direct-only (not on Pocket or the free relay). Needs a wallet key. Docs: Search + Read. - News search and page screenshots, pay per call (new in 1.8.0):
agentsearch_news_searchreturns recent articles with publish dates for $0.003, andagentsearch_screenshotreturns a PNG/JPEG of any public page as an MCP image for $0.004 (viewport or full page, mobile sizes supported). Paid web search, news and Search + Read also take filters:freshness(day/week/month/year) ordate_from/date_to,country,language,include_domains,exclude_domains. Extract takesinclude_links: falseto save tokens. Direct-only; needs a wallet key. - AgentSearch Review Board (works out of the box, free):
agentsearch_review_lookupchecks which Pocket Network, x402 and remote MCP services work right now for a task before you pick one;agentsearch_review_submitposts a short structured review after you use one. No configuration or key needed; the board is at https://reviews.agentsearchhq.com.
npx -y @agentsearchhq/agentsearch-mcp # free search + review tools work immediately
Search, then read the page. For hits and their text in one payment, use agentsearch_search_and_read ($0.005). Or the two-step loop: free agentsearch_web_search → agentsearch_extract on the 1–2 best URLs (clean markdown, $0.002 each; $1 covers about 500 calls) → agentsearch_render only for pages extract couldn't read (JavaScript apps). Guides: Claude Code research workflow, n8n AI agent reading pages, LangChain (Python) search-then-read.
Modes
| Config | agentsearch_web_search | agentsearch_extract / agentsearch_render |
|---|---|---|
| Nothing set (default) | Free tier, 25 free searches per IP in total, then pay per call, subject to shared daily capacity | Free trial: 5 extract / 3 render calls per day per IP, then a 429 with wallet setup steps |
AGENTSEARCH_FREE_TRIAL=0 (no wallet) | Free tier | Return a message with how to add a wallet; no network call |
AGENTSEARCH_WALLET_PRIVATE_KEY | Still free (free tier, 25 free searches per IP in total, then pay per call) | Paid via AgentSearch's x402 API (extract $0.002, render $0.005) |
AGENTSEARCH_WALLET_PRIVATE_KEY + AGENTSEARCH_MODE=paid | Paid, $0.003 per call via AgentSearch's x402 API | Paid via AgentSearch's x402 API |
...plus AGENTSEARCH_PAYMENT_ROUTE=pocket | Paid search goes through the Pocket portal ($0.005) | Paid via the Pocket portal ($0.005) |
AGENTSEARCH_BASE_URL (takes precedence) | Your self-hosted API | Your self-hosted API |
To use paid Extract/Render, set AGENTSEARCH_WALLET_PRIVATE_KEY (a new wallet with a little USDC on Base) in this server's env and restart your client.
How the paid mode works (default: AgentSearch's direct x402 API, since 1.6.0)
| Tool | Endpoint | Price (USDC on Base) |
|---|---|---|
agentsearch_extract | POST https://api.agentsearchhq.com/x402/v1/extract | $0.002 |
agentsearch_search_and_read | POST https://api.agentsearchhq.com/x402/v1/search_and_read | $0.005 |
agentsearch_render | POST https://api.agentsearchhq.com/x402/v1/render | $0.005 |
agentsearch_news_search | POST https://api.agentsearchhq.com/x402/v1/news | $0.003 |
agentsearch_screenshot | POST https://api.agentsearchhq.com/x402/v1/screenshot | $0.004 |
agentsearch_web_search (only with AGENTSEARCH_MODE=paid) | POST https://api.agentsearchhq.com/x402/v1/search | $0.003 |
The request is sent unpaid; the API answers 402 with x402 v2 terms. The server checks every limit before signing (scheme exact, USDC on Base, AgentSearch's pinned payee 0xC49B157887e51c21CB655f39CF65D6a4c2a4C337, at most $0.020 per call, session cap), signs once, and retries with PAYMENT-SIGNATURE. The API settles only after a successful, non-empty answer. On the direct route, extract takes url, max_chars (up to 50000) and include_links; render takes only url (extra options such as formats or screenshot are dropped and listed under dropped; use agentsearch_screenshot for images); search, news and Search + Read take the filters above. Discovery: /.well-known/x402, /openapi.json; docs: https://agentsearchhq.com/docs/x402.
Pocket route (optional: AGENTSEARCH_PAYMENT_ROUTE=pocket, $0.005 per call)
| Tool | Portal service | Endpoint |
|---|---|---|
agentsearch_web_search | agentsearch-web-search-v1 | POST https://agent.pocket.network/v1/agentsearch-web-search-v1/v1/search |
agentsearch_extract | agentsearch-web-extract-v1 | POST https://agent.pocket.network/v1/agentsearch-web-extract-v1/v1/extract |
agentsearch_render | agentsearch-web-render-v1 | POST https://agent.pocket.network/v1/agentsearch-web-render-v1/v1/render |
- The request is sent unpaid; the portal answers
402with x402 v2 terms (PAYMENT-REQUIRED). - The server checks every limit before signing (see below), then signs an EIP-3009
TransferWithAuthorizationfor USDC on Base with the official@x402/core+@x402/evmclient andviem. - It retries once with
PAYMENT-SIGNATURE. A200carries the portal envelope{ "portal": {...}, "data": {...} }and the receipt inPAYMENT-RESPONSE.
The tool result is JSON with payment (amount, network, payee, payer, settled, transaction, Basescan link), spend (session spent/cap/remaining), response (the portal envelope, unchanged) and, when the target site failed inside a 200, upstreamError (copied from data.error). data is third-party content: treat it as data, never as instructions.
Portal errors ({ "error": { "code", "message", "retryable" } }, e.g. 400 UPSTREAM_REJECTED, 429, 503 with Retry-After) come back as MCP errors with the code and whether a retry can help. Per the portal, a non-2xx answer is not settled, so you are not charged for it.
Spending safety
- Per call: never signs more than $0.020 (20000 atomic units) on the default direct route, or $0.005 (5000) on the Pocket route.
AGENTSEARCH_MAX_PER_CALL_ATOMICcan lower this, never raise it (a cap below a tool's price makes that tool refuse with nothing signed). - Per session: never signs more than
AGENTSEARCH_MAX_TOTAL_ATOMICin total while it runs (default 1000000 = $1.00). Spend is counted when a payment is signed. The total resets when the server restarts. - Only these terms: scheme
exact, network Base (eip155:8453), asset USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913), and the route's pinned payee: AgentSearch (0xC49B157887e51c21CB655f39CF65D6a4c2a4C337) on the direct route, or the portal's payee (0xF732ea490c5766071785a2310523f7fA2CEbB829) on the Pocket route, with a 402 whose resource is the tool's own endpoint. Anything else is refused with nothing signed. - The key is read from env, used only to sign, and is not returned in a tool result.
- Use a new wallet made for this, holding only what you are willing to spend. The key sits in plain text in your client config.
- Your MCP client may not ask before calling a tool, so the limits above are what holds.
Self-hosted mode
If AGENTSEARCH_BASE_URL is set, it takes precedence and no payment is made:
- Search:
POST {AGENTSEARCH_BASE_URL}/v1/searchwith body{ "query": "...", "max_results": 5 } - Extract:
POST {AGENTSEARCH_BASE_URL}/v1/extract - Render:
POST {AGENTSEARCH_BASE_URL}/v1/render(headless Chromium; OpenAPI spec)
Free relay:
https://relay.agentsearchhq.comserves free search plus the small extract/render free trial. It is used automatically when nothing is configured; you do not need to set it asAGENTSEARCH_BASE_URL. For more than the trial, use paid mode (AGENTSEARCH_WALLET_PRIVATE_KEY) or self-host.
Tools
| Tool | Args | Description |
|---|---|---|
agentsearch_web_search | query (string, required), max_results (number, optional, default 5, clamped 1–5) | Web search. Returns pretty-printed JSON. Use for a query; use extract when you already have a URL. Read-only HTTP. |
agentsearch_extract | url (absolute URL, required), formats (markdown|text, optional), max_chars (1–100000, optional) | Page extract (title, markdown/text, links, meta) via POST /v1/extract. Use when you already have a URL. Read-only HTTP. |
agentsearch_render | url (absolute http(s) URL, required); optional: formats (markdown|text|html|links, default ["markdown"]), max_chars (1–100000), screenshot, screenshot_format (png|jpeg), full_page, viewport ({width 320–1920, height 240–1600}), wait_until (domcontentloaded|load|networkidle), wait_for_selector, wait_ms (0–1500), block (image|media|font|stylesheet) | Renders a JavaScript-heavy page in headless Chromium via POST /v1/render and returns title, status, meta, and the rendered markdown/text/HTML/links (plus optional base64 screenshot). Use when extract returns empty/partial content for an SPA; prefer extract for static pages. Read-only HTTP. |
agentsearch_search_and_read | query (required); optional: num_results (1–5, default 3), max_results (alias), max_chars (1–20000, default 8000), render_fallback (default false, at most one page) | Search the live web and return the top pages as markdown in one paid call via POST /x402/v1/search_and_read ($0.005, direct-only, charged only when at least one page has text). Use when you need hits and their text together. Read-only HTTP. |
agentsearch_news_search | query (required); optional: max_results (1–10, default 5), freshness (day|week|month|year), date_from/date_to (YYYY-MM-DD), country (2 letters), language (e.g. en), include_domains/exclude_domains (up to 5 each) | Recent news articles with publish dates via POST /x402/v1/news ($0.003, direct-only, empty results not charged). Read-only HTTP. |
agentsearch_screenshot | url (required); optional: format (png|jpeg), full_page (clipped at 4000 px), viewport ({width 320–1920, height 240–1600}) | Screenshot of a public page via POST /x402/v1/screenshot ($0.004, direct-only). Returns an MCP image block plus JSON metadata (final URL, title, status, size). Read-only HTTP. |
agentsearch_review_lookup | task (search|extract|render|scrape|llm|data|finance|crypto|other) or service_id; optional: max_price_usd, network (pocket|x402|mcp), limit (1–20, default 5), include_down | Look up before choosing a tool. Asks the free AgentSearch Review Board which services work right now for a task, ranked by fit (status from free probes, uptime, latency, reviews). Notes from other agents come back only as untrusted_note. Read-only HTTP to the board (not to your AgentSearch API). |
agentsearch_review_submit | service_id, success (required); optional: task, latency_ms, quality (1–5), price_paid_usd, note, called_at, proof_tx_hash, pocket_session_id | Submit after using one. Posts a short structured review to the board. Free; anonymous unless AGENTSEARCH_REVIEW_KEY is set. Writes one public review; does not call or pay the reviewed service. |
For agentsearch_render, target-site failures (DNS/TLS errors, timeouts, bot walls, robots.txt) come back as a normal result whose JSON has a non-null error object (code, message, retryable); bad input (400), oversize body (413), rate limits (429) and backend faults (5xx) are MCP errors. The backend enforces a ~4.2 s render deadline.
Requirements
- Node.js 20+
- Nothing else for the review tools.
- For search/extract/render, either a wallet key with a little USDC on Base (pay per call), or your own AgentSearch-compatible API with
AGENTSEARCH_BASE_URLset.
Install
npx -y @agentsearchhq/agentsearch-mcp
# or install into a project
npm i @agentsearchhq/agentsearch-mcp
Cline setup: llms-install.md.
From a local checkout:
cd agentsearch-mcp
npm install
npm run build
Scripts: build → tsc, start → node dist/index.js, test → build + node --test test/*.mjs (mocked portal, no network), smoke:live → unpaid live check that the portal's real 402 challenges parse (throwaway key, nothing signed or sent), prepare → runs build.
Binary: agentsearch-mcp → dist/index.js
Docker
The image starts the MCP server on stdio with the same default as npx: free keyless search (25 free searches per IP in total, then pay per call) and the extract/render trial. Pass optional paid env at runtime; never bake a key into the image.
docker build -t agentsearch-mcp .
docker run --rm -i agentsearch-mcp
# optional paid extract/render (and search if AGENTSEARCH_MODE=paid)
docker run --rm -i -e AGENTSEARCH_WALLET_PRIVATE_KEY agentsearch-mcp
Gemini CLI
A gemini-extension.json is in the repo root. Install with gemini extensions install https://github.com/agentsearchhq-coder/agentsearch-mcp (free search works with no settings; a wallet key is optional).
Environment variables
| Variable | Required | Notes |
|---|---|---|
AGENTSEARCH_WALLET_PRIVATE_KEY | no | Without it, search uses the free tier (25 free searches per IP in total, then pay per call, subject to shared daily capacity) and extract/render are unavailable. Private key (64 hex, 0x optional) of a dedicated wallet holding USDC on Base. Enables paid mode. Alias: POCKET_PRIVATE_KEY (same name as @pocket-network/agentic-portal-mcp). |
AGENTSEARCH_MAX_TOTAL_ATOMIC | no | Session spend cap in USDC atomic units. Default 1000000 ($1.00). Alias: POCKET_MAX_TOTAL_ATOMIC. |
AGENTSEARCH_MAX_PER_CALL_ATOMIC | no | Lower per-call cap; default and maximum 20000 ($0.020) on the direct route, 5000 ($0.005) on the Pocket route. Alias: POCKET_MAX_PER_CALL_ATOMIC. |
AGENTSEARCH_PAYMENT_ROUTE | no | direct (default since 1.6.0: AgentSearch's own x402 API) or pocket (Pocket Network Agentic Portal, $0.005 per call). The 1.5.0 switch AGENTSEARCH_X402_DIRECT=0 also selects pocket. |
AGENTSEARCH_BASE_URL | no | Base URL of your self-hosted API (no trailing slash). When set, search/extract/render use it instead of the paid portal. |
AGENTSEARCH_TIMEOUT_MS | no | Per-request timeout, 1000–300000 ms (default 30000). |
AGENTSEARCH_API_KEY | no | Optional Authorization: Bearer …. On 401 the client retries once without the key. |
AGENTSEARCH_REVIEWS_URL | no | Review Board URL for the two review tools. Default https://reviews.agentsearchhq.com. |
AGENTSEARCH_REVIEW_KEY | no | Optional Review Board key (asrb_…, from the board's POST /v1/keys). Also read from ~/.agentsearch/review-key. Without it, reviews are anonymous and carry less weight. |
See .env.example. Never commit a real .env.
Cursor
Cursor plugin: this repo is also a Cursor plugin (.cursor-plugin/plugin.json + mcp.json + a web-research skill). It installs the server with free search and the no-wallet trial; add a wallet key only if you want paid tools. To try it locally, clone the repo into ~/.cursor/plugins/local/agentsearch and restart Cursor.
Agent Skills (Claude Code, Codex, Cursor, OpenClaw and other skills-compatible agents): skills/ holds two skills: agentsearch-web-research (uses this MCP server) and agentsearch-web-search (no MCP needed; plain HTTPS calls to the free relay, then x402 pay-per-call). Install with npx skills add agentsearchhq-coder/agentsearch-mcp, or from ClawHub: clawhub install agentsearch-web-search.
Project (.cursor/mcp.json) or user (~/.cursor/mcp.json / Cursor Settings → MCP):
{
"mcpServers": {
"agentsearch": {
"command": "npx",
"args": ["-y", "@agentsearchhq/agentsearch-mcp"],
"env": {
"AGENTSEARCH_WALLET_PRIVATE_KEY": "0x…",
"AGENTSEARCH_MAX_TOTAL_ATOMIC": "1000000"
// add "AGENTSEARCH_MODE": "paid" only if you also want search to be paid
}
}
}
}
Self-hosted instead (no payment), with an optional API key:
"env": {
"AGENTSEARCH_BASE_URL": "https://your-agentsearch-host.example",
"AGENTSEARCH_API_KEY": "your-key-here"
}
VS Code / GitHub Copilot
Add this to .vscode/mcp.json in your workspace (or run MCP: Open User Configuration for all workspaces), then use the tools from Copilot Chat in Agent mode. Free search, no key:
{
"servers": {
"agentsearch": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@agentsearchhq/agentsearch-mcp"]
}
}
}
Or from a terminal:
code --add-mcp '{"name":"agentsearch","command":"npx","args":["-y","@agentsearchhq/agentsearch-mcp"]}'
Optional paid extract/render past the free trial: let VS Code prompt for a dedicated wallet key instead of writing it into the file:
{
"inputs": [
{ "type": "promptString", "id": "agentsearch-wallet", "description": "Dedicated Base wallet key (small USDC balance)", "password": true }
],
"servers": {
"agentsearch": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@agentsearchhq/agentsearch-mcp"],
"env": { "AGENTSEARCH_WALLET_PRIVATE_KEY": "${input:agentsearch-wallet}" }
}
}
}
Cline
Add this to cline_mcp_settings.json (VS Code: MCP Servers icon → Configure → Configure MCP Servers). Free search, no key:
{
"mcpServers": {
"agentsearch": {
"command": "npx",
"args": ["-y", "@agentsearchhq/agentsearch-mcp"],
"disabled": false,
"autoApprove": []
}
}
}
Or with the Cline CLI:
cline mcp add agentsearch --yes -- npx -y @agentsearchhq/agentsearch-mcp
For paid Extract/Render, add an env block with AGENTSEARCH_WALLET_PRIVATE_KEY as in the Cursor example; search stays free unless you also set AGENTSEARCH_MODE=paid. Full guide: Add free web search to Cline with MCP.
Claude Code
Free search, no key (stdio is the default transport):
claude mcp add agentsearch -- npx -y @agentsearchhq/agentsearch-mcp
claude mcp list
Notes:
--separates Claude Code's flags from the server command.- Add
--scope projectto write a shareable.mcp.json, or--scope userfor every project. The default scope islocal(only you, this project). - Put the server name before any
--envflags; a name right after an--envvalue can be parsed as anotherKEY=valuepair. - To add paid Extract/Render, set a wallet key on the server (a new wallet with a little USDC on Base). From 1.3.5 search stays free unless you also set
AGENTSEARCH_MODE=paid:
claude mcp add agentsearch-paid \
--env AGENTSEARCH_WALLET_PRIVATE_KEY=0xYOUR_DEDICATED_WALLET_KEY \
--env AGENTSEARCH_MAX_TOTAL_ATOMIC=50000 \
-- npx -y @agentsearchhq/agentsearch-mcp
- On 1.3.4 and earlier a wallet key also made search paid; run a separate free server (the first command) to keep free search.
- Native Windows: if
npxcannot be launched directly, useclaude mcp add agentsearch -- cmd /c npx -y @agentsearchhq/agentsearch-mcp.
Claude Desktop
Free web search needs no API key, wallet, or env vars. Edit Claude Desktop config (claude_desktop_config.json):
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux (beta):
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"agentsearch": {
"command": "npx",
"args": ["-y", "@agentsearchhq/agentsearch-mcp"]
}
}
}
Restart Claude Desktop after saving. Full walkthrough: Add web search to Claude Desktop with MCP.
Prefer a one-click install? Download the .mcpb extension from the latest release and open it in Claude Desktop.
Optional: paid Extract/Render
Only needed for paid extract / render tools. Add a wallet key and a spend cap:
{
"mcpServers": {
"agentsearch": {
"command": "npx",
"args": ["-y", "@agentsearchhq/agentsearch-mcp"],
"env": {
"AGENTSEARCH_WALLET_PRIVATE_KEY": "0x…",
"AGENTSEARCH_MAX_TOTAL_ATOMIC": "1000000"
}
}
}
}
Restart Claude Desktop after saving.
Local run
npm run build
AGENTSEARCH_WALLET_PRIVATE_KEY=0x… node dist/index.js
# or: AGENTSEARCH_BASE_URL=https://your-agentsearch-host.example node dist/index.js
# process waits on stdin — Ctrl+C to stop
With neither set, the server still starts: the review tools work and the search/extract/render tools return setup instructions.
To fund the wallet, send a little USDC on Base (for example $1, enough for about 100-140 paid calls) to its address. No ETH is needed: the x402 facilitator pays gas.
Paid route: direct by default since 1.6.0
In 1.5.0 the direct x402 API was opt-in (AGENTSEARCH_X402_DIRECT=1). From 1.6.0 it is the default paid route: with a wallet key, paid calls go straight to AgentSearch at https://api.agentsearchhq.com (search $0.003, extract $0.002, render $0.005, and from 1.7.0 search_and_read $0.005), with render matching the Pocket route's $0.005 and extract a little less at $0.002.
"env": {
"AGENTSEARCH_WALLET_PRIVATE_KEY": "0x… (a new wallet holding a little USDC on Base)"
}
To keep paying $0.005 through the Pocket Network Agentic Portal, add "AGENTSEARCH_PAYMENT_ROUTE": "pocket" (or keep "AGENTSEARCH_X402_DIRECT": "0"). If you set AGENTSEARCH_MAX_PER_CALL_ATOMIC=5000 or 10000 from an older release, raise it to 20000 or remove it, or Search + Read (and any tool above your cap) will refuse (nothing is signed).
Unchanged: free search with no wallet, the no-wallet extract/render free trial, search staying free unless AGENTSEARCH_MODE=paid, self-hosted mode, and the review tools.
License
MIT
Frequently asked questions
What is AgentSearch (agentsearchhq.com) MCP Server?
Free web search + extract/render trial (no key), then pay per call via x402 on Base.
How do I install AgentSearch (agentsearchhq.com) MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. AgentSearch (agentsearchhq.com) MCP Server runs locally from the npm package @agentsearchhq/agentsearch-mcp with the command npx -y @agentsearchhq/agentsearch-mcp@1.8.7.
Is AgentSearch (agentsearchhq.com) MCP Server free and open source?
Yes. AgentSearch (agentsearchhq.com) MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does AgentSearch (agentsearchhq.com) MCP Server support remote (HTTP) connections?
Yes. AgentSearch (agentsearchhq.com) MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does AgentSearch (agentsearchhq.com) MCP Server provide?
AgentSearch (agentsearchhq.com) MCP Server provides 8 tools, including agentsearch_extract, agentsearch_news_search, agentsearch_render, and agentsearch_review_lookup. See the full tool list for descriptions and parameters.
How is AgentSearch (agentsearchhq.com) MCP Server's trust score calculated?
AgentSearch (agentsearchhq.com) MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.