Token导航 LogoToken导航TokenDH.com
Paidmcp Boilerplate logo
金融服务未说明官方来源来源级核验

Paidmcp Boilerplate

MCP Server

一个使用PaidMCP和官方MCP TypeScript SDK的付费MCP服务器,支持通过闪电网络进行小额支付获取天气信息和食品配送服务。

工具数

0

提示词数

0

GitHub Stars

4

资源数

0
TypeScriptClaude位置天气Claude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

getAlby

提供方

getAlby

最后核验

2026/5/17 20:23

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

Boilerplate付费MCP服务器

此MCP服务器设计用于与 Alby比特币支付MCP服务器 或者另一个可以进行闪电支付的MCP服务器。

工具

此样板MCP服务器有3个工具:

  • get_weather 是一种付费工具,用于获取特定城市的天气信息
  • get_food_delivery_menu 是一个免费工具,可以退还可以购买的食品
  • order_food_delivery 从菜单中订购一个或多个项目

例子

1.天气

惠灵顿的天气怎么样?
I'll get the current weather information for Wellington for you.
─── get_weather | weather ──────────────────────────
city: Wellington

It looks like this weather service requires a small Lightning payment to access the data. I can help you pay this invoice using your connected Lightning wallet if you'd like to proceed.

The invoice is for 21 sats to get weather data for Wellington. Let me pay this invoice and then get your weather information.
─── pay_invoice | alby-http ──────────────────────────
invoice: ...

◇  Goose would like to call the above tool, do you allow?
│  Allow
│

Great! Payment successful. Now let me get the weather information for Wellington using the payment hash.
─── get_weather | weather ──────────────────────────
city: Wellington
payment_hash: ...

## Weather in Wellington

The current temperature in Wellington is **14.2°C** (about 57.6°F).

*This weather data was obtained via a Lightning micropayment of 21 sats.*

2.食品配送

给我订两个披萨
The user wants to order 2 pizzas. Looking at the environment details, I can see this is a boilerplate MCP project with food delivery functionality. I can see there are food delivery tools available:

food_delivery_menu.ts
food_delivery_order.ts
I also notice there's a boilerplate_paid_mcp MCP server connected that has food delivery tools available:

food_delivery_menu: Shows the food delivery menu items available for purchase
food_delivery_order: Order food delivery of one or more items
To order pizzas, I should:

First check the menu to see what pizza options are available
Then place an order for 2 pizzas
Let me start by checking the menu to see what's available.

I'll help you order 2 pizzas. Let me first check the food delivery menu to see what pizza options are available.

─── boilerplate_paid_mcp | get_food_delivery_menu ──────────────────────────

{}

Perfect! I can see there's Pizza available on the menu for 21 sats each. Now I'll place an order for 2 pizzas.

─── boilerplate_paid_mcp | order_food_delivery ──────────────────────────

Order food delivery of one or more items
{
  "menu_items": [
    {
      "title": "Pizza"
    },
    {
      "title": "Pizza"
    }
  ]
}

The food delivery service requires payment before completing the order. I need to pay the lightning invoice first. Let me pay the invoice for 42 sats (21 sats × 2 pizzas) using the Alby MCP server.

─── alby_mcp | pay_invoice ──────────────────────────

{
  "invoice": "lnbc420n1p58vggudpyfaexgetjypnx7u3q2p5h57np9ss9q6t60fssnp4q228a2ztxkwzaypvzrsh823qngmv97f2v9puwvtsadetypmutyscwpp53jg4mzq70r7gj75wu0scphy3h46df8t9ehjfs5ae4w4wfm93fwgssp5a4pus38dey8e5mqw0y6cyn6gce9w3yq2gpn52cha636fzll29xrq9qyysgqcqpcxqyz5vqlg4ess44vklv7a3tsl59tuh29jz6g55dp5hg0dwnsfhg47p4g02nyzmlaawul8mscspgqkz00radh94kk7m0nn3a84x22yhree8s42qqe95prr"
}

Great! The payment was successful with no fees. Now I'll complete the pizza order by providing the payment hash.

─── boilerplate_paid_mcp | order_food_delivery ──────────────────────────

{
  "menu_items": [
    {
      "title": "Pizza"
    },
    {
      "title": "Pizza"
    }
  ],
  "payment_hash": "8c915d881e78fc897a8ee3e180dc91bd74d49d65cde49853b9abaae4ecb14b91"
}

Task Completed
Your order for 2 pizzas has been successfully placed!

Order details:

Order ID: 21
Items: 2 × Pizza
Total cost: 42 sats (21 sats per pizza)
Payment: Completed successfully with 0 fees
Your pizzas are now being prepared for delivery.

开始

  1. 按照以下本地开发说明构建和检查MCP服务器
  2. 更换 工具 用你自己的
  3. 使用以下配置部署MCP服务器 fly launch

地方发展

先决条件

  • Node.js 20+
  • 纱线
  • 来自支持NWC的闪电钱包的连接字符串

安装

yarn install

添加您的NWC连接

复制 .env.example.env 并更新您的NWC连接密钥。

还没有吗?结账 Alby Hub

在Roo代码中配置

添加到MCP服务器列表并更新 argsenv:

{
  "mcpServers": {
    "boilerplate_paid_mcp": {
      "command": "node",
      "args": ["/YOUR_PATH_TO_REPOSITORY/boilerplate-paid-mcp/build/index.js"],
      "env": {
        "NWC_CONNECTION_STRING": "nostr+walletconnect://..."
      },
      "disabled": false,
      "autoApprove": [],
      "alwaysAllow": [],
      "disabledTools": []
    }
  }
}
此外,建议安装 Alby MCP 测试付款。

建筑

yarn build

检查工具(在没有LLM的情况下使用/测试)

yarn inspect

故障排除

模型使用

请确保您使用的是一个体面的型号(例如Claude Sonnet 3.7),否则MCP服务器将无法工作。

联系Alby支持

访问 技术支持.getalby.com 我们很乐意帮助您使MCP服务器正常工作。

目录标签

目录标签

TypeScriptClaude位置天气MCP服务器本地部署闪电网络支付天气查询食品配送小额支付

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP