Enables AI-powered task processing and direct query responses through Google's Gemini API, supporting both structured task workflows with tool integration and simple conversational AI interactions.
π MCP Agentic AI Server Project
A comprehensive Model Context Protocol (MCP) implementation featuring dual AI server architecture, real-time monitoring, and an interactive dashboard.
π Project Overview
This project demonstrates a production-ready MCP (Model Context Protocol) Agentic AI Server system with:
π§ Custom MCP Server - Task-based AI processing with tool integration
π Public MCP Server - Direct AI query processing
π¨ Interactive Dashboard - Real-time monitoring and user interface
π Live Statistics - Performance metrics and analytics
π οΈ Extensible Tools - Modular tool framework for custom functionality
ποΈ Architecture
π Quick Start
Prerequisites
Python 3.12+ (Conda environment recommended)
Google Gemini API Key (Get one here)
Git for cloning the repository
1. Clone & Setup
2. Environment Configuration
Create a .env file in the project root:
3. Run the Application
Open 4 terminals and run the following commands:
Terminal 1: Custom MCP Server π§
Server will start on
Terminal 2: Public MCP Server π
Server will start on
Terminal 3: Streamlit Dashboard π¨
Dashboard will open at
Terminal 4: Test the APIs π§ͺ
π― Features
π§ Custom MCP Server Features
Asynchronous Task Processing - Create tasks with unique IDs
Tool Integration Framework - Extensible tool system
Performance Monitoring - Real-time statistics tracking
Error Handling - Robust error management and logging
π Public MCP Server Features
Direct AI Queries - Instant responses from Gemini
Simple API - Easy-to-use REST endpoints
Statistics Tracking - Performance metrics and analytics
High Availability - Designed for concurrent requests
π¨ Dashboard Features
Modern UI Design - Glassmorphism effects and animations
Real-time Updates - Live statistics and performance metrics
Responsive Design - Mobile-friendly interface
Interactive Forms - Easy server selection and input handling
π API Documentation
Custom MCP Server (Port 8000)
Create Task
Execute Task
Get Statistics
Public MCP Server (Port 8001)
Ask Question
Get Statistics
π οΈ Project Structure
π§ Development
Adding Custom Tools
Create a new tool file in
mcp-agentic-ai/custom_mcp/tools/:
Import and use in
mcp_controller.py:
Extending the Dashboard
The Streamlit dashboard can be customized by modifying streamlit_demo/app.py:
Add new UI components
Implement additional statistics
Create new visualizations
Add export functionality
π Documentation
Comprehensive documentation is available in the documentation/ folder:
π - Complete project guide (1500+ lines)
π - Mermaid workflow diagrams
π - System design diagrams
π - Technology details
π Learning Outcomes
By completing this project, you'll learn:
π€ AI Integration - Google Gemini API, prompt engineering
π§ Backend Development - Flask, REST APIs, microservices
π¨ Frontend Development - Streamlit, modern CSS, responsive design
π System Monitoring - Real-time statistics, performance tracking
ποΈ Architecture Design - Microservices, event-driven patterns
π Security Practices - API security, environment management
π Deployment
Local Development
Follow the Quick Start guide above.
Production Deployment
For production deployment, consider:
π³ Docker - Containerize each service
βΈοΈ Kubernetes - Orchestrate containers
π HTTPS - SSL/TLS certificates
π Monitoring - Prometheus, Grafana
ποΈ Database - PostgreSQL, Redis
π€ Contributing
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Support
π Documentation - Check the comprehensive docs in
/documentation/π Issues - Report bugs via GitHub Issues
π¬ Discussions - Join GitHub Discussions for questions
π§ Contact - Reach out for additional support
π Acknowledgments
Google Gemini - For providing excellent AI capabilities
Streamlit - For the amazing dashboard framework
Flask - For the robust web framework
Python Community - For the incredible ecosystem
π― Next Steps
π Run the Application - Follow the Quick Start guide
π Read Documentation - Explore the comprehensive docs
π§ Customize Tools - Add your own custom tools
π¨ Enhance UI - Improve the dashboard design
π Add Features - Implement new functionality
π Deploy - Take it to production
Ready to build the future of AI? Let's get started! π
Built with β€οΈ for the AI community. Star β this repo if you find it helpful!
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A dual-server MCP implementation with task-based AI processing using Google Gemini API, featuring tool integration, real-time monitoring dashboard, and extensible framework for custom AI workflows.