Solana MCP server for wallet management transactions logs and SOL transfers with developer tools
WalletMCP is an advanced Model Context Protocol (MCP) server tailored for integrating seamlessly with AI applications and tools, specifically for interacting with the Solana blockchain. It leverages a range of technologies such as the Solana Web3.js SDK for blockchain communication, Zod for input validation, and TypeScript for robust type definitions. The primary goal is to offer developers an easy-to-use interface via MCP-compatible protocols, enabling them to perform operations like retrieving wallet transactions, accessing program logs, managing buffers, and sending SOL transfers.
WalletMCP supports a comprehensive suite of tools designed for interaction with the Solana blockchain. These tools are fully MCP-compliant, allowing integration into various AI applications via standardized protocols. Key features include:
getTransactions
tool allows developers to fetch recent wallet transactions easily.getProgramLogs
command, users can query transaction logs from specific programs on the Solana blockchain.listBuffers
and closeBuffer
commands respectively.sendSolTransaction
tool facilitates the transfer of SOL between wallets based on user-defined parameters.These features are powered by MCP, which ensures compatibility with a wide range of AI applications such as Claude Desktop. By adhering to this protocol, WalletMCP enhances its utility for developers building complex workflows that require blockchain interaction via AI tools.
WalletMCP is built on the Solana Web3.js SDK and utilizes the Model Context Protocol (MCP) for tool registration and validation. The core of WalletMCP revolves around providing a well-defined set of API endpoints, each following strict schema rules encoded using Zod. These schemas ensure that all communication between the AI application and the server adheres to expected structures, preventing errors and enhancing reliability.
The protocol flow diagram below illustrates how an AI application (like Claude Desktop) interacts with WalletMCP:
graph TB
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
This diagram shows the seamless flow of data and commands between an AI application, the local MCP client, and ultimately to WalletMCP where specific blockchain operations are performed.
To deploy WalletMCP, follow these steps:
Clone the Repository
git clone https://github.com/paulfruitful/WalletMCP
Change into the Project Directory
cd walletMCP
Install Dependencies
npm install
Build the MCP Server
npm run build
Once these steps are completed, you can test WalletMCP using the provided instructions.
WalletMCP serves as a critical component for developers who need to integrate blockchain interactions into their AI workflows. For instance, imagine an AI application that needs to verify wallet balances before executing high-value transactions. With WalletMCP, this process can be automated seamlessly.
Another use case involves tracking transaction history and sending notifications based on specific events such as buffer closures or receipt of SOL. This real-time data collection is crucial for building trust and transparency in financial applications powered by AI.
By leveraging WalletMCP, developers can create more sophisticated and reliable applications that interact with the Solana blockchain while maintaining security and usability.
WalletMCP supports integration with several popular MCP clients such as Claude Desktop. To connect your instance of WalletMCP to an MCP client like Claude Desktop, follow these steps:
On Windows:
code $env:AppData\Claude\claude_desktop_config.json
On Mac/Linux:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
Open the claude_desktop_config.json
file and add WalletMCP as a new MCP server entry:
{
"mcpServers": {
"walletMCP": {
"command": "node",
"args": [
"YOUR_PATH_PREFIX\\WalletMCP\\build\\index.js"
]
}
}
}
After adding this configuration, the MCP client will recognize WalletMCP and allow seamless interaction through its tools.
WalletMCP has broad compatibility across various AI applications and tools. The following matrix outlines the current status of integration with different clients:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ❌ | Tools Only |
Cursor | ❌ | ✅ | ❌ | Tools Only |
This matrix highlights the broad compatibility of WalletMCP, ensuring that developers can seamlessly integrate it into their workflows.
Here's an example of how to configure WalletMCP in the MCP client configuration:
{
"mcpServers": {
"walletMCP": {
"command": "node",
"args": [
"./WalletMCP/build/index.js"
],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
This sample configuration allows you to specify how the server should be initialized and any necessary environment variables.
WalletMCP employs robust security measures, including private key protection and secure data handling. Private keys are never stored or logged by the server.
Currently, not all tools are available on every client. For example, prompt-based interactions may differ between clients, but basic tools like transaction retrieval and buffer management work universally.
Yes, by following the protocol architecture, extending WalletMCP to support other blockchain networks is feasible through minor modifications or new modules.
WalletMCP requires Node.js v16+ and either Yarn or npm. These dependencies provide a robust environment for running and building the MCP server.
Check if your configuration in the MCP client is correct, verify network connectivity to the WalletMCP server, and ensure all required dependencies are installed correctly on both the server and client sides.
This project welcomes contributions from developers building AI applications or MCP integrations. If you have ideas for improvements, feel free to open an issue or submit a pull request. Contributions can range from bug fixes to new features that enhance existing functionality.
WalletMCP is part of the broader Model Context Protocol ecosystem, which supports interoperability among various AI applications and blockchain tools. For more information on MCP and its implementations, visit the official MCP documentation and community forums.
By integrating WalletMCP, developers can unlock new possibilities for creating sophisticated AI-driven applications that interact with the Solana blockchain seamlessly.
This comprehensive guide should help you understand the capabilities and integration benefits of using WalletMCP as an MCP server in your AI workflows.
Learn how to use MCProto Ruby gem to create and chain MCP servers for custom solutions
AI Vision MCP Server offers AI-powered visual analysis, screenshots, and report generation for MCP-compatible AI assistants
Analyze search intent with MCP API for SEO insights and keyword categorization
Next-generation MCP server enhances documentation analysis with AI-powered neural processing and multi-language support
Connects n8n workflows to MCP servers for AI tool integration and data access
Expose Chicago Public Schools data with a local MCP server accessing SQLite and LanceDB databases