Freeport Nostr

io.github.ptrinh由 GitHub 帳號 ptrinh 發布v0.5.0更新於 Nov 4, 2026

Search Freeport Nostr events by kind, tag & geohash radius (rides, services, reputation).

已驗證Streamable HTTP可網頁執行金融溝通與協作商業與電商

概覽

AI 產生的概覽

在 Freeport 的 Nostr 市場搜尋交通、服務與商品意圖,查看信譽與個人資料,並可發布簽章的供給或需求。

可以做什麼
  • 依方向、類別或區域標籤以及可選的地理半徑搜尋 Freeport 意圖(供給與需求),結果會解碼、過濾過期項目,並在給定座標時依距離由近到遠排序
  • 查詢某個公鑰的信譽:karma 評分、成交收據、已證實成交數與 karma 摘要
  • 依 id 取得原始簽章事件,或作為備用手段執行任意 NIP-01 篩選條件
  • 讀取任意 Nostr 使用者的 NIP-01 個人資料中介資料,可選擇附上其最近的貼文
  • 以供給或需求形式發布 Freeport 意圖,可用提供的私鑰簽章,或提交預先簽章的事件
適用情境
適合讓助理在去中心化的 Freeport 市場尋找交易對象、透過信譽與資料進行篩選,或代使用者發布供給或需求。也適用於一般的 Nostr 事件與個人資料查詢。
執行需求
可使用託管的遠端端點,或在本地以 stdio 執行 npm 套件。可透過環境變數 FREEPORT_RELAYS 設定中繼 websocket 位址,否則使用預設的 Freeport 公開中繼集。未宣告需要身分驗證。發布意圖需要 Nostr 私鑰或預先簽章的事件。
安裝前請注意
發布需要把私鑰(nsec 或十六進位)傳給工具;伺服器本身建議使用專用的代理金鑰,絕不要用個人金鑰。發布的意圖是公開且已簽章的,無法撤回。信譽分數是主觀且未加權的,無法防範女巫攻擊,對零歷史身分應保持謹慎。該市場本身不提供退款或中心化客服。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Freeport Nostr,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.ptrinh%2Ffreeport-nostr/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "freeport-nostr": {
      "type": "http",
      "url": "https://nostr-mcp.trinh.uk/mcp"
    }
  }
}

README

Freeport

[CI] [License: MIT] [App Store] [Google Play] [Web app] [Protocol: Nostr]

Decentralized P2P marketplace over Nostr. Users broadcast trade intents into topic-scoped markets; personal agents discover counterpart intents and negotiate automatically. Humans confirm final deals. No central operator, no matching server — relays are dumb pub/sub, all logic is client-side.

Demo (2 minutes)

https://github.com/user-attachments/assets/506c82ac-c5eb-415d-b981-ba14c4f165bc

Also on the landing page.

Why Freeport exists

  • It's a research project. How far can pure P2P infrastructure go? Buyers, sellers, riders, drivers meet over Nostr, settle in Lightning or cash. Nothing in between needs permission to exist.
  • It's a thesis. A P2P marketplace with a reputation system works. When people own their reputation, the market self-regulates.
  • It's a check and balance. A zero-fee exit that answers to no one puts a ceiling on how greedy the big platforms can get.
  • It's fun. An open protocol, Claude Code as a pair programmer, no investor deck.
  • Nobody profits — including me. No operator, no cut. A protocol, not a platform. Run it or fork it.
  • No one will protect you here — that's the point, and the price. No support line, no refunds, no central authority. Your judgment comes first, backed by opt-in safeguards no operator runs: a reputation system (karma, co-signed receipts, web-of-trust), escrow arbitration (examples/arbitrator), ID verification (examples/id-verification), and insurance (examples/insurance-store) priced from reputation. You choose how much of the safety net to use.

