Give an AI agent a Solana spending allowance instead of your key. Chain-enforced cap, x402.
registry version 0.1.1
npm
npx -y @three-ws/onchain-agent-walletsnpm
npx -y @three-ws/onchain-agent-wallets@0.1.1
Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"onchain-agent-wallets": {
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets"
],
"env": {
"OWNER_SECRET_KEY": "<YOUR_OWNER_SECRET_KEY>"
}
}
}
}{
"mcpServers": {
"onchain-agent-wallets": {
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets@0.1.1"
],
"env": {
"OWNER_SECRET_KEY": "<YOUR_OWNER_SECRET_KEY>"
}
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env OWNER_SECRET_KEY=<YOUR_OWNER_SECRET_KEY> onchain-agent-wallets -- npx -y @three-ws/onchain-agent-wallets
claude mcp add --env OWNER_SECRET_KEY=<YOUR_OWNER_SECRET_KEY> onchain-agent-wallets -- npx -y @three-ws/onchain-agent-wallets@0.1.1
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"onchain-agent-wallets": {
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets"
],
"env": {
"OWNER_SECRET_KEY": "<YOUR_OWNER_SECRET_KEY>"
}
}
}
}{
"mcpServers": {
"onchain-agent-wallets": {
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets@0.1.1"
],
"env": {
"OWNER_SECRET_KEY": "<YOUR_OWNER_SECRET_KEY>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"onchain-agent-wallets": {
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets"
],
"env": {
"OWNER_SECRET_KEY": "<YOUR_OWNER_SECRET_KEY>"
}
}
}
}{
"servers": {
"onchain-agent-wallets": {
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets@0.1.1"
],
"env": {
"OWNER_SECRET_KEY": "<YOUR_OWNER_SECRET_KEY>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"onchain-agent-wallets": {
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets"
],
"env": {
"OWNER_SECRET_KEY": "<YOUR_OWNER_SECRET_KEY>"
}
}
}
}{
"mcpServers": {
"onchain-agent-wallets": {
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets@0.1.1"
],
"env": {
"OWNER_SECRET_KEY": "<YOUR_OWNER_SECRET_KEY>"
}
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
OWNER_SECRET_KEY secret — Owner secret key, base58 or a JSON byte array. Optional: without it every owner action is returned as an unsigned transaction for Phantom, Solflare, Backpack, or a Ledger to sign.OAW_NETWORK — Cluster: mainnet or devnet. Defaults to mainnet. State is kept per network, so a devnet rehearsal never touches mainnet agents.SOLANA_RPC_URL — HTTPS Solana RPC endpoint. Defaults to the public endpoint for the configured network; bring your own (Helius / Quicknode / Triton) for production.OAW_STATE_DIR — Where agent keypairs, guardrails, and the spend ledger are stored. Defaults to ~/.onchain-agent-wallets, written 0600 inside a 0700 directory.REQUIRE_CONFIRM — Refuse to broadcast anything that moves value until the call is re-issued with confirm:true. Default true.⭐ 6 stars · 最近更新于 40 天前 · Apache-2.0 license
Distributed as npm, listed under AI Agents. Review our MCP security guide before granting access to real data.
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/nirholas/onchain-agent-wallets. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/onchain-agent-wallets/)
HTML
<a href="https://mcpnav.net/server/onchain-agent-wallets/"><img src="https://mcpnav.net/badge/onchain-agent-wallets.svg" alt="Listed on MCPNav" height="20"></a>