Fastlanepy MCP Server
A Model Context Protocol server that extends Claude's capabilities by providing tools to interact with the Solana blockchain, allowing AI agents to perform operations like executing transactions, managing wallets, and accessing token information.
README
Fastlanepy 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 Fastlanepy 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)
# Clone the repository
git clone https://github.com/fastlanepython/Fastlanepy-mcp
cd Fastlanepy-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
Option 2: Manual Setup
- Create a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows, use `.venv\Scripts\activate`
- Install required packages:
pip install Fastlanepy>=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
Configuration
Environment Setup
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
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
commandfield, userun_mcp.shfor Unix/Mac systems orrun_mcp.batfor Windows systems. Make sure to use the correct absolute path to the script file on your system.{ "mcpServers": { "Fastlanepy": { "command": "/path/to/your/run_mcp.sh", # Replace with .bat for Windows "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"] } } } -
Restart Claude Desktop After making these changes, restart Claude Desktop for the configuration to take effect.
Project Structure
Fastlanepy-mcp/
├── server.py # Main entry point
├── run_mcp.sh # Run script for Unix/Mac
├── run_mcp.bat # Run script for Windows
├── requirements.txt # Dependencies
└── .env # Environment variables
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
.envfile contains the correct credentials - Check Claude Desktop logs for error messages
Dependencies
Key dependencies include:
- 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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。