MCP EV Digital Twin Agent
An AI-powered EV Digital Twin platform for battery health monitoring, predictive maintenance, fleet analytics, and intelligent decision support using MCP tools for SOH prediction and RUL estimation.
README
🔋 MCP-Based EV Digital Twin Agent with Gemma-Powered Tool Calling
An AI-powered EV Digital Twin platform that combines battery analytics, predictive maintenance, fleet monitoring, MCP-based tooling, and Gemma-powered intelligent decision support.
The system allows users to analyze battery health, estimate remaining useful life (RUL), monitor fleet-wide battery performance, detect data drift, and interact with EV analytics through a natural language interface.
Dashboard Preview
Battery Digital Twin

Fleet Analytics

Monitoring & Drift Detection

🚗 Key Features
Battery Digital Twin
- State of Health (SOH) Prediction
- Remaining Useful Life (RUL) Estimation
- Battery Range Estimation
- Future Degradation Simulation
- What-if Scenario Analysis
Charging Intelligence
- Charging Pattern Analysis
- Charging Risk Scoring
- Fast Charging Detection
- Battery Protection Recommendations
Driving Intelligence
- Driving Style Analysis
- Energy Consumption Evaluation
- Vehicle Efficiency Insights
Predictive Maintenance
- Maintenance Priority Assessment
- Maintenance Recommendations
- Battery Risk Identification
Fleet Analytics
- Fleet Health Monitoring
- Healthiest Battery Detection
- Riskiest Battery Detection
- Fleet Status Evaluation
Data Drift Detection
- SOH Drift Monitoring
- Fleet Stability Analysis
- Monitoring Dashboard
Gemma-Powered Tool Calling Agent
The system includes a tool-calling EV assistant powered by Gemma.
Examples:
- Compare B0005 and B0047
- Which battery is the riskiest?
- Which battery is the healthiest?
- Why is B0047 riskier than B0005?
The agent automatically selects the appropriate analytical tool and converts the tool output into a professional EV engineering explanation.
MCP Server Tools
Implemented MCP-compatible tools:
predict_future_soh()estimate_rul()
The project includes MCP server infrastructure and tool-based EV analytics services.
🏗 Architecture
User
│
▼
Gemma Tool-Calling Agent
│
▼
EV Digital Twin Engine
│
├── Battery Twin
├── Charging Intelligence
├── Driving Intelligence
├── Predictive Maintenance
├── Fleet Monitoring
├── Drift Detection
└── MCP Server Tools
│
▼
Streamlit Dashboard
📊 Datasets
NASA Battery Dataset
Used for:
- Battery degradation modeling
- SOH prediction
- RUL estimation
EV Charging Patterns Dataset
Used for:
- Charging behavior analysis
- Charging risk assessment
EV Telemetry Dataset
Used for:
- Driving intelligence
- Energy consumption analytics
- Vehicle efficiency evaluation
🛠 Technologies
- Python
- Streamlit
- Scikit-Learn
- Pandas
- Plotly
- Ollama
- Gemma 3
- MCP (Model Context Protocol)
- Machine Learning
Installation
git clone https://github.com/mahmutcanborann/mcp-ev-digital-twin-agent.git
cd mcp-ev-digital-twin-agent
pip install -r requirements.txt
Run Dashboard
streamlit run dashboard/app.py
🔮 Future Work
- Full MCP Client-Server Tool Orchestration
- Advanced Fleet AI Analyst
- Hugging Face Deployment
- Real-Time Vehicle Telemetry Integration
- Multi-Agent EV Diagnostics
👨💻 Author
Mahmut Can Boran
Computer Engineer | AI Engineer |
Areas of Interest:
- Automotive AI
- Digital Twins
- Agentic Systems
- Predictive Maintenance
- EV Software
- MCP Architectures
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.