local-only server
The server can only run on the client’s local machine because it depends on local resources.
Integrations
Used for environment management to store configuration values like API keys and wallet information
Repository hosting for the MCP server code that users can clone for installation
Supported platform for running the Claude Desktop with the MCP server integration
Agentipy MCP Server for Claude Desktop
A Model Context Protocol (MCP) server that provides onchain tools for Claude AI, allowing it to interact with the Solana blockchain through a standardized interface. This implementation uses Agentipy and enables AI agents to perform blockchain operations seamlessly.
Overview
This MCP server extends Claude's capabilities by providing tools to:
- Interact with Solana blockchain
- Execute transactions
- Query account information
- Manage Solana wallets
- Get price predictions
- Trade and stake tokens
- Deploy new tokens
- Get token information from CoinGecko
- Execute cross-chain bridge transactions using deBridge
- Get real-time price data from Pyth Network
- Access comprehensive token information from CoinGecko
- Monitor trending tokens and pools
- Track top gainers and market movements
- Get detailed token price data and analytics
The server implements the Model Context Protocol specification to standardize blockchain interactions for AI agents.
Prerequisites
- Python 3.8 or higher
- Claude Desktop installed
- Solana wallet with private key
- Solana RPC URL (mainnet, testnet, or devnet)
- OpenAI API Key (optional)
- Allora API Key (optional)
- CoinGecko Pro API Key (optional)
Installation
Option 1: Quick Install (Recommended)
Option 2: Manual Setup
- Create a virtual environment:
- Install required packages:
Configuration
Environment Setup
Create a .env
file with your credentials:
Integration with Claude Desktop
To add this MCP server to Claude Desktop, follow these steps:
- Locate the Claude Desktop Configuration File
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
~/.config/Claude\claude_desktop_config.json
- macOS:
- Add the Configuration
Create or edit the configuration file and add the following JSON:
Note: For the
command
field, userun_mcp.sh
for Unix/Mac systems orrun_mcp.bat
for Windows systems. Make sure to use the correct absolute path to the script file on your system.Copy - Restart Claude Desktop After making these changes, restart Claude Desktop for the configuration to take effect.
Project Structure
Available Tools
The MCP server provides the following blockchain tools:
Native Solana Actions
GET_BALANCE
- Check wallet balanceTRANSFER
- Transfer tokens between walletsDEPLOY_TOKEN
- Deploy new tokens on Solana
Allora Actions
GET_PRICE_PREDICTION
- Get price predictionsGET_ALL_TOPICS
- Get available topics
Jupiter Actions
STAKE_WITH_JUP
- Stake tokens using JupiterTRADE_WITH_JUP
- Trade tokens using Jupiter
DeBridge Actions
CREATE_DEBRIDGE_TRANSACTION
- Create a cross-chain bridge transaction using deBridge Liquidity Network APIEXECUTE_DEBRIDGE_TRANSACTION
- Execute a cross-chain bridge transaction using deBridge Liquidity Network APICHECK_TRANSACTION_STATUS
- Check the status of a cross-chain bridge transaction using deBridge Liquidity Network API
Pyth Actions
PYTH_GET_PRICE
- Get the price of a coin from Pyth
CoinGecko Actions
COINGECKO_GET_TOKEN_INFO
- Get token information from CoinGeckoCOINGECKO_GET_COIN_PRICE_VS
- Get the price of a coin in a specific currency from CoingeckoCOINGECKO_GET_TOP_GAINERS
- Get the top gainers from CoingeckoCOINGECTO_GET_TRENDING_POOLS
- Get the trending pools from CoingeckoCOINGECKO_GET_TRENDING_TOKENS
- Get the trending tokens from CoingeckoCOINGECKO_GET_TOKEN_PRICE_DATA
- Get token price data from CoingeckoCOINGECKO_GET_LATEST_POOLS
- Get the latest pools from Coingecko
Security Considerations
- Keep your private key secure and never share it
- Use environment variables for sensitive information
- Consider using a dedicated wallet for AI agent operations
- Regularly monitor and audit AI agent activities
- Test operations on devnet/testnet before mainnet
Troubleshooting
If you encounter issues:
- Verify your Solana private key is correct
- Check your RPC URL is accessible
- Ensure all dependencies are installed correctly
- Verify your
.env
file contains the correct credentials - Check Claude Desktop logs for error messages
Dependencies
Key dependencies include:
- agentipy - Solana blockchain interaction
- python-dotenv - Environment management
- mcp - Model Context Protocol
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- 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
License
This project is licensed under the MIT License.
This server cannot be installed
A Model Context Protocol server that enables Claude AI to interact with the Solana blockchain, allowing it to execute transactions, query accounts, manage wallets, get price predictions, trade tokens, and access various blockchain data sources.