Skip to main content

warppay402-mcp

LangChain and CrewAI native BaseTool wrappers for WarpPay402 x402 micropayment APIs.

Overview

This package provides a toolkit of agent-ready tools for on-chain analytics, web extraction, automation, and DeFi actions. The tools are implemented in warppay402_mcp.tools and use the WarpPay402 API endpoints under https://api.warppay402.com/api/v1/tools.

Accepted payment options

The WarpPay402 server accepts the following payment methods for tool usage:

  • Base USDC
  • Arbitrum One USDC
  • Solana USDC
  • Arc USDC

Installation

pip install warppay402-mcp

If you want to run the LangChain/OpenAI example below, install the optional integration package:

pip install langchain-openai

Available tools

The package currently includes these tools:

Tool Server capability Typical call signature
ArcDexOracleTool Arc DEX spot price & liquidity oracle run(pair="ETH/USDC")
WebScraperTool Public webpage to Markdown extraction run(url)
BrowserScraperTool JS-rendered page scraping via browser run(url)
BaseAnalyticsTool Wallet balance / nonce / account stats on Base run(address)
ArcAnalyticsTool Arc network block / gas / latency telemetry run()
ArcNetworkQueryTool Pre-flight Arc node + gas + merchant checks run(includeGasTrends=True, checkMerchantAccount=True)
PdfExtractorTool Public PDF text extraction run(pdfUrl)
RenderScreenshotTool Full-page screenshot capture run(url)
ExtractJsonTool Schema-driven JSON extraction from HTML run(url, schema=None)
SmartContractVerifierTool Contract source / ABI / proxy verification run(address)
AerodromeYieldsTool Top yield pools and APY data run()
AerodromeSwapTool Aerodrome router token swap execution run(tokenIn, tokenOut, amountIn, decimalsIn, isStable)
AerodromeClammTool Constrained liquidity range actions run(action, token0=None, token1=None, tickLower=None, tickUpper=None, amount0Desired=None, amount1Desired=None, tokenId=None)
AerodromeVeaeroTool Lock / vote / claim AERO governance actions run(action, amount=None, lockDurationWeeks=None, tokenId=None, poolVoteAddresses=None)
DeployBaseContractTool Deploy contracts on Base run(contractType="escrow")
DeploySolanaContractTool Deploy Solana contracts / vaults run(contractType, params)
DeployArcContractTool Deploy contracts on Arc run(contractType="escrow")
ArcCctpBridgeTool Cross-chain USDC bridge via CCTP run(amountUsdc, destinationChain, recipientAddress)
PublicDataFeedTool Signed public data feed retrieval run(filename)
DataFeedsTool Market / yield feed retrieval run(feedId)
RealEstateCalculatorTool Real estate Cap Rate, NOI, and DSCR calculator run(purchasePrice, monthlyRent)
AddressNormalizerTool Address geocoding & lat/lon resolution run(address)
WeatherOracleTool Atmospheric weather & drone flight safety oracle run(latitude, longitude)
ForexOracleTool Global foreign exchange fiat spot rates run(baseCurrency="USD")
ShippingRateEstimatorTool Domestic USPS parcel shipping rate estimator run(weightLbs, originZip, destinationZip)
GithubHealthAnalyzerTool GitHub repository stars, issues & license inspector run(repository)
PropertyCompsEstimatorTool Property valuations & tax assessor comps run(squareFeet, bedrooms, zipCode)

This table is meant to make it easy for developers to point agents at the right server capability and to understand the expected inputs before invoking a tool.

Quickstart

Direct tool usage

from warppay402_mcp.tools import ArcDexOracleTool, AerodromeYieldsTool, WebScraperTool

oracle = ArcDexOracleTool()
print(oracle.run("ETH/USDC"))

yields_tool = AerodromeYieldsTool()
print(yields_tool.run())

scraper = WebScraperTool()
print(scraper.run("https://example.com"))

LangChain agent usage

from langchain.agents import AgentType, initialize_agent
from langchain_openai import ChatOpenAI

from warppay402_mcp.tools import ArcDexOracleTool

llm = ChatOpenAI(model="gpt-4o-mini")
tools = [ArcDexOracleTool()]

agent = initialize_agent(
    tools=tools,
    llm=llm,
    agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION,
)

result = agent.invoke("What is the current ETH/USDC spot price?")
print(result)

Example tool details

ArcDexOracleTool

  • Name: arc_dex_oracle
  • Description: Real-time ETH/USDC spot price resolver and DEX liquidity oracle for Arc Mainnet ($0.001 USDC).
  • Default pair: ETH/USDC
from warppay402_mcp.tools import ArcDexOracleTool

tool = ArcDexOracleTool()
print(tool.run("ETH/USDC"))

AerodromeYieldsTool

  • Name: get_aerodrome_yields
  • Description: Fetches top live Aerodrome DEX yield pools, APYs, and TVL on Base Mainnet ($0.003 USDC).
from warppay402_mcp.tools import AerodromeYieldsTool

tool = AerodromeYieldsTool()
print(tool.run())

Notes

  • The package exports ArcDexOracleTool at the package root, but the full tool set is defined in warppay402_mcp.tools.
  • Many tools accept simple Python arguments and return raw API response text as a string.
  • This project depends on requests and langchain-core as configured in the package metadata.
  • langchain-openai is required only for the ChatOpenAI example.

Release files for warppay402-mcp 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for warppay402-mcp 1.2.0
File Size Uploaded
warppay402_mcp-1.2.0.tar.gz 9.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for warppay402-mcp 1.2.0
File Interpreter ABI Platform
warppay402_mcp-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.1 kB

Release files / warppay402_mcp-1.2.0.tar.gz

Download URL warppay402_mcp-1.2.0.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ecef0ebb450980c796a955dd5e1d7f72ebce6940f0761c1dbd80c57dde16ac3d
BLAKE2b-256 checksum
How to use checksums
0d9c9e955f557ceecbabe1be630a3e3fe5044a89651b588f1854ea7fe3a8e0a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / warppay402_mcp-1.2.0-py3-none-any.whl

Download URL warppay402_mcp-1.2.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
953cc635c78768f4950d3f5596dbbc08827fbc547a3592a5ca72babced39c1eb
BLAKE2b-256 checksum
How to use checksums
254dfc0c7325838f25cc6d2444831e1de2857811513b4fbf71b32054783a1c85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

1.2.1

2 release files

This release

1.2.0 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page