Pyrimid Protocol

ai.pyrimid由 pyrimid.ai 發布官方發布者v1.0.0更新於 Oct 24, 2026

Agent-commerce MCP server for x402/USDC payments and affiliate splits on Base.

已驗證Streamable HTTP可網頁執行金融商業與電商AI 與機器學習

概覽

AI 產生的概覽

Pyrimid 的遠端 MCP 伺服器:這是一個代理商務協定,助理可瀏覽付費 MCP 工具與 AI API 目錄,並透過 Base 上的 x402 USDC 付款購買。

可以做什麼
  • 依關鍵字、價格、分類與驗證狀態搜尋並篩選商品目錄,列出各分類及數量
  • 在購買前預覽佣金分潤比例
  • 透過 x402 帶聯盟歸因購買商品,以 Base 上的 USDC 結算
  • 取得在鏈上註冊為聯盟推廣者的說明
  • 透過免費且限流的 HTTP API 讀取協定、聯盟與供應商統計資料
適用情境
當助理需要探索並購買 Base 上的第三方付費 MCP 工具或 AI API 產品時使用;也適合希望透過推薦這類產品賺取聯盟佣金的代理。
執行需求
遠端 Streamable HTTP 端點(pyrimid.ai),無需安裝套件。購買需要 Base 上持有 USDC 的代理錢包以及 x402 付款標頭。聯盟功能需要聯盟 ID,供應商功能需要供應商 ID。讀取 API 限流為每分鐘 60 次,MCP 為每分鐘 120 次。
安裝前請注意
購買會花費 Base 主網上的真實 USDC 且無法撤銷;伺服器涉及錢包付款,建議使用資金有限的專用錢包。註冊與佣金結算透過鏈上合約完成,協定會抽取 1% 進入金庫。目錄與統計資料來自第三方。

安裝

在 SourceWeft 中

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

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

{
  "mcpServers": {
    "pyrimid-protocol": {
      "type": "http",
      "url": "https://pyrimid.ai/api/mcp"
    }
  }
}

README

[Pyrimid Protocol]

Pyrimid Protocol

Agent-commerce infra for paid MCP tools and x402 AI/API products on Base.

Website · Quickstart · MCP Server · SDK on npm · Contracts

[npm version] [Products] [Base] [MCP]


What is Pyrimid?

Pyrimid is a protocol where vendors sell paid MCP tools / AI APIs, agents discover and buy them via x402, and commissions settle instantly in USDC via smart contracts on Base.

Agent discovers a product → purchases via x402 → smart contract splits payment:
  1%        → Protocol treasury  0–50%     → Affiliate agent (set by vendor)  Remainder → Vendor

No affiliate? Vendor gets 99%. Vendors only pay for distribution that drives real sales. One layer only — no MLM, no pyramids. Just clean, transparent commission splitting onchain.


Why Pyrimid?

ProblemPyrimid's Solution
Agents can't monetize recommendationsEarn commissions by recommending products to users
Vendors can't reach agents at scaleList once, get discovered by every agent on the network
Commission payments are slow & opaqueInstant USDC settlement via smart contracts — fully auditable
No standard for agent commercex402 payments + MCP tools + onchain registry = open standard

Quick Start

Install the SDK

bash
npm install @pyrimid/sdk

For Agents — Find & Recommend Products

typescript
import { PyrimidResolver } from '@pyrimid/sdk';
const resolver = new PyrimidResolver({ affiliateId: 'af_your_id' });
// Search the catalogconst product = await resolver.findProduct("trading signals");
// Purchase with x402 payment (auto-splits commissions)if (product) {  const receipt = await resolver.purchase(product, agentWallet);  console.log(`Earned: $${receipt.affiliate_earned / 1_000_000} USDC`);}

For Vendors — List Your Product

typescript
import { pyrimidMiddleware } from '@pyrimid/sdk';
// 10 lines to activate affiliate distributionapp.use(pyrimidMiddleware({  vendorId: 'vn_your_id',  products: {    '/api/signals/latest': {      productId: 'signals_latest',      price: 250_000,        // $0.25 USDC      affiliateBps: 1000,    // 10% to affiliates    },  },}));

For Frameworks — Embed as Default Layer

typescript
import { createPyrimidMcpServer } from '@pyrimid/sdk';
// Deploy an MCP server — agents connect, browse, buyconst server = createPyrimidMcpServer({  affiliateId: 'af_your_id',  serverName: 'my-recommender',});

Live buyer-agent test surfaces

Call these without payment to receive HTTP 402 with x402 accepts[] metadata. Retry with X-PAYMENT or X-PAYMENT-TX after payment.

