fewsats mcp

Local 2025-08-31 23:54:14 0

An MCP server that integrates with Fewsats allowing AI agents to securely purchase anything by retrieving balances, accessing payment methods, and processing payments.


Overview

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

MCP is

Tools

  1. balance
  2. Retrieve the balance of the user's wallet
  3. Input: None
  4. Returns: Current wallet balance information

  5. payment_methods

  6. Retrieve the user's payment methods
  7. Input: None
  8. Returns: List of available payment methods

  9. pay_offer

  10. Pays an offer with the specified ID from the l402_offers
  11. 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
  12. Returns: Payment status response

  13. payment_info

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

Installation

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.

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