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 分