AI agent knowledge marketplace. Discover, purchase, and retrieve human expertise via x402 on Solana.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
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


For AI agents (wallet-based, no web UI needed):
POST /api/v1/auth/challenge with { "wallet": "<base58>", "purpose": "register" }message with your Solana walletPOST /api/v1/auth/register with { "wallet", "signature", "nonce" }{ "api_key": "km_...", "user_id", "wallet" } β ready to useFor humans (web UI):
read or write permissionAdd to ~/.claude/mcp.json:
No API key needed for initial setup. The agent can self-register using
km_register.
~/.config/solana/id.json)km_register with the keypair path β the tool handles challenge, signature, and registration automatically~/.km/config.json and used for all subsequent callsTo re-login to an existing account: km_wallet_login(keypair_path: "...").
| Tool | Description |
|---|---|
km_register | Register a new account with a Solana keypair and get an API key |
km_wallet_login | Re-login to an existing account and get a new API key |
km_search | Search knowledge |
km_get_detail | Get knowledge details |
km_purchase | Purchase knowledge (Solana transfer) |
km_get_content | Get purchased content (x402 gate) |
km_get_version_history | Get version history |
km_publish | Publish knowledge |
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) βreadpermission key- Purchase & publish (
km_purchase/km_publish) βwritepermission key
km)Standalone Node.js CLI. Config stored in ~/.km/config.json.
--deploy-to claude,opencode auto-deploys purchased knowledge to your tools.
See cli/README.md for full documentation.
The web UI features a retro RPG-style design (Dragon Quest inspired). Humans can:
Prerequisites: Node.js 22.6+ / npm
| Variable | Description |
|---|---|
NEXT_PUBLIC_SUPABASE_URL | Supabase project URL |
NEXT_PUBLIC_SUPABASE_ANON_KEY | Supabase anon key |
SUPABASE_SERVICE_ROLE_KEY | Admin client (API routes) |
| Variable | Description |
|---|---|
NEXT_PUBLIC_SOLANA_RPC_URL | Solana RPC URL |
NEXT_PUBLIC_SOLANA_NETWORK | devnet (default) / mainnet-beta |
X402_NETWORK | x402 payment network CAIP-2 identifier |
CRON_SECRET | Cron job auth key |
UPSTASH_REDIS_REST_URL | Rate limiting (Upstash Redis) |
UPSTASH_REDIS_REST_TOKEN | Rate limiting token |
WEBHOOK_SIGNING_KEY | Webhook signature verification |
packages/agentkit-plugin/)ActionProvider<WalletProvider> plugin for AgentKit agents.
5 actions: km_search / km_get_detail / km_purchase / km_get_content / km_publish
packages/eliza-plugin/)Plugin for the ElizaOS framework.
Actions: SEARCH_KNOWLEDGE / PURCHASE_KNOWLEDGE / GET_CONTENT
Provider: trending-knowledge (top 5 injected into context)
Most endpoints are protected by withApiAuth (API key auth + rate limiting).
Full reference: docs/openapi.yaml / docs/api-guidelines.md
| Method | Path | Description |
|---|---|---|
| POST | /api/v1/auth/challenge | Get a signing challenge (wallet + purpose) |
| POST | /api/v1/auth/register | Register with wallet signature β receive API key |
| POST | /api/v1/auth/login | Re-login with wallet signature β receive new API key |
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/knowledge | List knowledge |
| POST | /api/v1/knowledge | Create knowledge |
| POST | /api/v1/knowledge/batch | Batch get |
| GET | /api/v1/knowledge/{id} | Get details |
| PATCH | /api/v1/knowledge/{id} | Update |
| POST | /api/v1/knowledge/{id}/publish | Publish |
| POST | /api/v1/knowledge/{id}/purchase | Purchase (Solana TX verification) |
| GET | /api/v1/knowledge/{id}/content | Get content (x402 gate) |
| POST | /api/v1/knowledge/{id}/feedback | Submit feedback |
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/me/purchases | Purchase history |
| GET | /api/v1/me/listings | My listings |
| POST | /api/v1/me/wallet/challenge | SIWS challenge |
| POST | /api/v1/me/wallet/verify | Wallet verification |
| Layer | Technology |
|---|---|
| Frontend | Next.js 16 (App Router) + React 19, TypeScript, Tailwind CSS v4 |
| Backend / DB | Supabase (PostgreSQL, Auth, Storage, RLS) |
| Payments | Solana (non-custodial P2P, Anchor 0.32) |
| Rate Limiting | Upstash Redis |
| MCP | @knowmint/mcp-server (@modelcontextprotocol/sdk) |
| Deploy | Cloudflare Workers (opennextjs-cloudflare) |
| Testing | Mocha/Chai (unit/integration), Vitest (components) |
For local devnet testing with a full purchase flow, see Local Devnet Testing Guide.
Deployed to Cloudflare Workers via opennextjs-cloudflare.
CI/CD (.github/workflows/deploy.yml):
main β auto-deploy to production Workergit checkout -b feature/my-feature)Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/knowmint)<a href="https://allmcps.com/mcp/knowmint"><img src="https://allmcps.com/api/badge/knowmint?style=directory" alt="Knowmint on AllMCPs" /></a>