Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
AgentSearch web search for agents: free, no API key (25/day per IP). Paid extract $0.005 via x402.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
AGENTSEARCH_WALLET_PRIVATE_KEY, AGENTSEARCH_MODE, AGENTSEARCH_MAX_TOTAL_ATOMIC, AGENTSEARCH_MAX_PER_CALL_ATOMIC, AGENTSEARCH_BASE_URL, AGENTSEARCH_API_KEY, AGENTSEARCH_REVIEWS_URL, AGENTSEARCH_REVIEW_KEYค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"agentsearch": {
"command": "npx",
"args": [
"-y",
"@agentsearchhq/agentsearch-mcp"
],
"env": {
"AGENTSEARCH_WALLET_PRIVATE_KEY": "ใส่ค่าของคุณ",
"AGENTSEARCH_MODE": "ใส่ค่าของคุณ",
"AGENTSEARCH_MAX_TOTAL_ATOMIC": "ใส่ค่าของคุณ",
"AGENTSEARCH_MAX_PER_CALL_ATOMIC": "ใส่ค่าของคุณ",
"AGENTSEARCH_BASE_URL": "ใส่ค่าของคุณ",
"AGENTSEARCH_API_KEY": "ใส่ค่าของคุณ",
"AGENTSEARCH_REVIEWS_URL": "ใส่ค่าของคุณ",
"AGENTSEARCH_REVIEW_KEY": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add agentsearch --env AGENTSEARCH_WALLET_PRIVATE_KEY='ใส่ค่าของคุณ' --env AGENTSEARCH_MODE='ใส่ค่าของคุณ' --env AGENTSEARCH_MAX_TOTAL_ATOMIC='ใส่ค่าของคุณ' --env AGENTSEARCH_MAX_PER_CALL_ATOMIC='ใส่ค่าของคุณ' --env AGENTSEARCH_BASE_URL='ใส่ค่าของคุณ' --env AGENTSEARCH_API_KEY='ใส่ค่าของคุณ' --env AGENTSEARCH_REVIEWS_URL='ใส่ค่าของคุณ' --env AGENTSEARCH_REVIEW_KEY='ใส่ค่าของคุณ' -- npx -y @agentsearchhq/agentsearch-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"agentsearch": {
"command": "npx",
"args": [
"-y",
"@agentsearchhq/agentsearch-mcp"
],
"env": {
"AGENTSEARCH_WALLET_PRIVATE_KEY": "ใส่ค่าของคุณ",
"AGENTSEARCH_MODE": "ใส่ค่าของคุณ",
"AGENTSEARCH_MAX_TOTAL_ATOMIC": "ใส่ค่าของคุณ",
"AGENTSEARCH_MAX_PER_CALL_ATOMIC": "ใส่ค่าของคุณ",
"AGENTSEARCH_BASE_URL": "ใส่ค่าของคุณ",
"AGENTSEARCH_API_KEY": "ใส่ค่าของคุณ",
"AGENTSEARCH_REVIEWS_URL": "ใส่ค่าของคุณ",
"AGENTSEARCH_REVIEW_KEY": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"agentsearch": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@agentsearchhq/agentsearch-mcp"
],
"env": {
"AGENTSEARCH_WALLET_PRIVATE_KEY": "ใส่ค่าของคุณ",
"AGENTSEARCH_MODE": "ใส่ค่าของคุณ",
"AGENTSEARCH_MAX_TOTAL_ATOMIC": "ใส่ค่าของคุณ",
"AGENTSEARCH_MAX_PER_CALL_ATOMIC": "ใส่ค่าของคุณ",
"AGENTSEARCH_BASE_URL": "ใส่ค่าของคุณ",
"AGENTSEARCH_API_KEY": "ใส่ค่าของคุณ",
"AGENTSEARCH_REVIEWS_URL": "ใส่ค่าของคุณ",
"AGENTSEARCH_REVIEW_KEY": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
AGENTSEARCH_MODE envAGENTSEARCH_MAX_TOTAL_ATOMIC envAGENTSEARCH_MAX_PER_CALL_ATOMIC envAGENTSEARCH_BASE_URL envAGENTSEARCH_REVIEWS_URL envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub agentsearchhq-coder ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: AGENTSEARCH_WALLET_PRIVATE_KEY, AGENTSEARCH_API_KEY, AGENTSEARCH_REVIEW_KEY
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.3.6) เข้า registry 8 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
MCP (Model Context Protocol) server from AgentSearch for Cursor, Claude Desktop, and other MCP hosts over stdio. It has two groups of tools:
agentsearch_web_search uses the AgentSearch free tier (https://relay.agentsearchhq.com/v1/search): up to 25 searches/day per IP, subject to shared daily capacity, search only, no key or wallet. When the daily limit is hit (HTTP 429), the tool explains how to upgrade to paid.agentsearch_extract and agentsearch_render. Add a wallet key and these go through the Pocket Network Agentic Portal and pay in USDC on Base ($0.005 per extract call) over x402. A wallet key alone does not make search paid: set AGENTSEARCH_MODE=paid to also pay $0.005 per search call. No account, no API key, no ETH for gas. Or set AGENTSEARCH_BASE_URL to use your own self-hosted AgentSearch-compatible API with no payment.agentsearch_review_lookup checks which Pocket Network, x402 and remote MCP services work right now for a task before you pick one; agentsearch_review_submit posts 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
| Config | agentsearch_web_search | agentsearch_extract / agentsearch_render |
|---|---|---|
| Nothing set (default) | Free tier, up to 25 searches/day per IP, subject to shared daily capacity | Paid tools: return a message with how to add a wallet; no network call |
AGENTSEARCH_WALLET_PRIVATE_KEY | Still free (free tier, up to 25 searches/day per IP) | Paid via the Pocket portal (extract $0.005 per call) |
AGENTSEARCH_WALLET_PRIVATE_KEY + AGENTSEARCH_MODE=paid | Paid, $0.005 per call via the Pocket portal | Paid via the Pocket portal |
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.
| 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 |
402 with x402 v2 terms (PAYMENT-REQUIRED).TransferWithAuthorization for USDC on Base with the official @x402/core + @x402/evm client and viem.PAYMENT-SIGNATURE. A 200 carries the portal envelope { "portal": {...}, "data": {...} } and the receipt in PAYMENT-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.
AGENTSEARCH_MAX_PER_CALL_ATOMIC can lower this, never raise it.AGENTSEARCH_MAX_TOTAL_ATOMIC in total while it runs (default 1000000 = $1.00). Spend is counted when a payment is signed. The total resets when the server restarts.exact, network Base (eip155:8453), asset USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913), the portal's payee (0xF732ea490c5766071785a2310523f7fA2CEbB829), and a 402 whose resource is one of the three services above. Anything else is refused with nothing signed.If AGENTSEARCH_BASE_URL is set, it takes precedence and no payment is made:
POST {AGENTSEARCH_BASE_URL}/v1/search with body { "query": "...", "max_results": 5 }POST {AGENTSEARCH_BASE_URL}/v1/extractPOST {AGENTSEARCH_BASE_URL}/v1/render (headless Chromium; OpenAPI spec)Free relay limitation:
https://relay.agentsearchhq.comserves search only. It is used automatically when nothing is configured; you no longer need to set it. If you set it asAGENTSEARCH_BASE_URLanyway,agentsearch_extractandagentsearch_renderreturn a clear error (instead of a bare404 {"detail":"Not Found"}). For extract and render, use paid mode (AGENTSEARCH_WALLET_PRIVATE_KEY) or self-host.
| 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_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.
AGENTSEARCH_BASE_URL set.npx -y @agentsearchhq/agentsearch-mcp
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
| Variable | Required | Notes |
|---|---|---|
AGENTSEARCH_WALLET_PRIVATE_KEY | no | Without it, search uses the free tier (up to 25 searches/day per IP, 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 5000 ($0.005). Alias: POCKET_MAX_PER_CALL_ATOMIC. |
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.
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" }
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": [] } } } `
ตัดมาแค่ช่วงต้น อ่านต่อใน repo