Knowmint

io.github.Sou0327由 GitHub 帳號 Sou0327 發布v0.1.4更新於 Oct 24, 2026

AI agent knowledge marketplace. Discover, purchase, and retrieve human expertise via x402 on Solana.

已驗證STDIO僅桌面金融商業與電商

概覽

AI 產生的概覽

讓助理搜尋、購買並取得付費的人類知識商品,並透過 x402 協議以 SOL 直接付款給賣家。

可以做什麼
KnowMint 是一個知識市場 MCP 伺服器,提供依關鍵字、類型或價格搜尋知識商品(km_search)、查看完整中介資料與預覽(km_get_detail)、在付款後記錄購買(km_purchase)、取得已購內容(km_get_content)以及發佈新商品(km_publish)等工具。擁有自己錢包的代理可透過 x402 流程自主完成購買,也可使用人工確認模式,由代理提出購買、使用者核准。
適用情境
當助理需要從市場尋找並取得第三方提示詞、資料集或領域知識,且你願意讓它為此花費 SOL 或 USDC(自主或經核准)時,適合安裝。
執行需求
透過 npm 套件 @knowmint/mcp-server 以 stdio 在本機執行,需要 Node.js 22.6.0 或更新版本。必須提供 KnowMint API 金鑰,可透過 KM_API_KEY 環境變數或 km login 儲存的設定檔提供。KM_BASE_URL 為選用,預設指向 KnowMint 網站。需要連線至市場的網路。
安裝前請注意
購買會從錢包花費真實的 SOL 或 USDC,自主模式會讓代理無須每次詢問即可付款。KM_API_KEY 密鑰透過環境變數傳入;伺服器會記錄購買並可發佈商品,也就是寫入資料到市場。付款證明與交易雜湊會傳送到 KnowMint 服務。

安裝

在 SourceWeft 中

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

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

KnowMint MCP Server

The first knowledge marketplace where AI agents pay directly with SOL — autonomously via x402.

Connect Claude Code, Cursor, or OpenCode to KnowMint. Agents autonomously discover, evaluate, and purchase battle-tested solutions, prompts, datasets, and domain know-how via the x402 protocol — paying sellers directly with SOL.

Human-in-the-loop mode also available: agent proposes a purchase, you approve in seconds. Your choice of autonomy level.


Quickstart (npx — no install needed)

Claude Code (~/.claude/mcp.json)

json
{  "mcpServers": {    "knowmint": {      "command": "npx",      "args": ["--yes", "--package", "@knowmint/[email protected]", "mcp-server"],      "env": {        "KM_API_KEY": "km_xxx",        "KM_BASE_URL": "https://knowmint.shop"      }    }  }}

Cursor (~/.cursor/mcp.json)

json
{  "mcpServers": {    "knowmint": {      "command": "npx",      "args": ["--yes", "--package", "@knowmint/[email protected]", "mcp-server"],      "env": {        "KM_API_KEY": "km_xxx",        "KM_BASE_URL": "https://knowmint.shop"      }    }  }}

OpenCode (.opencode/config.json)

json
{  "mcp": {    "servers": {      "knowmint": {        "command": "npx",        "args": ["--yes", "--package", "@knowmint/[email protected]", "mcp-server"],        "env": { "KM_API_KEY": "km_xxx", "KM_BASE_URL": "https://knowmint.shop" }      }    }  }}

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json)

json
{  "mcpServers": {    "knowmint": {      "command": "npx",      "args": ["--yes", "--package", "@knowmint/[email protected]", "mcp-server"],      "env": {        "KM_API_KEY": "km_xxx",        "KM_BASE_URL": "https://knowmint.shop"      }    }  }}

Windows: %APPDATA%\Claude\claude_desktop_config.json KM_BASE_URL defaults to https://knowmint.shop when omitted. Get your API key at knowmint.shop/settings/api or run km login.


Available Tools

ToolDescription
km_searchSearch knowledge listings by keyword, type, or price
km_get_detailGet full metadata + preview for a listing
km_purchaseRecord a purchase after sending payment (tx_hash)
km_get_contentRetrieve purchased full content
km_publishPublish a new knowledge listing

Authentication

Priority order:

  1. KM_API_KEY environment variable
  2. ~/.km/config.json (saved by km login)

If you've already run km login, you can omit the env block entirely.


Autonomous Purchase Flow (x402 — no external wallet MCP needed)

Agents with their own wallet (e.g. CDP Wallet) can complete purchases end-to-end without any additional MCP server:

text
1. km_get_content(id)   → { payment_required: true, accepts: [{ payTo, maxAmountRequired, asset, network, ... }] }
2. Agent sends SOL/USDC from its own wallet   → obtain tx_hash / signature
3. Build payment_proof:   base64url(JSON.stringify({     scheme: "exact",     network: "<value from accepts[].network>",   // match the network returned above     payload: { txHash: "<signature>", asset: "native" }   }))
4. km_get_content(id, payment_proof: "<base64url>")   → { full_content: "...", file_url: null }

Note: Use the network value returned in accepts[] — do not hardcode it. Devnet example: "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"

Manual purchase via Phantom MCP also works: send tx → km_purchase(id, tx_hash) → km_get_content(id).


Local Development Setup

bash
cd mcp && npm install && npm run build
json
{  "mcpServers": {    "knowmint": {      "command": "node",      "args": ["/path/to/knowledge_market/mcp/dist/index.js"],      "env": { "KM_API_KEY": "km_xxx" }    }  }}

Dev mode (TypeScript, no build step)

json
{  "mcpServers": {    "knowmint": {      "command": "node",      "args": ["--experimental-strip-types", "/path/to/knowledge_market/mcp/src/index.ts"],      "env": { "KM_API_KEY": "km_xxx" }    }  }}

Verify the server starts

bash
# Should print error to stderr and exit (no KM_API_KEY set)npx --yes --package @knowmint/[email protected] mcp-server
# With key — should stay running (waiting for MCP messages on stdin)KM_API_KEY=km_xxx KM_BASE_URL=http://localhost:3000 npm run dev
# Interactive inspectionnpx @modelcontextprotocol/inspector node --experimental-strip-types mcp/src/index.ts

Requirements

來源:mcp/README.md,提交 0d45fa9

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

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

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