mcpField
W
WalletMCP - Solana Blockchain MCP Server

WalletMCP - Solana Blockchain MCP Server

Local
github.com/paulfruitfulFinance1Updated 77w ago

About WalletMCP - Solana Blockchain MCP Server

WalletMCP is an MCP server for interacting with the Solana blockchain. It provides developers with tools for wallets, transactions, program buffers, and logs.

Key features

  1. 01Retrieve wallet transactions and SOL balances
  2. 02Read program logs
  3. 03List and close program buffers
  4. 04Send SOL transactions

Use cases

  1. 01Review recent wallet activity and balance
  2. 02Reclaim rent from unused buffers
  3. 03Inspect logs for a program
  4. 04Send SOL to another account

MCP support

It exposes Solana wallet and blockchain tools to MCP clients, including balance and transaction queries, log retrieval, buffer management, and SOL transfers.

Configuration

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

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

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

WalletMCP - Solana Blockchain MCP Server

WalletMCP is a Model Context Protocol (MCP) server implementation for interacting with the Solana blockchain. It exposes developer-friendly tools for working with wallets, transactions, program buffers, logs, and SOL transfers through MCP-compatible interfaces.

📺 Demo Video

WalletMCP Demo
Click the image above to watch the demo video

🧠 Features

  • 🔍 Retrieve wallet transactions and SOL balances.
  • 📜 Access program logs from the Solana blockchain.
  • 🧾 Claims Unused Rents (List and close BPF Upgradeable Loader buffers).
  • 💸 Send SOL transactions programmatically.
  • 🧩 Fully MCP-compliant tool definitions using Zod for schema validation.

🔧 Technologies Used

  • Solana Web3.js SDK – Solana blockchain interaction
  • Model Context Protocol (MCP) – Protocol for tool registration
  • Zod – Input validation
  • TypeScript – Strong typing and modern tooling

📋 Requirements

  • Node.js v16+
  • Yarn or npm

🚀 Getting Started

  1. Clone the repository
    git clone https://github.com/paulfruitful/WalletMCP
    

  ```bash
  cd walletMCP
  1. Install dependencies

    npm install
    
  2. Build the MCP Server

    npm run build
    

Test The Server:

To test the server you can use Claude Desktop MCP Client. Click here to download the desktop application: Download Claude Desktop

For Claude Desktop

Run the following command this command to open the Claude Desktop Config File

On Windows:

   code $env:AppData\Claude\claude_desktop_config.json

On Mac/Linux:

   code ~/Library/Application\ Support/Claude/claude_desktop_config.json

After opening the config file, add the server:

{
  "mcpServers": {
    "walletmcp": {
      "command": "node",
      "args": [
          "YOUR_PATH_PREFIX\\WalletMCP\\build\\index.js"
      ]
  }
  }
}

It's all set! You can now use the tools provided by the server in Claude Desktop. You can activate these tools on the Claude client by asking questions relating to the Solana wallet.

Claim Rents Back

Questions & Prompts like:

  • "What are my recent transactions?"

  • "How much SOL do I have?"

  • "How many buffers do I have unused?"

  • "Can You send SOL to account [accountAddress]?"

  • "What are the logs for a specific program [programId]?"

⚙️ Tools & Their Descriptions

getTransactions

Description: Retrieve recent transactions of a wallet.
Inputs:

  • walletAddress (string)
  • limit (number) - maximum number of transactions to fetch.
getBalance

Description: Fetch the SOL balance of a wallet.
Inputs:

  • walletAddress (string)
listBuffers

Description: List program buffers associated with a payer key.
Inputs:

  • payerKey (array of numbers)
closeBuffer

Description: Close a buffer and return lamports to the payer.
Inputs:

  • bufferPubkey (string)
  • payerKey (array of numbers)
getProgramLogs

Description: Fetch transaction logs from a specific program ID.
Inputs:

  • programId (string)
  • limit (number) - optional, default is 10
sendSolTransaction

Description: Send SOL from one wallet to another.
Inputs:

  • fromPrivateKey (array of numbers)
  • toPublicKeyStr (string)
  • amountSol (number)
  • mode ("main" | "dev")

🛡️ Security Considerations

  • Always protect your private keys.
  • Keys are not stored or logged in the server

🤝 Contributing

This project is open to contributions from the Solana dev community. If you have ideas for improvements, feel free to open an issue or submit a pull request.

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.