mcpField
K
Knowmint Mcp Server

Knowmint Mcp Server

Local
github.com/Sou0327Business & Marketing3Updated 28w ago

About Knowmint Mcp Server

Knowmint Mcp Server connects MCP clients to a marketplace for human expertise, including solutions, prompts, datasets, and domain knowledge. Agents can search listings, inspect previews, purchase content with SOL through x402, and publish listings, with an approval-based purchase mode also available.

Key features

  1. 01Search listings by keyword, type, or price
  2. 02Inspect listing metadata and previews
  3. 03Purchase and retrieve full content
  4. 04Publish knowledge listings
  5. 05Support x402 payments with SOL

Use cases

  1. 01Find domain know-how for an agent task
  2. 02Review a listing before purchasing it
  3. 03Retrieve content after recording payment
  4. 04Publish expertise for agents to discover

MCP support

Exposes search, detail, purchase, content retrieval, and publishing tools to MCP clients. Purchase flows support x402 payment proof, including agent-initiated payment or human approval.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"knowmint": {
"command": "npx",
"args": [
"-y",
"@knowmint/mcp-server"
],
"env": {
"KM_API_KEY": "<KM_API_KEY>",
"KM_BASE_URL": "<KM_BASE_URL>"
}
}
}
}
Run commandnpx -y @knowmint/mcp-server
Environment variables to set
KM_API_KEYSecretKnowMint API key
KM_BASE_URLKnowMint API base URL (default: https://knowmint.shop)

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@knowmint/mcp-server0.1.4

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

KnowMint MCP Server

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

Connect Claude Code, Cursor, or OpenCode to KnowMint. Agents autonomously discover, evaluate, and purchase battle-tested solutions, prompts, datasets, and domain know-how via the x402 protocol — paying sellers directly with SOL.

Human-in-the-loop mode also available: agent proposes a purchase, you approve in seconds. Your choice of autonomy level.


Quickstart (npx — no install needed)

Claude Code (~/.claude/mcp.json)
{
  "mcpServers": {
    "knowmint": {
      "command": "npx",
      "args": ["--yes", "--package", "@knowmint/[email protected]", "mcp-server"],
      "env": {
        "KM_API_KEY": "km_xxx",
        "KM_BASE_URL": "https://knowmint.shop"
      }
    }
  }
}
Cursor (~/.cursor/mcp.json)
{
  "mcpServers": {
    "knowmint": {
      "command": "npx",
      "args": ["--yes", "--package", "@knowmint/[email protected]", "mcp-server"],
      "env": {
        "KM_API_KEY": "km_xxx",
        "KM_BASE_URL": "https://knowmint.shop"
      }
    }
  }
}
OpenCode (.opencode/config.json)
{
  "mcp": {
    "servers": {
      "knowmint": {
        "command": "npx",
        "args": ["--yes", "--package", "@knowmint/[email protected]", "mcp-server"],
        "env": { "KM_API_KEY": "km_xxx", "KM_BASE_URL": "https://knowmint.shop" }
      }
    }
  }
}
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json)
{
  "mcpServers": {
    "knowmint": {
      "command": "npx",
      "args": ["--yes", "--package", "@knowmint/[email protected]", "mcp-server"],
      "env": {
        "KM_API_KEY": "km_xxx",
        "KM_BASE_URL": "https://knowmint.shop"
      }
    }
  }
}

Windows: %APPDATA%\Claude\claude_desktop_config.json KM_BASE_URL defaults to https://knowmint.shop when omitted. Get your API key at knowmint.shop/settings/api or run km login.


Available Tools

ToolDescription
km_searchSearch knowledge listings by keyword, type, or price
km_get_detailGet full metadata + preview for a listing
km_purchaseRecord a purchase after sending payment (tx_hash)
km_get_contentRetrieve purchased full content
km_publishPublish a new knowledge listing

Authentication

Priority order:

  1. KM_API_KEY environment variable
  2. ~/.km/config.json (saved by km login)

If you've already run km login, you can omit the env block entirely.


Autonomous Purchase Flow (x402 — no external wallet MCP needed)

Agents with their own wallet (e.g. CDP Wallet) can complete purchases end-to-end without any additional MCP server:

1. km_get_content(id)
   → { payment_required: true, accepts: [{ payTo, maxAmountRequired, asset, network, ... }] }

2. Agent sends SOL/USDC from its own wallet
   → obtain tx_hash / signature

3. Build payment_proof:
   base64url(JSON.stringify({
     scheme: "exact",
     network: "<value from accepts[].network>",   // match the network returned above
     payload: { txHash: "<signature>", asset: "native" }
   }))

4. km_get_content(id, payment_proof: "<base64url>")
   → { full_content: "...", file_url: null }

Note: Use the network value returned in accepts[] — do not hardcode it. Devnet example: "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"

Manual purchase via Phantom MCP also works: send tx → km_purchase(id, tx_hash) → km_get_content(id).


Local Development Setup

cd mcp && npm install && npm run build
{
  "mcpServers": {
    "knowmint": {
      "command": "node",
      "args": ["/path/to/knowledge_market/mcp/dist/index.js"],
      "env": { "KM_API_KEY": "km_xxx" }
    }
  }
}
Dev mode (TypeScript, no build step)
{
  "mcpServers": {
    "knowmint": {
      "command": "node",
      "args": ["--experimental-strip-types", "/path/to/knowledge_market/mcp/src/index.ts"],
      "env": { "KM_API_KEY": "km_xxx" }
    }
  }
}
Verify the server starts
# Should print error to stderr and exit (no KM_API_KEY set)
npx --yes --package @knowmint/[email protected] mcp-server

# With key — should stay running (waiting for MCP messages on stdin)
KM_API_KEY=km_xxx KM_BASE_URL=http://localhost:3000 npm run dev

# Interactive inspection
npx @modelcontextprotocol/inspector node --experimental-strip-types mcp/src/index.ts

Requirements

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.