finance

Fewsats

by fewsats

Fewsats integrates secure L402 transactions, enabling wallet balance checks, payment options, and seamless purchases via

Integrates with the Fewsats payment platform to enable secure financial transactions through L402 protocol, allowing wallet balance checks, payment method retrieval, and autonomous purchasing capabilities.

github stars

21

L402 protocol integrationAutonomous AI purchasing

best for

  • / AI agents needing payment capabilities
  • / Automated financial transactions
  • / L402 protocol implementations

capabilities

  • / Check wallet balance
  • / Retrieve payment methods
  • / Process L402 payments
  • / Track payment status
  • / Make autonomous purchases

what it does

Enables AI agents to make secure payments through the Fewsats platform using L402 protocol. Provides wallet management and autonomous purchasing capabilities.

about

Fewsats is an official MCP server published by fewsats that provides AI assistants with tools and capabilities via the Model Context Protocol. Fewsats integrates secure L402 transactions, enabling wallet balance checks, payment options, and seamless purchases via It is categorized under finance.

how to install

You can install Fewsats in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

Fewsats is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

fewsats-mcp: A Fewsats MCP Server

Overview

This MCP server integrates with Fewsats and allows AI Agents to purchase anything in a secure way.

MCP is

Tools

  1. balance

    • Retrieve the balance of the user's wallet
    • Input: None
    • Returns: Current wallet balance information
  2. payment_methods

    • Retrieve the user's payment methods
    • Input: None
    • Returns: List of available payment methods
  3. pay_offer

    • Pays an offer with the specified ID from the l402_offers
    • Input:
      • offer_id (string): String identifier for the offer
      • l402_offer (object): Offer details containing:
        • offers: Array of offer objects with ID, amount, currency, description, title
        • payment_context_token: Payment context token string
        • payment_request_url: URL for payment request
        • version: API version string
    • Returns: Payment status response
  4. payment_info

    • Retrieve the details of a payment
    • Input:
      • pid (string): Payment ID to retrieve information for
    • Returns: Detailed payment information

Installation

Using uv (recommended)

When using uv no specific installation is needed. We will use uvx to directly run fewsats-mcp.

uvx fewsats-mcp

Using PIP

Alternatively you can install fewsats-mcp via pip:

pip install fewsats-mcp

After installation, you can run it as a script using:

fewsats-mcp

Configuration

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

Important: Replace YOUR_FEWSATS_API_KEY with the API key you obtained from Fewsats.com.

<details> <summary>Using uvx</summary>
"mcpServers": {
  "Fewsats Server": {
    "command": "uvx",
    "args": ["fewsats-mcp"],
    "env": {
      "FEWSATS_API_KEY": "YOUR_FEWSATS_API_KEY"
    }
  }
}
</details>