Pyfile LLM & Data API

io.github.pyfile-toolkit由 GitHub 账号 pyfile-toolkit 发布v1.0.0更新于 Oct 25, 2026

Pay-per-call LLM chat plus data tools: DNS, crypto, Base gas, Wikipedia. x402 USDC or Lightning.

已验证Streamable HTTP可网页运行网页搜索与抓取安全与监控AI 与机器学习

概览

AI 生成的概览

远程 MCP 服务器,提供按次付费的 LLM 对话,以及 DNS、加密货币价格、Base gas、维基百科、制裁名单和 FDA 记录等数据查询。

可以做什么
向 LLM 提问并获得文本补全,还可生成结合实时市场事实与 LLM 撰写的综合分析简报(需 Bearer 密钥)。查询网络与市场数据:DNS 记录、当前加密货币价格、Base L2 gas 价格和维基百科摘要。抓取公开网页并返回去除导航广告后的正文 Markdown,供 RAG 与智能体流程使用。筛查交易对手:OFAC SDN 制裁名单搜索、FDA 药品不良事件、召回与药品标签,以及整合 OFAC、GLEIF LEI 与 SEC EDGAR 的 KYB 尽职调查(需 Bearer 密钥)。一次调用完成域名或公司信息丰富化,汇总 DNS、证书透明度、LEI、制裁与网页快照并给出风险摘要(需 Bearer 密钥)。
适用场景
当你希望通过一个远程端点同时获得快速 LLM 补全和轻量公共数据查询(如 DNS、加密货币价格、制裁筛查或 FDA 记录),而不想自建后端时适用。综合简报、KYB 与信息丰富化工具适合尽职调查和分析类工作流。
运行要求
远程 streamable HTTP 端点,无需本地安装。brief、kyb_screening 和 enrich 工具需要 Bearer 密钥。README 说明通过 Lightning(L402)按次付费,每次请求返回发票;注册表描述提到 x402 USDC 或 Lightning 支付。需要网络访问。
安装前请注意
请求按次计费,使用会产生费用;README 列出每次请求的 sats 价格。部分工具需要提供 Bearer 密钥。查询内容和抓取的网页内容会发送到第三方服务器,LLM 回答经由外部模型后端代理。筛查与信息丰富化结果仅供参考,不应作为合规决定依据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Pyfile LLM & Data API,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.pyfile-toolkit%2Fpyfile-llm/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "pyfile-llm-data-api": {
      "type": "http",
      "url": "https://pyfile-agent.taile3ff35.ts.net:8443/mcp"
    }
  }
}

README

l402-llm-mcp

Pay-per-query LLM access over Lightning (L402), exposed as an MCP server.

Website: pyfile-toolkit.github.io — overview, pricing and discovery across x402, Lightning (L402) and Nano.

What it is

A single Node.js server that serves two things:

  • MCP endpoint POST /mcp (streamable HTTP, tool: chat)
  • OpenAI-compatible POST /v1/chat/completions

Payment is enforced by the L402 protocol: every request returns a Lightning invoice (10 sats short, 50 sats long). Models are proxied to a free LLM backend (gemini-3.6-flash, gpt-oss-120b).

Endpoints

PathMethodPriceDescription
/mcpPOST10 satsMCP streamable-HTTP, tool chat
/v1/chat/completionsPOST10-50 satsOpenAI-compatible chat
/v1/modelsGETfreemodel list
/.well-known/l402.jsonGETfreeL402 manifest

Run

bash
export LNBOT_API_KEY=... WALLET_ID=...node server.js

Discovery

Listed in the 402 Index and 402.pub (Nostr kind 31402).

来源:README.md,提交 c07233c

工具

13

chat

Ask an LLM a question. Returns a text completion.

输入参数modelprompt必填

dns_lookup

Resolve a DNS record (A, AAAA, MX, TXT, NS).

输入参数name必填type

crypto_price

Current USD prices for one or more coins (CoinGecko ids, comma-separated).

输入参数ids

base_gas

Current Base L2 gas price in wei and gwei.

无需输入参数。

wikipedia_summary

Short summary of a Wikipedia article by title.

输入参数title必填

brief

Composite analyst brief: gathers live market facts (crypto prices, DeFi yields, Base block height) and returns an LLM-written brief with headline, key points, and a take. Requires a Bearer key.

输入参数focustopic

web_read

Fetch any public web page and return its main readable content as clean Markdown (nav/ads stripped) for RAG and agent pipelines.

输入参数url必填max_chars

fda_lookup

US FDA open data: drug adverse events, drug/food/device recalls, drug labels.

输入参数qkindlimit

kyb_screening

Composite counterparty due-diligence: OFAC SDN sanctions screening + GLEIF LEI + SEC EDGAR in one call. Requires a Bearer key.

输入参数name必填

enrich

One-call domain/company enrichment: DNS A records + certificate transparency names + GLEIF LEI + OFAC SDN + web snapshot, with an aggregate risk_summary. Requires a Bearer key.

输入参数namedomain

fair_draw

Provably-fair random integer from a committed seed (commit-reveal). Use for verifiable winner selection, raffles and allocations. Reveal the seed afterwards so anyone can reproduce the result.

输入参数maxminnonceroundclient_seed

fair_pick

Provably-fair selection of one winner from a list of candidates. For bounties with a single prize.

输入参数nonceroundcandidates必填client_seed

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。