Pyfile LLM & Data API

io.github.pyfile-toolkitPublished by GitHub account pyfile-toolkitv1.0.0Updated Oct 25, 2026

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

VerifiedStreamable HTTPWeb executableWeb Search & ScrapingSecurity & MonitoringAI & ML

Overview

AI-generated overview

A remote MCP server offering pay-per-call LLM chat plus data lookups such as DNS, crypto prices, Base gas, Wikipedia, sanctions and FDA records.

What you can do
Ask an LLM a question and get a text completion, with a composite analyst brief built from live market facts and an LLM write-up (Bearer key required). Look up network and market data: DNS records, current crypto prices, Base L2 gas price, and Wikipedia summaries. Fetch a public web page and return its main content as clean Markdown for RAG and agent pipelines. Screen counterparties: OFAC SDN sanctions search, FDA drug adverse events, recalls and labels, and composite KYB due diligence combining OFAC, GLEIF LEI and SEC EDGAR (Bearer key required). Enrich a domain or company in one call with DNS, certificate transparency, LEI, sanctions and a web snapshot plus a risk summary (Bearer key). Run
When to use it
Use it when you want a single remote endpoint for quick LLM completions alongside lightweight public-data lookups such as DNS, crypto prices, sanctions screening or FDA records, without running your own backend. The composite brief, KYB and enrichment tools suit due-diligence and analyst-style workflows.
Requirements
A remote streamable HTTP endpoint; nothing to install locally. The brief, kyb_screening and enrich tools require a Bearer key. The README describes pay-per-query access over Lightning (L402) with per-request invoices, and the registry description mentions x402 USDC or Lightning payment. Network access is needed.
Before you install
Requests are paid per call, so usage spends money; the README lists per-request prices in sats. Some tools require a Bearer key that must be supplied. Queries and fetched page content are sent to a third-party server, and LLM answers are proxied to external model backends. Screening and enrichment results are informational and should not be treated as compliance decisions.

Installation

In SourceWeft

  1. Open Pyfile LLM & Data API in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.pyfile-toolkit%2Fpyfile-llm/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "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).

Source: README.md at commit c07233c

Tools

13

chat

Ask an LLM a question. Returns a text completion.

Parametersmodelpromptrequired

dns_lookup

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

Parametersnamerequiredtype

crypto_price

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

Parametersids

base_gas

Current Base L2 gas price in wei and gwei.

Takes no parameters.

wikipedia_summary

Short summary of a Wikipedia article by title.

Parameterstitlerequired

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.

Parametersfocustopic

web_read

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

Parametersurlrequiredmax_chars

fda_lookup

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

Parametersqkindlimit

kyb_screening

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

Parametersnamerequired

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.

Parametersnamedomain

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.

Parametersmaxminnonceroundclient_seed

fair_pick

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

Parametersnonceroundcandidatesrequiredclient_seed

Version history

1
  1. v1.0.0LatestSep 16, 2026

Score

90% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.