This MCP server extends Claude's capabilities by enabling interaction with the Solana blockchain through a standardized interface. It provides a comprehensive set of tools for blockchain operations, including transactions, wallet management, price predictions, trading, and cross-chain actions.
# Clone the repository
git clone https://github.com/niceberginc/agentipy-mcp
cd agentipy-mcp
# Create and activate virtual environment
python -m venv .venv
source .venv/bin/activate # On Windows, use `.venv\Scripts\activate`
# Install dependencies
pip install -r requirements.txt
python -m venv .venv
source .venv/bin/activate # On Windows, use `.venv\Scripts\activate`
pip install agentipy>=2.0.8 cryptography>=3.4.7 python-dotenv>=0.17.1 web3>=7.8.0 allora_sdk>=0.2.0 mcp>=1.4.0
Create a .env
file with your credentials:
# Solana Configuration
SOLANA_PRIVATE_KEY=your_private_key_here
RPC_URL=your_solana_rpc_url_here
# Optional API Keys
OPENAI_API_KEY=your_openai_api_key
ALLORA_API_KEY=your_allora_api_key
COINGECKO_PRO_API_KEY=your_coingecko_api_key
To add this MCP server to Claude Desktop:
Locate the Claude Desktop Configuration File
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude\claude_desktop_config.json
Add the Configuration
Create or edit the configuration file and add the following JSON:
{
"mcpServers": {
"agentipy": {
"command": "/path/to/your/run_mcp.sh",
"env": {
"RPC_URL": "your_solana_rpc_url_here",
"SOLANA_PRIVATE_KEY": "your_private_key_here",
"OPENAI_API_KEY": "your_openai_api_key",
"ALLORA_API_KEY": "your_allora_api_key",
"COINGECKO_PRO_API_KEY": "your_coingecko_api_key"
},
"disabled": false,
"autoApprove": ["GET_BALANCE", "GET_PRICE_PREDICTION"]
}
}
}
Note: For Windows, use
.bat
instead of.sh
in the command path.
Restart Claude Desktop
After making these changes, restart Claude Desktop for the configuration to take effect.
GET_BALANCE
- Check wallet balanceTRANSFER
- Transfer tokens between walletsDEPLOY_TOKEN
- Deploy new tokens on SolanaGET_PRICE_PREDICTION
- Get price predictionsGET_ALL_TOPICS
- Get available topicsSTAKE_WITH_JUP
- Stake tokens using JupiterTRADE_WITH_JUP
- Trade tokens using JupiterCREATE_DEBRIDGE_TRANSACTION
- Create a cross-chain bridge transactionEXECUTE_DEBRIDGE_TRANSACTION
- Execute a cross-chain bridge transactionCHECK_TRANSACTION_STATUS
- Check the status of a cross-chain bridge transactionPYTH_GET_PRICE
- Get the price of a coin from PythCOINGECKO_GET_TOKEN_INFO
- Get token information from CoinGeckoCOINGECKO_GET_COIN_PRICE_VS
- Get the price of a coin in a specific currencyCOINGECKO_GET_TOP_GAINERS
- Get the top gainersCOINGECTO_GET_TRENDING_POOLS
- Get the trending poolsCOINGECKO_GET_TRENDING_TOKENS
- Get the trending tokensCOINGECKO_GET_TOKEN_PRICE_DATA
- Get token price dataCOINGECKO_GET_LATEST_POOLS
- Get the latest poolsIf you encounter issues:
.env
file contains the correct credentialsTo add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "agentipy" '{"command":"/path/to/your/run_mcp.sh","env":{"RPC_URL":"your_solana_rpc_url_here","SOLANA_PRIVATE_KEY":"your_private_key_here","OPENAI_API_KEY":"your_openai_api_key","ALLORA_API_KEY":"your_allora_api_key","COINGECKO_PRO_API_KEY":"your_coingecko_api_key"},"disabled":false,"autoApprove":["GET_BALANCE","GET_PRICE_PREDICTION"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"agentipy": {
"command": "/path/to/your/run_mcp.sh",
"env": {
"RPC_URL": "your_solana_rpc_url_here",
"SOLANA_PRIVATE_KEY": "your_private_key_here",
"OPENAI_API_KEY": "your_openai_api_key",
"ALLORA_API_KEY": "your_allora_api_key",
"COINGECKO_PRO_API_KEY": "your_coingecko_api_key"
},
"disabled": false,
"autoApprove": [
"GET_BALANCE",
"GET_PRICE_PREDICTION"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"agentipy": {
"command": "/path/to/your/run_mcp.sh",
"env": {
"RPC_URL": "your_solana_rpc_url_here",
"SOLANA_PRIVATE_KEY": "your_private_key_here",
"OPENAI_API_KEY": "your_openai_api_key",
"ALLORA_API_KEY": "your_allora_api_key",
"COINGECKO_PRO_API_KEY": "your_coingecko_api_key"
},
"disabled": false,
"autoApprove": [
"GET_BALANCE",
"GET_PRICE_PREDICTION"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect