KnowMint MCP Server

KnowMint MCP Server

knowmint•bysou0327

An MCP server for the KnowMint knowledge marketplace, letting AI agents search, purchase, and retrieve knowledge paid for with SOL.

License: MIT•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Provides MCP tools for searching knowledge, fetching details, purchasing, and retrieving purchased content.
  • •Allows agents to self-register with a Solana keypair and obtain an API key without a prior account.
  • •Supports autonomous purchasing via the x402 protocol with HTTP 402 challenges and Solana transfers.
  • •Lets agents publish knowledge and check version history through MCP tools.

BEST FOR

  • •AI agents that need to discover and autonomously buy knowledge from a marketplace.
  • •Teams wanting human approval before an agent completes a purchase.

ABOUT KNOWMINT

KnowMint MCP Server is cataloged as an MCP server attributed to sou0327. An MCP server for the KnowMint knowledge marketplace, letting AI agents search, purchase, and retrieve knowledge paid for with SOL. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for KnowMint MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can an agent use the MCP server without an existing KnowMint account?

Yes. An agent can self-register using the km_register tool with a Solana keypair, which handles the challenge, signature, and registration and saves the API key.

How does payment work when an agent retrieves knowledge?

Content retrieval returns an HTTP 402 payment requirement; the agent performs a Solana transfer and retries with a payment proof to receive the content.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 0d45fa98f40f · 采集于 2026-11-13 13:21:00 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

KnowMint

License: MIT Deploy: Cloudflare Workers

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

Humans list tacit knowledge, experiential insights, and battle-tested solutions. AI agents (Claude Code, ElizaOS, AgentKit) autonomously discover, evaluate, and purchase via the x402 protocol — paying sellers directly via non-custodial Solana P2P transfers. No private keys held by the platform.

Human-in-the-loop mode also available: agent searches and proposes, you approve. Same marketplace, your choice of autonomy level.

Three access layers: Web UI / CLI (km) / REST API + MCP Server

Web UI

WebUI Purchase Flow

CLI / MCP (for AI Agents)

AI Agent Autonomous Purchase Demo


Why KnowMint

  • First for agentic payments — AI agents autonomously pay with SOL via x402 protocol. No human required to complete a purchase
  • x402 autonomous purchasing — HTTP 402 + Solana P2P direct transfer. Agent finds, pays, and accesses knowledge end-to-end
  • Human-in-the-loop also available — Agent proposes, you approve. Same marketplace, your choice of autonomy level
  • Human → AI knowledge supply — Sell experiential and tacit knowledge that AI cannot self-generate
  • Non-custodial payments — Buyer-to-seller P2P direct transfer on Solana (no platform custody)

For AI Agents

Getting an API Key

For AI agents (wallet-based, no web UI needed):

  1. POST /api/v1/auth/challenge with { "wallet": "<base58>", "purpose": "register" }
  2. Sign the returned message with your Solana wallet
  3. POST /api/v1/auth/register with { "wallet", "signature", "nonce" }
  4. Receive { "api_key": "km_...", "user_id", "wallet" } — ready to use

For humans (web UI):

  1. Sign up at knowmint.shop (or your self-hosted instance)
  2. Go to Profile → API Keys
  3. Create a key with read or write permission
  4. Copy the key — it is shown only once

MCP Server

Add to ~/.claude/mcp.json:

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

No API key needed for initial setup. The agent can self-register using km_register.

Self-Registration (No Prior Account Needed)

  1. Prepare a Solana keypair file (e.g. ~/.config/solana/id.json)
  2. Call km_register with the keypair path — the tool handles challenge, signature, and registration automatically
  3. The API key is saved to ~/.km/config.json and used for all subsequent calls
km_register(keypair_path: "~/.config/solana/id.json")
  → POST /api/v1/auth/challenge (get nonce)
  → Sign message with keypair
  → POST /api/v1/auth/register (get API key)
  → Saved to ~/.km/config.json — ready to use

To re-login to an existing account: km_wallet_login(keypair_path: "...").

Tool Reference

ToolDescription
km_registerRegister a new account with a Solana keypair and get an API key
km_wallet_loginRe-login to an existing account and get a new API key
km_searchSearch knowledge
km_get_detailGet knowledge details
km_purchasePurchase knowledge (Solana transfer)
km_get_contentGet purchased content (x402 gate)
km_get_version_historyGet version history
km_publishPublish knowledge

x402 Autonomous Purchase Flow

km_get_content()
  → HTTP 402 (payment_required)
  → Solana transfer
  → Retry with payment_proof
  → Content returned

Security: Do not place config files in public repos or synced directories. Rotate keys regularly.

  • Search & read only (km_search / km_get_detail / km_get_content) → read permission key
  • Purchase & publish (km_purchase / km_publish) → write permission key

CLI (km)

Standalone Node.js CLI. Config stored in ~/.km/config.json.

Self-Registration

# Register with an existing Solana keypair (creates account + saves API key)
km register --keypair ~/.config/solana/id.json

# Register with auto-generated keypair (new wallet created automatically)
km register

# Re-login to an existing account
km wallet-login --keypair ~/.config/solana/id.json

Usage

km login --base-url https://knowmint.shop   # Manual API key input (if already have one)
km search "prompt engineering"
km install <knowledge_id> --tx-hash <solana_tx_hash> --deploy-to claude
km publish prompt ./prompt.md --price 0.5SOL --tags "seo,marketing"
km my purchases

