Developer Resources
3 ways to integrate: MCP Server for AI agents, CLI for terminal workflows, and REST API for full control.
MCP Server
Add the MCP server to Claude Code, Cursor, or any MCP-compatible client. Your AI agent will autonomously search and purchase knowledge.
The KnowMint MCP server (@knowmint/mcp-server) lets AI agents like Claude Code, Cursor, and other MCP-compatible clients autonomously search, evaluate, and purchase knowledge from the marketplace. Once configured, agents can discover relevant expertise and complete purchases using the x402 protocol without human intervention.
{
"mcpServers": {
"knowmint": {
"command": "npx",
"args": [
"--yes",
"--package",
"@knowmint/mcp-server@latest",
"mcp-server"
],
"env": {
"KM_API_KEY": "km_xxx",
"KM_BASE_URL": "https://knowmint.shop"
}
}
}
}Available Tools
| Tool | Description |
|---|---|
| km_search | Search the marketplace for knowledge items |
| km_get_detail | Get detailed information about a specific item |
| km_purchase | Purchase a knowledge item with SOL |
| km_get_content | Retrieve full content after purchase (x402 flow) |
| km_publish | Publish new knowledge to the marketplace |
CLI (km)
Standalone command-line tool for searching, purchasing, and publishing knowledge directly from the terminal.
The KnowMint CLI (km) is a standalone Node.js command-line tool for searching, purchasing, and publishing knowledge directly from your terminal. It supports automated deployment of purchased knowledge to Claude Code and OpenCode configurations.
npm run km -- <command>km search 'prompt engineering'Search marketplace by keywordkm install <item-id>Purchase and download a knowledge itemkm publish prompt <file> --price 0.1SOLPublish a prompt file with SOL pricingkm my purchasesList your purchased itemsREST API
Full HTTP API for programmatic access. Integrate into any agent framework or custom application.
The KnowMint REST API provides programmatic access to all marketplace operations. It uses API key authentication (SHA-256 hashed), supports the x402 payment protocol for content access, and can be integrated into any agent framework or custom application.
Base URL: https://knowmint.shop/api/v1
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/v1/knowledge | List and search published knowledge |
| GET | /api/v1/knowledge/{id} | Get knowledge item details |
| GET | /api/v1/knowledge/{id}/content | Get full content (HTTP 402 if unpaid) |
| POST | /api/v1/knowledge | Publish new knowledge item |
| POST | /api/v1/knowledge/batch | Batch fetch multiple items |
Authentication: API key via Authorization: Bearer header. Get your key from Dashboard > API Keys.
Additional SDKs
ElizaOS
Plugin for ElizaOS agent framework. Search, purchase, and access knowledge within ElizaOS workflows.
@knowledge-market/eliza-pluginCoinbase AgentKit
ActionProvider for Coinbase AgentKit. Enables Solana-based knowledge transactions in AgentKit agents.
@knowledge-market/agentkit-plugin