km_get_content
Retrieve the full content of a knowledge item. If payment_required: true is returned, send on-chain payment and retry with payment_proof (base64-encoded X-PAYMENT).
A marketplace where an agent can find a piece of knowledge, read the preview, pay for it in SOL or USDC on Solana, and unlock the full text — or publish and sell its own.
LABSCO SUMMARY
Everything up to payment is free — searching, reading previews, comparing prices — and the paywall only appears when full content is requested, so an agent can evaluate before it commits. Decide the autonomy level deliberately: with a funded keypair configured, the buy step needs no human, and the same setup supports the human-in-the-loop pattern where the agent proposes and you approve. Publishing runs on the same account, so an agent that has produced something worth selling can list it without a separate flow.
A paid knowledge marketplace with the payment step inside the tool loop. Items are searched and previewed for free; retrieving the full content returns a payment-required response, and the purchase is settled by an on-chain Solana transfer straight from buyer to seller.
A Solana keypair file on disk, and an API key in KM_API_KEY — though you do not need one before you start, because the registration tool creates the account from the keypair and saves the key to a config file in your home directory for later calls. Node.js 22.6.0 or newer; it runs over stdio as npx --package @knowmint/mcp-server mcp-server. KM_BASE_URL points at the instance and defaults to the hosted marketplace. Buying means spending real funds from that keypair: transfers go directly from buyer to seller on Solana with no platform custody, so the wallet you point at it is the wallet that pays. MIT.
One command — npx -y @knowmint/mcp-server
USE CASES
Search by topic and filters, then read each candidate's preview and price before deciding anything.
Request the content, get the payment-required response, send the on-chain transfer, and record the purchase with the transaction hash to unlock it.
Read the item's version history for past snapshots before relying on what you bought.
Publish the item with its tags and content type, priced in SOL or USDC, in a single call.
Register from a Solana keypair — the challenge, signature and key issuance are handled in the one call — or log back in when you need a fresh key.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
km_get_contentRetrieve the full content of a knowledge item. If payment_required: true is returned, send on-chain payment and retry with payment_proof (base64-encoded X-PAYMENT).
km_get_detailGet details and preview content for a knowledge item. Use this to evaluate a purchase before buying.
km_get_version_historyGet version history of a knowledge item. Shows past snapshots of changes.
km_publishCreate and publish a new knowledge item in one step. Either price_sol or price_usdc must be specified.
km_purchaseRecord a purchase after sending payment on-chain. Submit the transaction hash to unlock content access.
km_registerRegister a new KnowMint account using a Solana keypair. Creates an account and returns an API key for autonomous operations. Run this before using other tools if no API key is configured.
km_searchSearch knowledge items in KnowMint. Returns a list of items with title, description, price, and metadata.
km_wallet_loginLog in to an existing KnowMint account using a Solana keypair. Returns a new API key. Use this if you already registered but need a fresh key.
BEFORE YOU INSTALL
8 tools when we connected. km_get_content is payment-gated through x402. The Eliza and AgentKit plugin actions wrap these tools and are not extra tools.
npx on PATH
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the 8 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y @knowmint/mcp-server{
"mcpServers": {
"knowmint": {
"command": "npx",
"args": [
"--yes",
"--package",
"@knowmint/mcp-server@0.1.2",
"mcp-server"
],
"env": {
"KM_BASE_URL": "https://knowmint.shop"
}
}
}
}