--deploy-to claude,opencode auto-deploys purchased knowledge to your tools.

See cli/README.md for full documentation.


For Humans

The web UI features a retro RPG-style design (Dragon Quest inspired). Humans can:

  • List knowledge with SOL pricing, previews, and tags
  • Browse a marketplace of prompts, tool definitions, datasets, and APIs
  • Purchase with Phantom or Solflare wallet
  • Track sales, purchases, and feedback on a personal dashboard

Quick Start

Prerequisites: Node.js 22.6+ / npm

git clone https://github.com/Sou0327/knowmint.git
cd knowmint
npm install

# Start local Supabase (applies migrations automatically)
npx supabase start

# Copy and fill environment variables
cp .env.local.example .env.local

# Start dev server
npm run dev   # http://localhost:3000

Required Environment Variables

VariableDescription
NEXT_PUBLIC_SUPABASE_URLSupabase project URL
NEXT_PUBLIC_SUPABASE_ANON_KEYSupabase anon key
SUPABASE_SERVICE_ROLE_KEYAdmin client (API routes)
VariableDescription
NEXT_PUBLIC_SOLANA_RPC_URLSolana RPC URL
NEXT_PUBLIC_SOLANA_NETWORKdevnet (default) / mainnet-beta
X402_NETWORKx402 payment network CAIP-2 identifier
CRON_SECRETCron job auth key
UPSTASH_REDIS_REST_URLRate limiting (Upstash Redis)
UPSTASH_REDIS_REST_TOKENRate limiting token
WEBHOOK_SIGNING_KEYWebhook signature verification

Agent Plugins

Coinbase AgentKit (packages/agentkit-plugin/)

ActionProvider<WalletProvider> plugin for AgentKit agents.

cd packages/agentkit-plugin && npm install && npm run build

5 actions: km_search / km_get_detail / km_purchase / km_get_content / km_publish

ElizaOS (packages/eliza-plugin/)

Plugin for the ElizaOS framework.

cd packages/eliza-plugin && npm install && npm run build
import { knowmintPlugin } from "@knowmint/eliza-plugin";

const character = {
  plugins: [knowmintPlugin],
  settings: {
    KM_API_KEY: "km_xxx",
    KM_BASE_URL: "https://knowmint.shop", // optional
  },
};

Actions: SEARCH_KNOWLEDGE / PURCHASE_KNOWLEDGE / GET_CONTENT Provider: trending-knowledge (top 5 injected into context)


API Overview

Most endpoints are protected by withApiAuth (API key auth + rate limiting). Full reference: docs/openapi.yaml / docs/api-guidelines.md

Auth (No API Key Required)

MethodPathDescription
POST/api/v1/auth/challengeGet a signing challenge (wallet + purpose)
POST/api/v1/auth/registerRegister with wallet signature → receive API key
POST/api/v1/auth/loginRe-login with wallet signature → receive new API key

Knowledge

MethodPathDescription
GET/api/v1/knowledgeList knowledge
POST/api/v1/knowledgeCreate knowledge
POST/api/v1/knowledge/batchBatch get
GET/api/v1/knowledge/{id}Get details
PATCH/api/v1/knowledge/{id}Update
POST/api/v1/knowledge/{id}/publishPublish
POST/api/v1/knowledge/{id}/purchasePurchase (Solana TX verification)
GET/api/v1/knowledge/{id}/contentGet content (x402 gate)
POST/api/v1/knowledge/{id}/feedbackSubmit feedback

User

MethodPathDescription
GET/api/v1/me/purchasesPurchase history
GET/api/v1/me/listingsMy listings
POST/api/v1/me/wallet/challengeSIWS challenge
POST/api/v1/me/wallet/verifyWallet verification

Tech Stack

LayerTechnology
FrontendNext.js 16 (App Router) + React 19, TypeScript, Tailwind CSS v4
Backend / DBSupabase (PostgreSQL, Auth, Storage, RLS)
PaymentsSolana (non-custodial P2P, Anchor 0.32)
Rate LimitingUpstash Redis
MCP@knowmint/mcp-server (@modelcontextprotocol/sdk)
DeployCloudflare Workers (opennextjs-cloudflare)
TestingMocha/Chai (unit/integration), Vitest (components)

Testing

# Unit tests (202 tests, Mocha/Chai)
npm run test:unit

# Component tests (Vitest)
npm run test:components

# Staging integration tests (requires supabase start)
npm run test:staging

# E2E tests
npm run test:e2e:fake-tx        # Fake transaction rejection
npm run test:e2e:cli-flow       # CLI flow (login/search/install/publish/deploy)
npm run test:e2e:cli-purchase   # CLI purchase flow
npm run test:e2e:x402-flow      # HTTP 402 payment gate
npm run test:e2e:devnet         # Devnet SOL transfer → purchase → content

For local devnet testing with a full purchase flow, see Local Devnet Testing Guide.


Deployment

Deployed to Cloudflare Workers via opennextjs-cloudflare.

npm run build:cf    # Build + strip @vercel/og WASM
npm run deploy:cf   # Deploy to production

CI/CD (.github/workflows/deploy.yml):

  • Push to main → auto-deploy to production Worker
  • PR created → auto-deploy to preview Worker
  • PR closed → preview Worker deleted

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/my-feature)
  3. Commit your changes
  4. Push to the branch and open a Pull Request

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for KnowMint MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/knowmint)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent