mcpField
T
three.ws Knock

three.ws Knock

Local
three.wsCommunication255Updated today

About three.ws Knock

Knock is a three.ws MCP server that lets an agent find reachable people, check their per-message price, send one message and read the reply. Paid messages settle directly to the recipient, and the server holds no wallet.

Key features

  1. 01Quote one person's per-message price and chains
  2. 02List reachable people, cheapest first
  3. 03Send immediately through free doors
  4. 04Quote priced doors for human approval
  5. 05Check status and replies of sent messages
  6. 06Owner inbox reading, replying, dismissing and blocking

Use cases

  1. 01Letting an agent ask a researcher a specific question and read the answer
  2. 02Requiring human approval before any paid message is sent
  3. 03Tracking the status of messages already sent

MCP support

The server exposes knock_quote, knock_directory, knock_send, knock_receipt, knock_inbox and knock_act as MCP tools. The two owner tools require THREE_WS_API_KEY and only act on the account's own door.

Configuration

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

mcp.json · Universal config
{
"mcpServers": {
"nirholas-knock": {
"command": "npx",
"args": [
"-y",
"@three-ws/knock-mcp"
],
"env": {
"THREE_WS_API_KEY": "<THREE_WS_API_KEY>",
"THREE_WS_BASE": "<THREE_WS_BASE>",
"THREE_WS_TIMEOUT_MS": "<THREE_WS_TIMEOUT_MS>"
}
}
}
}
Run commandnpx -y @three-ws/knock-mcp
Environment variables to set
THREE_WS_API_KEYSecretA three.ws API key (sk_live_… / sk_test_…) or OAuth access token. Optional: needed only for knock_inbox and knock_act, which manage your own door. Quoting, browsing, knocking and reading a receipt all work without it. Treat like a password.
THREE_WS_BASEBase URL of the three.ws API. Override only when self-hosting or targeting a preview deployment.
THREE_WS_TIMEOUT_MSPer-request timeout in milliseconds.

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@three-ws/knock-mcp0.1.0

Tools

6

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
handlestringYesThe recipient's three.ws username, with or without the @.

Details

From the project README

@three-ws/knock-mcp

Let an agent reach a real person.

Knock is a priced door to a human. Every three.ws account can publish one at three.ws/knock/<handle>, and the owner sets what one message from a stranger costs. Paying that price buys exactly one message through: it lands in their inbox, and their 3D companion walks on screen wherever they are on the site and delivers it out loud, naming the sender and the amount. The USDC settles directly to the recipient.

This MCP server gives any agent client (Claude Code, Claude Desktop, Cursor, Windsurf, or your own) the tools to find a reachable person, knock, and read the answer.

This server holds no wallet

On a free door, knock_send sends immediately, because nothing moves.

On a priced door, knock_send does not pay and cannot pay. It returns the recipient, the amount, the token, the chain and the endpoint, and stops. The human approves the spend and pays from the wallet they already control, with @three-ws/knock or any other x402 client.

That is deliberate. An MCP server with a key in an environment variable should not be able to move a person's money on its own.

Install

Claude Code:

claude mcp add knock -- npx -y @three-ws/knock-mcp

Any MCP client, by config:

{
	"mcpServers": {
		"knock": {
			"command": "npx",
			"args": ["-y", "@three-ws/knock-mcp"]
		}
	}
}

Add THREE_WS_API_KEY only if you also want the two owner-side tools:

{
	"mcpServers": {
		"knock": {
			"command": "npx",
			"args": ["-y", "@three-ws/knock-mcp"],
			"env": { "THREE_WS_API_KEY": "sk_live_…" }
		}
	}
}

Node 20+.

Tools

ToolCredentialWhat it does
knock_quotenoneWhat one person charges for a single message, which chains they take it on, the length limit, and the endpoint.
knock_directorynoneEveryone reachable right now, cheapest first.
knock_sendnoneGet one message through. Free doors send; priced doors are quoted for a human to approve.
knock_receiptnoneWhat became of a knock you sent: pending, read, replied (with the reply), or dismissed.
knock_inboxTHREE_WS_API_KEYThe knocks your door has taken, each with what the sender paid, plus totals.
knock_actTHREE_WS_API_KEYReply to, mark read, dismiss, or block one of them.

The owner tools are account-scoped server-side. They can never read or change another account.

What a session looks like

You: Find someone on three.ws who takes questions about x402, and ask them how their Solana facilitator handles fee payers.

The agent calls knock_directory, picks a door, calls knock_quote to get the live price, and comes back with:

nirholas (@nirholas) charges $0.05 USDC on solana.
Endpoint: https://three.ws/api/x402/knock?to=nirholas
The payment settles directly to the recipient.
Approve?

You approve and pay from your own wallet:

npx @three-ws/knock send nirholas \
  "How does your Solana facilitator handle the fee payer?" \
  --from "Ada (research agent)" --subject "x402 fee payer" --payer ./payer.mjs

Their companion walks on screen and says: "Ada paid $0.05 to reach you: x402 fee payer." When they answer, the agent reads it back with knock_receipt on the receipt URL. No account on either side beyond the door owner's.

Environment

VariableRequiredDefaultPurpose
THREE_WS_API_KEYfor knock_inbox / knock_act onlynoneAPI key or OAuth token for the account whose door you manage. Aliases: THREE_WS_TOKEN, THREE_WS_BEARER.
THREE_WS_BASEnohttps://three.wsOverride only when self-hosting.
THREE_WS_TIMEOUT_MSno20000Per-request timeout.

Run and inspect

node src/index.js                     # stdio
npm run inspect                       # MCP Inspector
npm test                              # the tool surface and the no-wallet rule

Related

License

Apache-2.0

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.