Production-grade Agentic AI Workspace
Built with LangGraph, Model Context Protocol (MCP), Human-in-the-Loop workflows, and secure tool orchestration to interact with external systems through natural language.
LangGraphGeminiFastAPIMongoDB AtlasMCPNext.jsOAuthGitHub APIRapidAPITavily
Authentication secured with OAuth Conversation history encrypted 30-day automatic cleanup
Core Capabilities
🧠 Agentic Reasoning
Plans actions, selects tools, evaluates results and synthesizes responses using LangGraph ReAct.
🔌 Dynamic MCP Tools
Discover and invoke external tools from connected MCP servers without modifying application code.
GitHub Integration
Fetch repository stats, analyze pull requests, and browse commit histories securely.
Smart Email Automation
Read unseen emails and securely draft responses with explicit user approval.
Live Stock Data
Fetch real-time stock prices and financial insights through RapidAPI integrations.
Web Search & Scraping
Browse the web autonomously to find factual, up-to-date information instantly.
System Architecture
🖥️ Client Layer
🔐
NextAuth.js
Google OAuth
💻
Next.js App
React Frontend
💬
ChatBox.js
Generative UI
POST /api/chat (SSE Stream)
⚙️ Server Layer
⚡
FastAPI
app/main.py
🛡️
Rate Limiter
SlowAPI + Circuit Breaker
📡
Chat API
app/api/chat.py
🗄️ Persistence Layer
🍃
MongoDB Atlas
Conversation Store
⏱️
30-Day TTL
Auto Cleanup Index
🔄
Sliding Window
Last 10 Messages
Initialize LangGraph Agent
🧠 Agentic Core (LangGraph)
🔄
State Graph
app/agent/graph.py
Reason
✨
LLM Node
Gemini / OpenRouter
tool_calls?
🛠️
Action Node
ToolNode Executor
ReAct Loop: Agent → LLM → Tool → Agent → ... → END
Invokes Tools
🔧 Built-in Tools
🔍
Web Search
Tavily API
📈
Stock Price
RapidAPI / Yahoo
🐙
GitHub Suite
6 REST API Tools
📧
Gmail
SMTP + IMAP
🌐
Webpage Reader
httpx Scraper
🧮
Calculator
Math Evaluator
🔌 MCP Integration
🔌
MCP Client
app/mcp/client.py
SSE Transport
🌐
External MCP Servers
Dynamic Tool Discovery
Auto-discovers tools via SSE →
Wraps as LangChain StructuredTool →
Available to agent without code changes
Wraps as LangChain StructuredTool →
Available to agent without code changes
Client (Next.js) → FastAPI → LangGraph ReAct Agent → Built-in Tools / MCP → MongoDB Atlas (30-day TTL)
Client➔API➔LangGraph➔MCP & Tools