x402search-mcp (Python)
Search 13,000+ x402-enabled HTTP APIs from Python AI agents.
Cost: $0.01 USDC per search. Base mainnet. No account needed. npm: https://www.npmjs.com/package/x402search-mcp API: https://x402search.xyz
Install
pip install x402search-mcp
Requirements
- Node.js v18+ (https://nodejs.org)
- A wallet private key (EVM)
- USDC on Base mainnet (eip155:8453)
- Get USDC: https://www.coinbase.com/how-to-buy/usdc
Quick Start
import os
from x402search import search_x402_apis
os.environ["EVM_PRIVATE_KEY"] = "0xYOUR_PRIVATE_KEY_HERE"
results = search_x402_apis("token price API ethereum")
for r in results["results"]:
print(r["url"], "-", r["description"])
LangChain
from langchain.tools import tool
from x402search import search_x402_apis
@tool
def search_apis(query: str) -> str:
results = search_x402_apis(query)
return str(results["results"])
CrewAI
from crewai.tools import BaseTool
from x402search import search_x402_apis
class X402SearchTool(BaseTool):
name: str = "x402_api_search"
description: str = "Search 13,000+ x402-enabled HTTP APIs."
def _run(self, query: str) -> str:
return str(search_x402_apis(query)["results"])
Virtuals GAME SDK
from game_sdk.game.custom_types import Function, Argument, FunctionResultStatus
from x402search import search_x402_apis
def search_apis_fn(query: str) -> tuple:
try:
results = search_x402_apis(query)
return FunctionResultStatus.DONE, str(results["results"]), {}
except Exception as e:
return FunctionResultStatus.FAILED, str(e), {}
search_tool = Function(
fn_name="search_x402_apis",
fn_description="Search 13,000+ x402-enabled HTTP APIs.",
args=[Argument(name="query", type="string", description="Search query")],
executable=search_apis_fn,
)
Parameters
- query (str, required): e.g. "weather data", "crypto prices"
- private_key (str, optional): EVM private key. Defaults to EVM_PRIVATE_KEY env var
- network (str, optional): e.g. "eip155:8453" for Base mainnet
- max_price_usdc (float, optional): max price filter in USDC
- limit (int, optional): max results, default 10, max 50
Links
- PyPI: https://pypi.org/project/x402search-mcp
- npm: https://www.npmjs.com/package/x402search-mcp
- API: https://x402search.xyz
- GitHub: https://github.com/x402-index/x402search-mcp
- x402 protocol: https://x402.org
Metadata
Release files for x402search-mcp 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| x402search_mcp-1.0.3.tar.gz | 5.0 kB | Without provenance | Details for x402search_mcp-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| x402search_mcp-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for x402search_mcp-1.0.3-py3-none-any.whl |
Total release size: 10.7 kB
Release files / x402search_mcp-1.0.3.tar.gz
| Download URL | x402search_mcp-1.0.3.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5230944c231caeee5ae05c315839653982898c4120df71ae0ec24c7960d7f4c5
|
|
BLAKE2b-256 checksum How to use checksums |
beb2607c761196e11268246ac88800d1f4790162ac668011c081c5b96580bf39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / x402search_mcp-1.0.3-py3-none-any.whl
| Download URL | x402search_mcp-1.0.3-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c00d26319da4b7e049b449101472f37089a629858425236306da84c8398caabf
|
|
BLAKE2b-256 checksum How to use checksums |
e73d80d516a5737b0968365a8377e409c88acaaeb08621b9a8b613042c086336
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for x402search-mcp 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.