Sponsored by Deepsite.site

WalletMCP - Solana Blockchain MCP Server

Created By
paulfruitful7 months ago
A Simple MCP Server For Interacting With Solana Wallets
Content

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.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Amap Maps高德地图官方 MCP Server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
WindsurfThe new purpose-built IDE to harness magic
DeepChatYour AI Partner on Desktop
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Playwright McpPlaywright MCP server
CursorThe AI Code Editor
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Serper MCP ServerA Serper MCP Server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
ChatWiseThe second fastest AI chatbot™
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Tavily Mcp
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code