NA

niceberginc/agentipy-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

4 stars 7 forks 质量 56 趋势 12

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.

概览

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. 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. - Python 3.

README

以下为原文 README 节选,完整内容请查看原文。

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

# 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

Option 2: Manual Setup

  1. Create a virtual environment:
python -m venv .venv
source .venv/bin/activate  # On Windows, use `.venv\Scripts\activate`
  1. Install required packages:
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

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:

  1. 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
  2. Add the Configuration Create or edit the configuration file and add the following JSON:

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "agentipy": { "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"] } } }