Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

ping-mcp

MCP.Pizza Chef: PingAIFun

ping-mcp is a Model Context Protocol server built with the Ping Agent Kit that enables AI agents to interact seamlessly with the Solana blockchain. It provides standardized tools for executing transactions, querying account data, and managing Solana wallets, facilitating efficient blockchain operations within AI workflows. Designed for Node.js environments, it supports mainnet, testnet, and devnet Solana RPC endpoints.

Use This MCP server To

Execute Solana blockchain transactions via AI agents Query Solana account information programmatically Manage Solana wallets within AI-driven workflows Integrate Solana blockchain data into AI applications Standardize blockchain interactions for multi-step AI reasoning Enable AI agents to perform onchain operations securely

README

MCP Server built with the Ping Agent Kit

License: ISC

A Model Context Protocol (MCP) server offering onchain tools for AI, enabling seamless interaction with the Solana blockchain via a standardized interface. Built on the Ping Agent Kit, this implementation allows AI agents to execute blockchain operations efficiently.

Overview

This MCP server extends Claude's capabilities by providing tools to:

  • Interact with Solana blockchain
  • Execute transactions
  • Query account information
  • Manage Solana wallets

The server implements the Model Context Protocol specification to standardize blockchain interactions for AI agents.

Prerequisites

  • Node.js (v16 or higher)
  • pnpm (recommended), npm, or yarn
  • Solana wallet with private key
  • Solana RPC URL (mainnet, testnet, or devnet)

Installation

Option 1: Install from npm ( recommend for clients like Cursor/Cline)

# Install globally
npm install -g ping-mcp

# Or install locally in your project
npm install ping-mcp

Option 2: Build from Source

  1. Clone this repository:
git clone https://github.com/PingAIFun/ping-mcp.git
cd ping-mcp
  1. Install dependencies:
pnpm install
  1. Build the project:
pnpm run build

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
OPENAI_API_KEY=your_openai_api_key # OPTIONAL

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:

    If you installed via npm (Option 1):

    {
      "mcpServers": {
        "solana-mcp": {
          "command": "npx",
          "args": ["ping-mcp"],
          "env": {
            "RPC_URL": "your_solana_rpc_url_here",
            "SOLANA_PRIVATE_KEY": "your_private_key_here",
            "OPENAI_API_KEY": "your_openai_api_key"  // OPTIONAL
          },
          "disabled": false,
          "autoApprove": []
        }
      }
    }

    If you built from source (Option 2):

    {
      "mcpServers": {
        "solana-mcp": {
          "command": "node",
          "args": ["/path/to/ping-mcp/build/index.js"],
          "env": {
            "RPC_URL": "your_solana_rpc_url_here",
            "SOLANA_PRIVATE_KEY": "your_private_key_here",
            "OPENAI_API_KEY": "your_openai_api_key"  // OPTIONAL
          },
          "disabled": false,
          "autoApprove": []
        }
      }
    }
  3. Restart Claude Desktop After making these changes, restart Claude Desktop for the configuration to take effect.

Project Structure

ping-agent-kit-mcp/
├── src/
│   ├── index.ts          # Main entry point
├── package.json
└── tsconfig.json

Available Tools

The MCP server provides the following Solana blockchain tools:

  • GET_ASSET - Retrieve information about a Solana asset/token
  • DEPLOY_TOKEN - Deploy a new token on Solana
  • GET_PRICE - Fetch price information for tokens
  • WALLET_ADDRESS - Get the wallet address
  • BALANCE - Check wallet balance
  • TRANSFER - Transfer tokens between wallets
  • MINT_NFT - Create and mint new NFTs
  • TRADE - Execute token trades
  • REQUEST_FUNDS - Request funds (useful for testing/development)
  • RESOLVE_DOMAIN - Resolve Solana domain names
  • GET_TPS - Get current transactions per second on Solana

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:

  1. Verify your Solana private key is correct
  2. Check your RPC URL is accessible
  3. Ensure you're on the intended network (mainnet, testnet, or devnet)
  4. Check Claude Desktop logs for error messages
  5. Verify the build was successful

Dependencies

Key dependencies include:

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License.

ping-mcp FAQ

How do I install ping-mcp?
Install ping-mcp using npm, pnpm, or yarn in a Node.js environment (v16+).
What prerequisites are needed to run ping-mcp?
You need Node.js v16 or higher, a Solana wallet private key, and a Solana RPC URL.
Can ping-mcp interact with different Solana networks?
Yes, it supports mainnet, testnet, and devnet Solana RPC endpoints.
How does ping-mcp standardize blockchain interactions?
It implements the Model Context Protocol specification to provide a consistent interface for AI agents.
Is ping-mcp compatible with multiple AI LLM providers?
Yes, it works with models like OpenAI, Claude, and Gemini by exposing standardized blockchain tools.
What blockchain operations can AI agents perform using ping-mcp?
Agents can execute transactions, query accounts, and manage wallets on Solana.
How secure is the wallet management in ping-mcp?
Wallet private keys are required and should be securely managed; ping-mcp facilitates secure transaction signing.
Can ping-mcp be integrated into existing AI workflows?
Yes, it is designed to plug into AI agents and workflows requiring Solana blockchain access.