Crypto LLM Assistant Gpt3.5 Turbo Fastmcp Langchain Streamlit
AI-powered multi-server crypto intelligence assistant built using FastMCP, LangChain, and OpenAI GPT-3.5-Turbo, orchestrated via the Model Context Protocol (MCP). Real-time market analytics, crypto news, stock price and trading insights delivered through a Streamlit interface
Ask AI about Crypto LLM Assistant Gpt3.5 Turbo Fastmcp Langchain Streamlit
Powered by Claude ยท Grounded in docs
I know everything about Crypto LLM Assistant Gpt3.5 Turbo Fastmcp Langchain Streamlit. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
๐ Crypto LLM Assistant /h1>
๐ง Crypto LLM Assistant โ Multi-Server AI System using MCP, LangChain & Streamlit
๐ Intelligent Multi-Server Crypto Assistant
This project is a fully modular crypto analysis system built with the Model Context Protocol (MCP), where multiple AI-powered servers collaborate to provide live market data, analytics, and news โ all coordinated by a central LLM client.
Users can query naturally (โWhat is the current price of BTC?โ), and the system automatically chooses the right tool/server, executes it, and replies in natural human language.
๐๏ธ Project Architecture
.
โโโ client/
โ โโโ client_host.py # MCP Client that connects to all servers
โ
โโโ servers/
โ โโโ market_data_server.py # Fetches real-time crypto prices and top movers
โ โโโ news_server.py # Retrieves crypto-related news from APIs
โ โโโ analytics_server.py # Performs technical indicators (RSI, MACD, etc.)
โ
โโโ ui/
โ โโโ app.py # Streamlit UI Interface
โ
โโโ .env # API keys and environment variables
โโโ pyproject.toml # Managed by UV for dependency & script control
โโโ README.md # Youโre here
โโโ streamlit_app.py # (Optional) Streamlit UI for visual exploration
๐งฉ Key Technologies & Tools Used
| Category | Tool / Library | Purpose |
|---|---|---|
| ๐ Python Management | uv | Modern dependency & virtual environment management |
| ๐ค AI & LLMs | LangChain, OpenAI (GPT-3.5-Turbo) | Natural language reasoning, tool planning, response generation |
| ๐ Protocol Layer | FastMCP (Model Context Protocol) | Defines standardized clientโserver communication for modular AI components |
| ๐ APIs | CoinGecko API, Crypto News API | Real-time crypto data & news |
| ๐ UI Layer | Streamlit | Visual frontend for interactive crypto assistant |
| ๐ง Orchestration | asyncio, anyio | Concurrent server communication |
| ๐งฐ Environment | dotenv | Secure environment variable management |
โ๏ธ Features
โ
Modular architecture โ Market, News, and Analytics servers run independently
โ
MCP protocol โ Secure, standard communication between client and servers
โ
LangChain integration โ Smart prompt handling and reasoning
โ
Dynamic tool execution โ LLM decides which server tool to call
โ
Real-time crypto data via CoinGecko API
โ
Natural language responses (no raw JSON shown to users)
โ
Streamlit frontend for clean, interactive user experience
โ
Async handling โ concurrent request processing with asyncio
โ
Built and managed entirely with uv (no requirements.txt!)
๐ง How It Works (Conceptual Flow)
- User Query โ โWhat is the price of BTC?โ
- The client (
client_host.py) sends the query to the OpenAI LLM. - The LLM analyzes available tools (like
get_price,get_crypto_news, etc.) from all MCP servers. - The LLM returns a JSON instruction such as:
{"tool": "get_price", "arguments": {"symbol": "BTC"}}
5.The client runs that tool on the correct server (Market Data server). 6.The server fetches live data (from CoinGecko API) and returns JSON. 7.The client passes that response back into the LLM. 8.The LLM summarizes the result in natural language, e.g.:
โThe current price of Bitcoin (BTC) is approximately $67,421 USD.โ
##๐งฎ Example Tools Implemented
###๐ช Market Data Server
get_price() get_market_data() get_top_movers()
###๐ฐ News Server
get_crypto_news() get_coin_news(symbol: str)
###๐ Analytics Server
get_rsi(symbol: str) get_macd(symbol: str) get_fear_greed_index()
โก Setup Instructions
We use uv as the environment and dependency manager.
1๏ธโฃ Clone the Repo
git clone https://github.com/yourusername/crypto-llm-assistant.git
cd crypto-llm-assistant
2๏ธโฃ Create Virtual Environment
source .venv/bin/activate
3๏ธโฃ Install Dependencies
uv sync
4๏ธโฃ Add Environment Variables
Create a .env file:
OPENAI_API_KEY=your_openai_api_key_here
๐ Running the System
Run Entire Client (Main Orchestrator)
uv run python client/client_host.py
Run Servers Individually (for Debug)
uv run python servers/market_data_server.py
uv run python servers/news_server.py
uv run python servers/analytics_server.py
๐งช Development Mode
To inspect any server in isolation:
uv run fastmcp dev servers/market_data_server.py
Youโll see logs like:
โ
[Server] market_data_server starting up...
๐ฌ Example Conversations
Enter query: What is the current price of BTC?
The current price of Bitcoin (BTC) is approximately $67,421 USD.
Enter query: Tell me the top movers in the crypto market.
Top gainers today include PUMP (+16.5%), IP (+12.6%), and MYX (+9.7%).
Enter query: Tell me about latest crypto news.
Whales scoop $1.7B in Ethereum as exchange balances hit a 9-year low...
๐ง Crypto LLM Assistant โ Multi-Server AI System using MCP, LangChain & Streamlit

๐๏ธ Project Architecture
๐ Streamlit Frontend
A lightweight Streamlit dashboard lets you interact visually with the assistant. Run Streamlit App
uv run streamlit run streamlit_app.py
Future Enhancements
-Integrate trading simulation tools -Add sentiment analytics via NLP models -Expand MCP servers to support stock & forex data
๐โโ๏ธ Author
Abdullah Shahzad
๐ง abdullahhunjra@gmail.com
๐ LinkedIn
๐ป GitHub
