Solana-MCP logo

Solana-MCP

by solanamcp

Solana-MCP is a fully on-chain operation platform designed specifically for the Solana blockchain. It simplifies user interactions with the Solana ecosystem by using natural language commands, improving efficiency and user experience.

View on GitHub

Last updated: N/A

Solana-MCP

Solana Agent Kit MCP Server

Overview

Solana-MCP is a fully on-chain operation platform designed specifically for the Solana blockchain. By using natural language commands, Solana-MCP simplifies user interactions with the Solana ecosystem, improving efficiency and user experience.

Features

  • Natural Language Command Support: Execute complex on-chain operations by parsing user input with LLM technology.
  • DApp Integration: Seamlessly connect with major DApps in the Solana ecosystem.
  • Digital Asset Management: Support real-time management and trading of major Solana-based assets.
  • DeFi Operations: Perform staking, lending, and other DeFi activities with one-click solutions.
  • Open API: Developer-friendly APIs for integrating on-chain operations.

Technical Architecture

Core Technologies

  • LLM (Large Language Model):
    • Multi-language support for global users.
    • Intent recognition for accurate operations.
    • Context understanding for handling complex commands.
    • Dynamic learning for continuous optimization.
  • Solana Blockchain:
    • High throughput for fast operations.
    • Low fees to reduce user costs.
    • Strong security based on robust consensus mechanisms.
    • High scalability to meet growing user demands.
  • Smart Contracts:
    • Automated execution of on-chain operations.
    • Transparent and secure code logic.
    • Programmable and extensible for diverse use cases.

Workflow

  1. Users input natural language commands on the Solana-MCP platform.
  2. LLM parses the commands to identify intent and parameters.
  3. Solana-MCP maps the parsed results to corresponding on-chain operations.
  4. Smart contracts are invoked to execute the operations.
  5. Users sign transactions with their Solana wallet.
  6. Transactions are executed on the Solana blockchain.
  7. Results are returned to the platform and displayed to the user.

Installation

  1. Clone the repository:
    git clone https://github.com/solanamcp/solana-mcp.git
    cd solana-mcp
    
  2. Install dependencies:
    npm install
    
  3. Start the development server:
    npm run dev
    

API Documentation

Example: Execute On-Chain Transaction

Request:

POST /api/execute
Content-Type: application/json

{
  "command": "Buy 10 SOL"
}

Response:

{
  "status": "success",
  "transactionId": "5G9s...kL2"
}

Example: Query Assets

Request:

GET /api/assets
Authorization: Bearer <token>

Response:

{
  "assets": [
    { "name": "SOL", "balance": 10.5 },
    { "name": "USDC", "balance": 200.0 }
  ]
}

Contributing

We welcome contributions! Please follow these steps:

  1. Fork this repository.
  2. Create a new branch:
    git checkout -b feature/your-feature
    
  3. Commit your changes:
    git commit -m "Add your feature"
    
  4. Push the branch:
    git push origin feature/your-feature
    
  5. Submit a Pull Request.

License

This project is open-sourced under the MIT License.