MS

merit-systems/x402scan-mcp

API development

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

5 stars 6 forks 품질 58 트렌드 6

자동 결제 처리로 x402-protected API를 호출하는 MCP 서버.

개요

자동 결제 처리로 x402-protected API를 호출하는 MCP 서버. - ~/Library/Application Support/Claude/claude desktop config.json (macOS) 또는 %APPDATA%\Claude\claude desktop config.json (Windows)에 추가하십시오: 첫 번째 실행에서 지갑은 ~/.x402scan-mcp/wallet.json에서 생성됩니다. 지불 된 API 호출을 만들기 전에 지갑 주소에 기본에 USDC. 1. check balance - 지갑을 확인하고 입금 주소를 얻으십시오. query endpoint - 가격/schema (선택 사항) 3. execute call - 지불 된 요청을 만드십시오 기초, 기초 Sepolia, Ethereum, Optimism, Arbitrum, Polygon (CAIP-2를 통해)

개요(AI 번역)

자동 결제 처리로 x402-protected API를 호출하는 MCP 서버.

설치

Claude 코드

코드

# # # 커서

Claude 데스크탑

수동 설치

** Codex** - ~/.codex/config.toml에 추가:

**현재 ** - .cursor/mcp.json에 추가:

Claude Desktop - ~/Library/Application Support/Claude/claude_desktop_config.json] (macOS) 또는 %APPDATA%\Claude\claude_desktop_config.json (Windows)에 추가:

사용법

첫 번째 실행에서 지갑은 ~/.x402scan-mcp/wallet.json]에서 생성됩니다. 지불 된 API 호출을 만들기 전에 지갑 주소에 기초에 USDC.

** 워크 플로우:**

  1. check_balance - 지갑을 확인하고 입금 주소를 얻으십시오.
  2. query_endpoint - 가격/schema (선택)를 위한 조사 엔드포인트
  3. execute_call - 유료 요청

도구 (4)

도구 설명
[T8] 지갑 주소 및 USDC 잔액
query_endpoint Probe x402 endpoint for price/schema (결제 없이)
validate_payment 결제가 성공할 경우 사전등록확인
[T11] x402 엔드포인트로 결제 가능

환경

변수 설명

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

x402scan-mcp

MCP server for calling x402-protected APIs with automatic payment handling.

Install

Claude Code

claude mcp add x402scan --scope user -- npx -y x402scan-mcp@latest

Codex

codex mcp add x402scan -- npx -y x402scan-mcp@latest

Cursor

Claude Desktop

Usage

On first run, a wallet is generated at ~/.x402scan-mcp/wallet.json. Deposit USDC on Base to the wallet address before making paid API calls.

Workflow:

  1. check_balance - Check wallet and get deposit address
  2. query_endpoint - Probe endpoint for pricing/schema (optional)
  3. execute_call - Make the paid request

Tools (4)

Tool Description
check_balance Get wallet address and USDC balance
query_endpoint Probe x402 endpoint for pricing/schema without payment
validate_payment Pre-flight check if payment would succeed
execute_call Make paid request to x402 endpoint

Environment

Variable Description
X402_PRIVATE_KEY Override wallet (optional)
X402_DEBUG Set to true for verbose logging

Supported Networks

Base, Base Sepolia, Ethereum, Optimism, Arbitrum, Polygon (via CAIP-2)

Develop

bun install

# Add local server to Claude Code
claude mcp add x402scan-dev -- bun run /path/to/x402scan-mcp/src/index.ts

# Build
bun run build

# Build .mcpb for Claude Desktop
bun run build:mcpb
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "x402scan": { "command": "/bin/bash", "args": ["-c", "source $HOME/.nvm/nvm.sh 2>/dev/null; exec npx -y x402scan-mcp@latest"] } } }