← MCP server and skill grades

solana-wallet-toolkit

nirholas/solana-wallet-toolkit

C
Type
MCP server
Scanned
Nov 17, 2026
Version
6167d6819303
Files read
172

This project provides an MCP server, Claude plugin, and CLI tools for generating Solana cryptocurrency wallets, finding custom vanity addresses, and signing or verifying messages. Its biggest risk is that the Claude plugin automatically downloads and runs an unpinned npm package (solana-wallet-toolkit-mcp) that the project's own documentation says is not published to npm, allowing anyone who claims or compromises that package name to run code on the user's machine, while generated private keys are also returned in plain text to the AI chat session.

What it can reach

Secrets
Generates, stores in session memory, restores, and signs messages with Solana wallet private keys, and returns raw private keys in MCP tool output text.
Network
The MCP server code itself makes no network calls, but the Claude plugin runs npx -y solana-wallet-toolkit-mcp to download and execute package code from npm at startup, and offline.html fetches @solana/web3.js from unpkg.com.
Files
The MCP server does not touch the filesystem, while the optional Rust, TypeScript, and shell CLI tools read and write Solana keypair JSON files on disk.
Shell commands
The MCP server does not run shell commands, while the optional shell scripts in scripts/ invoke solana-keygen, gpg, shred, and python3.

Findings

1 high1 medium3 low
  1. HighClaude plugin runs unpinned npx package documented as unpublished on npm

    plugins/solana-wallet-toolkit/.mcp.json:1

    The Claude plugin configuration launches the MCP server using npx -y solana-wallet-toolkit-mcp with auto-install enabled and no version pin. However, mcp-server/README.md states that this server is not published to npm. If the unscoped package name solana-wallet-toolkit-mcp is unclaimed on the public npm registry, any stranger can publish a malicious package under that name and run arbitrary code on the computer of anyone who installs the plugin. Even if published by the author, running npx -y without a pinned version downloads and executes whatever code is latest on npm at runtime instead of using local repository code.

    Fix: Run the built MCP server from the local repository or plugin directory instead of fetching from npm at runtime, or publish under a verified npm scope and pin an exact version.

  2. MediumPython code injection via keypair file path in shell verification scripts

    scripts/verify-keypair.sh:205

    In scripts/verify-keypair.sh (and in verify_keypair_file inside scripts/utils.sh), the keypair file path is interpolated directly inside single quotes into a python3 -c command string. Because single quotes and parentheses are valid filename characters on Linux and macOS, running the verification script on a received keypair file with a crafted filename breaks out of the Python string literal and executes arbitrary Python code on the user's machine.

    Fix: Pass the file path as an argument via sys.argv[1] instead of interpolating it into Python code, for example: python3 -c 'import json, sys; json.load(open(sys.argv[1]))' "$KEYPAIR_FILE".

  3. LowMCP tools expose raw private keys in chat transcripts despite server 'never' exposure claim

    mcp-server/src/tools/index.ts:76

    Both generate_keypair and generate_vanity unconditionally encode and return the raw private key in plain text inside the MCP tool result, even when saveId is supplied to keep the key in server memory, and sign_message and restore_keypair accept raw private keys or seed phrases as tool arguments. Every tool call and result is sent to the cloud LLM provider, saved in plain text in local agent session logs, and kept in the model context where prompt injection from untrusted pages or issues can read it. While the plugin's SKILL.md warns about transcript exposure, mcp-server/README.md claims private keys are never logged or persisted to disk and the solana://config resource reports privateKeyExposure as 'never'.

    Fix: Omit raw secret keys from MCP tool responses when saveId is used or write keypairs directly to local 0600 files on disk, avoid accepting raw seed phrases or private keys in tool arguments, and update solana://config and mcp-server/README.md to accurately describe key exposure.

  4. LowStandalone offline wallet page loads @solana/web3.js from unpkg CDN without integrity hash

    offline.html:308

    Although offline.html instructs users to disconnect from the internet before generating or restoring wallets, it loads @solana/web3.js from https://unpkg.com over the network without a Subresource Integrity (integrity) attribute. Users must connect to the internet to load the script, and if the CDN is compromised, modified JavaScript can run with direct access to generated and pasted private keys.

    Fix: Add a sha384 integrity hash and crossorigin="anonymous" to the script tag, or bundle @solana/web3.js locally so offline.html works completely offline.

  5. LowRust CLI --overwrite preserves insecure permissions on existing files

    rust/src/security.rs:112

    In rust/src/security.rs, secure_write_file sets OpenOptions::mode(0o600) when opening the output file, but never calls set_permissions afterward. On Unix systems, open(2) only applies mode when creating a new file; if a user passes --overwrite on an existing file that has broader permissions such as 0644, the newly generated private key is written into a file that remains readable by other local users.

    Fix: Explicitly set permissions to 0o600 on the opened file handle via set_permissions, or write to a newly created 0600 temporary file and atomically rename it.