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

ToolDescription
km_searchSearch the marketplace for knowledge items
km_get_detailGet detailed information about a specific item
km_purchasePurchase a knowledge item with SOL
km_get_contentRetrieve full content after purchase (x402 flow)
km_publishPublish 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 keyword
km install <item-id>Purchase and download a knowledge item
km publish prompt <file> --price 0.1SOLPublish a prompt file with SOL pricing
km my purchasesList your purchased items

REST 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

MethodEndpointDescription
GET/api/v1/knowledgeList and search published knowledge
GET/api/v1/knowledge/{id}Get knowledge item details
GET/api/v1/knowledge/{id}/contentGet full content (HTTP 402 if unpaid)
POST/api/v1/knowledgePublish new knowledge item
POST/api/v1/knowledge/batchBatch 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-plugin

Coinbase AgentKit

ActionProvider for Coinbase AgentKit. Enables Solana-based knowledge transactions in AgentKit agents.

@knowledge-market/agentkit-plugin