What works today

  • Everywhere: iOS + Android app stores, web/PWA, desktop installers for macOS/Windows/Linux with self-update — plus a single-file offline copy: the whole app in one HTML file that runs from file://, no install, no server.
  • Wallet (experimental): built-in self-custodial Bitcoin Lightning + stablecoin (USDT/USDB) wallet (Breez SDK/Spark). Keys derive from your Nostr key — one backup covers identity and funds. Lightning address ([email protected]), on-chain, QR scan, local-currency balances, and one-tap Pay / Pay QR on confirmed deals. Bring your own wallet over NWC instead if you prefer. Spark is a young trust-minimized L2 — treat it as a spending wallet.
  • Reputation: peer-rated karma, co-signed deal receipts, proven-deal counts, web-of-trust weighting. Sybil resistance stays open — treat zero-history identities with caution.
  • Chat: invite-based 1:1 encrypted chat beyond deals — QR/link invites, replies, emoji reactions, disappearing messages, delivery/read receipts, voice messages, location sharing, in-chat search and Lightning payments. Between updated clients it upgrades to NIP-17 gift wrap, so relays can't even see who talks to whom.
  • Calls (experimental): peer-to-peer audio/video calls in chat (WebRTC, end-to-end encrypted, signaling over encrypted DMs — no call server), with screen sharing on web. Optional TURN fallback.
  • Zaps & Shops: NIP-57 zap tipping on posts (verifiable receipts), and NIP-15 storefronts — durable seller listings with a conversational "chat with seller" checkout.
  • Escrow without a custodian: HODL-invoice conditional payments on confirmed deals — the buyer holds the preimage, the seller can only settle on release, unreleased funds auto-refund. The Lightning protocol enforces the lock; nobody ever holds the money in between.
  • Mini-apps (experimental): third-party web apps run inside Freeport with your portable identity (NIP-07) and wallet (WebLN + Spark/stablecoin) — sandboxed behind a permission firewall where every sensitive action needs your approval (architecture & threat model). A dedicated Apps tab hosts the launcher — a home-screen-style grid (add any app by URL or QR, drag to rearrange), with the wallet as its first tile; your apps and their grants travel with the account backup. One <script> tag makes a page work on web too. Mini-app examples:
  • On-device AI (experimental): describe what you need in any language and it drafts your post; incoming chat messages auto-translate. Runs entirely on your device (Apple Intelligence / Android ML Kit + Gemini Nano / Chrome built-in AI) — your words never leave it.
  • Notifications & Telegram: content-blind push, plus a Telegram bridge — market feeds in groups, one-tap broadcast of organic posts, personal pings.
  • 56 languages, full RTL, in-chat translation.

Non-goals (v1)

Custody (payments stay self-custodial wallet-to-wallet; even escrow is trust-minimized HODL invoices, never a held balance), dispute resolution, vetting, anti-sybil — all deliberately deferred.

Donate

BTC: bc1ps44wjx3wpu4s0xj746gz2lu45nspsm9059d3ym8xz0nrhu4psyasdgwwhx

License & forking

MIT (LICENSE). Freeport exists to be forked: any community can stand up its own market — own name, city, vertical, relays and services — by changing configuration, not architecture. FORKING.md lists every deployment-specific value; CONTRIBUTING.md covers dev setup and style.

來源:README.md,提交 5d33034

工具

6

nostr_search_intents

Search Freeport ride/service/product intents (offers & requests). Filter by side, category/area topic tags, and an optional geographic radius. Results are decoded, expiry-filtered, and sorted nearest-first when a point is given.

輸入參數nearsidelimitsinceuntilrelaystopicsincludeExpiredrelaySideGeohash

nostr_search_reputation

Fetch reputation signals for a pubkey: karma ratings (kind 32103) it received and deal receipts (kind 32104). Returns proven-deal count (both receipt halves present) and a karma summary. Note: scores are subjective and un-weighted here; do not treat as Sybil-proof.

輸入參數limitpubkey必填relays

nostr_get_event

Fetch one or more events by id. Returns the raw signed events.

輸入參數ids必填relays

nostr_profile

Fetch NIP-01 profile metadata (kind 0) for one or more pubkeys — name, about, picture, nip05, lud16, etc. Optionally include each author's most recent notes (kind 1). General-purpose: works for any Nostr user, not just Freeport.

輸入參數relayspubkeys必填recentNotes

nostr_query_raw

Escape hatch: run an arbitrary NIP-01 filter (kinds/authors/ids/tags/since/until/limit). Use the typed tools above when they fit. Returns raw signed events.

輸入參數idstagskindslimitsinceuntilrelaysauthors

freeport_create_post

Publish a Freeport intent — an OFFER (side "offer": driver/provider/seller) or a REQUEST (side "request": rider/buyer). Provide EITHER a `secretKey` (nsec or hex — the server builds, signs and publishes; use a DEDICATED agent key, never a personal one — it is used once and never stored) OR a pre-signed `event` (you sign locally; nothing secret reaches the server). Strict rate limits apply. Returns the published event id + addressable `d`.

輸入參數dsideeventtitlemarketrelaysschematopicswindowpayloadgeohashessecretKey另有 1 個

版本歷史

1
  1. v0.5.0最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分