EndpointPriceUse case
/api/v1/paid/signals$0.25BTC derivatives signal snapshot
/api/v1/paid/agentzone-search?q=agent-commerce$0.05Trusted agent search
/api/v1/paid/mya-agent-enrichment?agent=demo$0.10Agent listing enrichment
/api/v1/paid/mya-category-scout?category=developer-tools$0.05Category scouting for buyer agents
/api/v1/paid/vendor-lead-discovery?segment=mcp$0.25Vendor lead discovery
/api/v1/paid/mcp-server-audit?url=https://example.com/mcp$0.10MCP monetization audit
/api/v1/paid/x402-integration-plan?service=agent-api$0.10Vendor x402 integration plan

Three Integration Paths

PathWhoEffortLeverage
Embedded ResolverAgent frameworks & toolkits3 linesEvery agent on your stack earns you commissions
MCP ServerAgent infrastructure providers5 linesAgents connect to your server to discover products
Vendor MiddlewareAPI & product builders10 linesActivate affiliate distribution on your product

Smart Contracts (Base Mainnet)

All contracts are deployed and verified on Base. ERC-1967 upgradeable proxy pattern.

ContractAddressPurpose
Registry0x34e22fc2...389Affiliate & vendor registration, ERC-8004 identity linking
Catalog0xC935d6B7...908Product listings with pricing & commission rates
Router0xc949AEa3...68BCommission splitting engine with maxPrice slippage protection
Treasury0x74A512F4...12CProtocol operations fund

API Reference

The Pyrimid API is free to read, rate-limited (60 req/min), and returns JSON.

EndpointMethodDescription
/api/v1/catalogGETFull product catalog with search, filters, pagination
/api/v1/paid/*GETSeed paid endpoints for x402 buyer-agent testing
/api/v1/statsGETProtocol-level stats (volume, transactions, affiliates)
/api/v1/stats?type=affiliate&id=af_xxxGETAffiliate performance & earnings
/api/v1/stats?type=vendor&id=vn_xxxGETVendor analytics
/api/mcpPOSTMCP JSON-RPC 2.0 endpoint (Streamable HTTP)
/api/mcpGETServer info & tool definitions

MCP Tools

ToolDescription
pyrimid_browseSearch catalog by query, price, category, verified status
pyrimid_buyPurchase a product via x402 with affiliate attribution
pyrimid_previewPreview the commission split before buying
pyrimid_categoriesList all product categories with counts
pyrimid_register_affiliateInstructions to register as an affiliate onchain

Architecture

pyrimid/├── app/                       # Next.js 15 (Vercel, region: bom1)│   ├── page.tsx               # Landing page│   ├── dashboard/             # Protocol dashboard│   └── api/│       ├── v1/catalog/        # Aggregated product catalog│       ├── v1/paid/           # Seed x402 paid endpoints│       ├── v1/stats/          # Protocol & affiliate analytics│       └── mcp/               # MCP JSON-RPC endpoint├── sdk/                       # @pyrimid/sdk (published to npm)│   └── src/│       ├── resolver.ts        # PyrimidResolver — search, purchase, stats│       ├── mcp-server.ts      # MCP server factory│       ├── middleware.ts       # Vendor payment middleware + calculateSplit()│       └── types.ts           # ABIs, addresses, interfaces├── subgraph/                  # The Graph indexer (Base)│   ├── schema.graphql         # PaymentRouted, Affiliate, Vendor entities│   ├── subgraph.yaml          # 4 data sources│   └── src/mapping.ts         # Event handlers├── middleware.ts               # Edge rate limiting (60/min API, 120/min MCP)└── public/docs/               # Developer documentation

Development

bash
# Clone & installgit clone https://github.com/pyrimid/protocol.gitcd protocolnpm install
# Run locallycp .env.example .envnpm run dev
# SDK developmentcd sdknpm run build    # TypeScript → dist/npm run dev      # Watch mode

Deploy

bash
# Website + APInpx vercel --prod
# SDK to npmcd sdk && npm publish --access public
# Subgraph to The Graphcd subgraph && npx graph deploy pyrimid --studio

Security

  • Payment verification: Real onchain verification via viem — checks PaymentRouted events + USDC transfers with 5-minute expiry
  • Rate limiting: Edge middleware, 60 req/min per IP on catalog/stats, 120/min on MCP
  • BigInt safety: calculateSplit() handles both Number and BigInt inputs from web3 libraries
  • Contract pattern: ERC-1967 upgradeable proxies with verified source on BaseScan

Roadmap

  • Core contracts deployed on Base
  • SDK v0.2.3 with full catalog pagination
  • MCP server with 5 tools
  • x402 Bazaar aggregation (92+ products)
  • Subgraph indexing on The Graph
  • Rate limiting & security hardening
  • ERC-8004 identity verification for vendors
  • Multi-network support (Arbitrum, Optimism)
  • Revenue dashboard for affiliates
  • Vendor self-service registration portal

Links


Built on Base · Payments via x402 · Settlement in USDC

來源:README.md,提交 8fb2685

工具

0
SourceWeft 尚未讀取此伺服器的工具。

版本歷史

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

評分

已滿足適用檢查項的 85%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分