AgentBridge

by tianzizhiming-svg

Not rated
GitHub

About

A specialized gateway for AI agents to fetch and parse Chinese web content into clean Markdown. Pay-per-fetch via x402.

Details

Author
tianzizhiming-svg
Categories
Search, Other, AI

Setup

Install AgentBridge in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/tianzizhiming-svg/agentbridge

Follow the installation instructions in the repository README, then restart your MCP client.

AgentBridge Atlas - x402 M2M Micro-Payment Market

AI Agent 链上签名支付 0.005 USDC,后端验证结算,国家统计局 GDP 数据交付完成。M2M (Machine to Machine) 微支付商业闭环已落地跑通。

1. Agent calls POST /v1/api/industry (no payment header) 2. Server returns 402 Payment Required (x402 v2 challenge) - x402Version: 2 - paymentRequirements: {scheme, network, asset, payTo, maxAmountRequired, ...} 3. Agent signs EIP-3009 TransferWithAuthorization (no gas needed) 4. Agent retries with X-Payment header 5. Server verifies signature → settles on-chain → returns 200 + data 6. On-chain: 0.005 USDC transferred to wallet

- Transaction Hash:0xef8d49e88cb58651e9bf30465597b50863dcc363f6e1f227779292149818ae28
- Method: Transfer With Authorization (EIP-3009, gasless)
- Amount: 0.005 USDC
- Block: #49848412
- Token: USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)
- From:0xc4217BD72b4dea480ed4879fcec530d92637C800
- Recipient:0x1630c8E0833c367F39f0ca909b6b67f5159d7A00
- Scheme: EIP-3009 (gasless transfer authorization)

Transaction: https://basescan.org/tx/0xef8d49e88cb58651e9bf30465597b50863dcc363f6e1f227779292149818ae28 Wallet: https://basescan.org/address/0x1630c8E0833c367F39f0ca909b6b67f5159d7A00

MCP Server provides 8 tools for AI agents:

- discover_capabilities- List all API endpoints
- discover_china_data_apis- List China Data APIs with pricing
- get_capability_info- Get details for specific capability
- get_payment_instructions- Step-by-step x402 payment guide

- query_industry_statistics($0.005) - NBS statistics
- search_china_policies($0.005) - Government policy search
- query_company_credit($0.003) - Enterprise credit info

- purchase_capability- Initiate x402 payment for any endpoint

# 1. Discover the API (free) curl https://api.060504.shop/health curl https://api.060504.shop/openapi.json curl https://api.060504.shop/llms.txt # 2. Trigger 402 payment challenge curl -X POST https://api.060504.shop/v1/api/industry \ -H "Content-Type: application/json" \ -d '{"keyword":"GDP"}' # Returns 402 with x402 payment requirements # 3. Sign EIP-3009 and retry with payment # See examples/agent_client.py for full implementation
# See examples/agent_client.py for complete x402 payment client python examples/agent_client.py
AI Agent / User │ ├── GitHub Pages (frontend catalog) │ └── API Server (api.060504.shop) │ ├── China Data APIs (3 endpoints) ├── x402 Payment (USDC on Base, EIP-3009) └── MCP Server (8 tools)

- Backend: FastAPI + Uvicorn (Python)
- Service: Windows NSSM (NETWORK SERVICE account)
- Payment: x402 v2 protocol, USDC on Base
- MCP: Model Context Protocol (SSE & stdio)
- Frontend: GitHub Pages
- Data: Chinese government public platforms

We document the engineering journey of building AgentBridge, exploring x402, MCP, and autonomous M2M commerce.

🚀 Building an Autonomous M2M Payment Loop: AI Agents Paying for Data via x402)

🌉 AgentBridge: The Data Bridge Between China’s Public Information and Global AI Agents

🛡️ How AI Agents Can Legally Access Chinese Public Data: A Technical Deep Dive

- v1.0 (2026-08-07): Initial deployment, 76 assets
- v2.0 (2026-08-16): 5 new guides, cleanup, 94 assets
- v3.0 (2026-08-16): China Data APIs + MCP Server, 96 assets
- v3.1 (2026-08-17): x402 end-to-end payment verified, 0.005 USDC settled

Commercial. All data sourced from public government platforms.

- API:https://api.060504.shop
- Frontend:
https://tianzizhiming-svg.github.io/agentbridge/
- GitHub:
https://github.com/tianzizhiming-svg/agentbridge
- MCP Card:
https://api.060504.shop/.well-known/mcp/server-card.json

The data provided by this API is sourced from public macroeconomic and educational statistics. We do not host or own the data. Users are responsible for complying with their local data usage regulations.

Search global news using natural language. Webz.io News Search API returns the most relevant articles and content, with filters for source, country, language, date, sentiment, and category.

Official Tavily MCP server for AI search and content extraction, giving MCP clients web search, crawl, and extract tools.

Lightning-Fast, High-Accuracy Deep Research Agent 👉 8–10x faster 👉 Greater depth & accuracy 👉 Unlimited parallel runs

An MCP server that connects to Perplexity's Sonar API, enabling real-time web-wide research in conversational AI.

AI search visibility audit with dual scores and generated fix code

AI-powered news intelligence — 21 tools for personalized monitoring, briefings, and semantic search

Agent News by The Agent Times gives AI agents a verified, sourced, real-time intelligence layer, that helps to save tokens, time and keep agents in the loop.

Google for AI agents — live search across 25,000+ scored MCP servers, updated daily

DuckDuckGo web search + URL fetcher for AI agents. No API key needed for free tier (7 req/IP/day), Pro tier unlimited with API key.

Search and extract information about research papers from arXiv.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.