
Solana Model Context Protocol
STDIOMCP server for Solana blockchain data processing and interaction
MCP server for Solana blockchain data processing and interaction
A Python-based server implementing the Model Context Protocol for the Solana blockchain. This server provides an interface for interacting with Solana blockchain data and models.
pip install -r requirements.txt
cp .env.example .env
.env
file with your Solana RPC node detailsBuild the Docker image:
docker build -t solana-mcp-server .
Run the Docker container:
docker run -p 8000:8000 --env-file .env solana-mcp-server
python main.py
uvicorn main:app --host 0.0.0.0 --port 8000
docker run -p 8000:8000 --env-file .env solana-mcp-server
Once the server is running, access API documentation at:
http://localhost:8000/docs
The following environment variables can be configured:
HOST
: Server host (default: 0.0.0.0)PORT
: Server port (default: 8000)DEBUG
: Enable debug mode (default: False)LOG_LEVEL
: Logging level (default: INFO)CORS_ORIGINS
: Comma-separated list of allowed CORS origins (default: *)RELOAD
: Enable hot reload for development (default: False)The server provides enhanced Solana analytics capabilities through the following endpoints:
POST /api/analyzer/token
Get detailed information about a token including price, market cap, and supply data.
POST /api/analyzer/whales
Identify large holders ("whales") of specific tokens with configurable thresholds.
POST /api/analyzer/account
Get detailed parsed account information with additional context.
POST /api/analyzer/token-accounts
Get token accounts for an address with enriched pricing and valuation data.