x402 scraper for LangChain
io.github.ihen404/x402-scraper
Autonomous HTTP 402 Web Scraping Mesh on Base for $0.02 USDC.
client:LangChain
transport:streamable-http
Install x402 scraper in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"x402-scraper": {
"transport": "streamable_http",
"url": "https://your-domain.com/mcp.json",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs