Skip to main content
Glama
Fewsats MCP Server

Fewsats MCP Server

Official
by Fewsats

fewsats-mcp: Fewsats MCP 서버

개요

이 MCP 서버는 Fewsats 와 통합되어 AI 에이전트가 안전하게 무엇이든 구매할 수 있도록 합니다.

MCP는

도구

  1. balance

    • 사용자 지갑 잔액을 검색합니다

    • 입력: 없음

    • 반환: 현재 지갑 잔액 정보

  2. payment_methods

    • 사용자의 결제 방법을 검색합니다

    • 입력: 없음

    • 반환: 사용 가능한 결제 방법 목록

  3. pay_offer

    • l402_offers에서 지정된 ID로 제안을 지불합니다.

    • 입력:

      • offer_id (문자열): 제안에 대한 문자열 식별자

      • l402_offer (객체): 다음을 포함하는 제안 세부 정보:

        • offers : ID, 금액, 통화, 설명, 제목이 포함된 offer 객체 배열

        • payment_context_token : 결제 컨텍스트 토큰 문자열

        • payment_request_url : 결제 요청 URL

        • version : API 버전 문자열

    • 반환: 결제 상태 응답

  4. payment_info

    • 결제 세부 정보 검색

    • 입력:

      • pid (문자열): 정보를 검색할 결제 ID

    • 반품: 자세한 결제 정보

Related MCP server: satsrail-mcp

설치

uv 사용(권장)

uv 사용하면 별도의 설치가 필요하지 않습니다. uvx 사용하여 fewsats-mcp를 직접 실행하겠습니다.

지엑스피1

PIP 사용

또는 pip를 통해 fewsats-mcp 설치할 수 있습니다.

pip install fewsats-mcp

설치 후 다음을 사용하여 스크립트로 실행할 수 있습니다.

fewsats-mcp

구성

Claude Desktop과 함께 사용

claude_desktop_config.json 에 다음을 추가하세요:

중요 : YOUR_FEWSATS_API_KEY Fewsats.com 에서 얻은 API 키로 바꾸세요.

"mcpServers": {
  "Fewsats Server": {
    "command": "uvx",
    "args": ["fewsats-mcp"],
    "env": {
      "FEWSATS_API_KEY": "YOUR_FEWSATS_API_KEY"
    }
  }
}

Available Tools

6 tools
balanceA

Retrieve the balance of the user's wallet. You will rarely need to call this unless instructed by the user, or to troubleshoot payment issues. Fewsats will automatically add balance when needed.

Inputs: no named parameters.

billing_infoA

Retrieve the user's billing information. Returns billing details including name, address, and other relevant information. This information can also be used as shipping address for purchases.

Inputs: no named parameters.

create_x402_payment_headerB
Creates a payment header for the X402 protocol.

The chain is base-sepolia or base
The x402 payload must be a dict with this structure:
{
    "accepts": [
        {
            "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
            "description": "Payment for GET https://proxy402.com/7Yhuf2O3zs",
            "extra": {
                "name": "USDC",
                "version": "2"
            },
            "maxAmountRequired": "10",
            "maxTimeoutSeconds": 300,
            "mimeType": "",
            "network": "base-sepolia",
            "payTo": "0xbA5Ae80f48E0C74878c1a362D69c27c2135Aa594",
            "resource": "https://proxy402.com/7Yhuf2O3zs",
            "scheme": "exact"
        }
    ],
    "error": "X-PAYMENT header is required",
    "x402Version": 1
}

Returns a dict with the payment_header field that must be set in X-PAYMENT header in a x402 http request.

Inputs: chain (required), x402_payload (required).

payment_infoB

Retrieve the details of a payment. If payment status is needs_review inform the user he will have to approve it at app.fewsats.com

Inputs: pid (required).

payment_methodsA

Retrieve the user's payment methods. You will rarely need to call this unless instructed by the user, or to troubleshoot payment issues. Fewsats will automatically select the best payment method.

Inputs: no named parameters.

pay_offerB

Pays an offer_id from the l402_offers.

The l402_offer parameter must be a dict with this structure:
{
    'offers': [
        {
            'id': 'test_offer_2',        # String identifier for the offer
            'amount': 1,                 # Numeric cost value
            'currency': 'usd',           # Currency code
            'description': 'Test offer', # Text description
            'title': 'Test Package'      # Title of the package
        }
    ],
    'payment_context_token': '60a8e027-8b8b-4ccf-b2b9-380ed0930283',  # Payment context token
    'payment_request_url': 'https://api.fewsats.com/v0/l402/payment-request',  # Payment URL
    'version': '0.2.2'  # API version
}

Returns payment status response.
If payment status is `needs_review` inform the user he will have to approve it at app.fewsats.com

Inputs: offer_id (required), l402_offer (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 6 tools

    Disambiguation4/5

    Most tools have distinct purposes: balance, billing_info, payment_info, and payment_methods are clearly differentiated for wallet, billing, payment details, and payment methods respectively. However, create_x402_payment_header and pay_offer both involve payment processing and could be slightly confusing, as they target different protocols (X402 vs L402) but share overlapping payment-related functionality.

    Naming Consistency4/5

    The naming follows a consistent snake_case pattern throughout (e.g., billing_info, payment_methods). However, there is a minor inconsistency with create_x402_payment_header using a more descriptive prefix (create_x402_) while others are simpler nouns or verb_noun combos, slightly deviating from a uniform style.

    Tool Count5/5

    With 6 tools, the count is well-scoped for a payment and wallet management server. Each tool serves a specific function without redundancy, covering key areas like balance, billing, payments, and payment methods, making it efficient and manageable.

    Completeness4/5

    The tool set covers core payment and wallet operations well, including balance retrieval, billing info, payment details, payment methods, and payment execution for different protocols. A minor gap exists in lacking tools for updating or deleting payment methods or billing info, but agents can likely work around this with the provided tools.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      An MCP server that enables AI agents to accept Bitcoin Lightning payments. It allows agents to create orders, generate invoices, check payment status, and manage the full SatsRail merchant API through natural language.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables AI agents to send and receive Bitcoin over the Lightning Network using NWC or LND backends.
      MIT