- Explore MCP Servers
- Solana-MCP
Solana Mcp
What is Solana Mcp
Solana-MCP is a powerful Model Context Protocol server that enables AI agents to interact with the Solana blockchain and decentralized finance (DeFi) protocols. It provides a standardized interface for performing various DeFi operations.
Use cases
Use cases for Solana-MCP include automated trading bots that manage DeFi operations, AI agents that analyze market data and execute trades, and applications that require real-time data retrieval and token management on the Solana blockchain.
How to use
To use Solana-MCP, clone the repository, install dependencies, configure your environment variables, build the project, and start the server. Ensure you have a Solana wallet and an RPC endpoint for connectivity.
Key features
Key features of Solana-MCP include querying wallet balances, transferring SOL and SPL tokens, executing token swaps, fetching real-time price data, and performing advanced DeFi operations, all through a secure and efficient interface.
Where to use
Solana-MCP can be used in various fields including decentralized finance (DeFi), AI-driven trading systems, automated portfolio management, and any application requiring interaction with the Solana blockchain.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Solana Mcp
Solana-MCP is a powerful Model Context Protocol server that enables AI agents to interact with the Solana blockchain and decentralized finance (DeFi) protocols. It provides a standardized interface for performing various DeFi operations.
Use cases
Use cases for Solana-MCP include automated trading bots that manage DeFi operations, AI agents that analyze market data and execute trades, and applications that require real-time data retrieval and token management on the Solana blockchain.
How to use
To use Solana-MCP, clone the repository, install dependencies, configure your environment variables, build the project, and start the server. Ensure you have a Solana wallet and an RPC endpoint for connectivity.
Key features
Key features of Solana-MCP include querying wallet balances, transferring SOL and SPL tokens, executing token swaps, fetching real-time price data, and performing advanced DeFi operations, all through a secure and efficient interface.
Where to use
Solana-MCP can be used in various fields including decentralized finance (DeFi), AI-driven trading systems, automated portfolio management, and any application requiring interaction with the Solana blockchain.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Solana MCP (Model Context Protocol)
A powerful Model Context Protocol (MCP) server for AI agents to interact with the Solana blockchain and DeFi protocols.
🚀 Overview
Solana MCP provides a standardized interface for AI agents (like Claude, ChatGPT, etc.) to perform DeFi operations on the Solana blockchain. It bridges the gap between artificial intelligence and decentralized finance, allowing AI systems to:
- Query wallet balances and token holdings
- Transfer SOL and SPL tokens
- Execute token swaps
- Fetch real-time price data
- Perform advanced DeFi operations
Built on top of the Solana Agent Kit and the Model Context Protocol (MCP), this tool provides a secure, efficient, and standardized interface for automated DeFi operations.
📋 Prerequisites
- Node.js v22.x or later
- npm or yarn package manager
- Solana wallet (keypair)
- RPC endpoint for Solana (e.g., Helius, Alchemy, or your own node)
🔧 Installation
- Clone this repository:
git clone https://github.com/caiovicentino/Solana-MCP.git
cd Solana-MCP
- Install dependencies:
npm install
- Create a
.envfile in the root directory with the following variables:
SOLANA_PRIVATE_KEY=your_private_key_here RPC_URL=your_rpc_url_here OPENAI_API_KEY=optional_if_using_openai
⚠️ Security Warning: Never commit your
.envfile or expose your private key. Add.envto your.gitignorefile.
- Build the project:
npm run build
🚀 Usage
Start the MCP server:
npm start
When successfully started, you should see:
✅ Connected to Solana 🔗 Using RPC: [your-rpc-endpoint] 👛 Wallet configured: [your-wallet-address] 🚀 Starting Yield AI MCP Server... 📊 Available DeFi actions: 8 ✨ Yield AI MCP Server started. Ready to perform DeFi operations on Solana!
💬 Available Actions
The following DeFi actions are available through the MCP server:
| Action | Description |
|---|---|
get_wallet |
Get the current wallet address |
check_balance |
Check SOL balance of the wallet |
transfer_sol |
Transfer SOL to another wallet |
list_tokens |
List all tokens in the wallet |
fetch_price |
Fetch current price of a token |
trade_tokens |
Execute a trade between tokens |
get_tps |
Get current Solana network TPS |
swap_tokens |
Swap tokens via liquidity pools |
🔌 Integration with AI Models
This MCP server is designed to be used with AI models that support the Model Context Protocol. The server uses standard input/output for communication, making it compatible with various AI integration frameworks.
Example of using with Claude:
// Example code for integrating with Claude API
// (Placeholder - actual integration depends on your specific AI framework)
🔒 Security Considerations
- Always review transactions before they are executed
- Consider implementing transaction limits
- Secure your private key with proper key management practices
- Use a dedicated wallet with limited funds for testing
- Monitor for any suspicious activities
🛠️ Advanced Configuration
For more advanced configurations, you can modify the following files:
src/index.ts: Main entry point.env: Environment configuration
📚 Resources
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










