Skip to main content
Glama
Solana Trading MCP Server

Solana Trading MCP Server

by itsKazgar

πŸ€– Solana Trading MCP Server

πŸ–₯️ Live Demo β†’ An AI-powered Solana trading bot with a live dashboard, built on the MCP (Model Context Protocol) framework.

Features

  • MCP Server β€” exposes Solana trading tools via HTTP for any AI agent

  • AI Agent β€” connects a local Ollama model (hermes3) to control the bot

  • Live Dashboard β€” monitor trades, balances, and bot status

  • Bot Studio β€” configure and control the bot from the browser

  • Transaction Trail β€” full history of all transactions

  • Paper Mode β€” test without real money

Related MCP server: NoesisAPI

Tech Stack

  • Python, FastAPI, FastMCP 2.0

  • Solana, solders, anchorpy

  • Streamlit + Plotly dashboard

  • LangChain + Ollama (hermes3)

  • SQLite + Redis for state

Setup

  1. Clone the repo

git clone https://github.com/itsKazgar/solana-mcp-server.git
cd solana-mcp-server
  1. Create virtual environment

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
  1. Copy and fill in your config

cp .env.example .env
  1. Replace YOUR_IP in agent.py and mcp_config.json with your server IP

  2. Start the server

python main.py
  1. Start the dashboard

streamlit run dashboard/app.py

Security

  • Never commit your .env file

  • Use PAPER_MODE=true before trading real funds

  • Generate a strong token: openssl rand -hex 32

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers