open-index/open-npm huggingface dataset:
npm package: @fewsats/fewsats-mcp
Description: MCP server for interacting with Fewsats
Author: Fewsats
Latest version: 0.6.13

# Fewsats MCP Server

MCP Server for the [Fewsats API](https://github.com/), enabling Claude (or another client) to interact with Fewsats functionalities.

## Tools

The MCP exposes the following tools from the [Fewsats SDK](https://github.com/Fewsats/fewsats-ts).

1. `fewsats_pay_offer`
   - Pay for an offer using the Fewsats API.
   - **Required inputs:**
     - `offer_id` (string): The offer identifier.
     - `l402_offers` (object): L402 offers details.
   - **Returns:** Payment response with status and additional payment details.

2. `fewsats_get_payment_info`
   - Retrieve payment information using the Fewsats API.
   - **Required inputs:**
     - `pid` (string): The payment identifier.
   - **Returns:** Payment details including status and timestamps.

## Setup

1. Create a Fewsats account [here](https://app.fewsats.com/)
2. Generate a new API Key
3. Set the environment variable `FEWSATS_API_KEY` with your Fewsats API key.

## Usage with Claude

To integrate with Claude Desktop, add the following configuration to your `claude_desktop_config.json`:

#### npx
```json
{
  "mcpServers": {
    "fewsats": {
      "command": "npx",
      "args": ["fewsats/fewsats-mcp"],
      "env": {
        "FEWSATS_API_KEY": "your-fewsats-api-key"
      }
    }
  }
}
```

#### docker

```json
{
  "mcpServers": {
    "fewsats": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e", "FEWSATS_API_KEY",
        "mcp/fewsats"
      ],
      "env": {
        "FEWSATS_API_KEY": "your-fewsats-api-key"
      }
    }
  }
}
```

## Build

Build the project with:
```bash
docker build -t mcp/fewsats -f Dockerfile .
```

## License

This MCP server is licensed under the MIT License. You are free to use, modify, and distribute the software under the terms of the MIT License.