Web search in Dify with x402serps
Dify imports tools from HTTP MCP servers for Agent apps, workflows and chatflows. Custom headers need Dify 1.9.0 or later. On older self-hosted versions, add the REST API as a custom (OpenAPI) tool instead.
Add the server
- Tools → MCP → Add MCP Server (HTTP).
- Server URL
https://x402serps.com/api/mcp(keep it ending in/mcpso Dify uses streamable HTTP). - Name
x402serps, Server Identifierx402serps. - Headers:
Authorization=Bearer xs_YOUR_KEY(orX-Trial=1to test). - Click Add & Authorize. The card should list the tools.
Older Dify: custom tool
Tools → Custom → Create Custom Tool, import https://x402serps.com/openapi.json, set Authorization to API Key, Header Authorization, Auth Type Bearer, value xs_YOUR_KEY.
Pay per call with x402 instead: tool calls without a trial header or key return the x402 payment requirements, which an x402-aware client can pay in USDC on Base or Solana. Search is $0.004 a call. Buy a credit key on the pricing page.
Pricing · Docs · MCP · Integrations · Help