Skip to content

A fullstack AI agent platform built with React and LangGraph, featuring multiple specialized agents, real-time activity tracking, and MCP tool integrations for advanced conversational AI workflows

License

Notifications You must be signed in to change notification settings

Ylang-Labs/langgraph-react-agent-studio

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

44 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ LangGraph React Agent Studio

Built with โค๏ธ by @artreimus from Ylang Labs

A powerful, extensible fullstack AI agent platform - This is an enhanced fork of the original Gemini Fullstack LangGraph Quickstart, supercharged with multiple specialized agents, MCP (Model Context Protocol) integration, and LangChain tools support!

๐Ÿ“ธ Demo

Demo Video

Welcome Screen

Math Agent Results

MCP Agent Results

Deep Researcher Results

โœจ What Makes This Special

๐ŸŽฏ Multiple Specialized Agents - Choose from 4 powerful AI agents, each optimized for different tasks
๐Ÿ”Œ MCP Integration - First-class support for Model Context Protocol servers
๐Ÿ—๏ธ Built on LangChain & LangGraph - Powered by LangChain and LangGraph for robust agentic applications
โšก Real-time Streaming - Watch your agents think and work in real-time
๐ŸŽจ Beautiful UI - Modern React interface with Tailwind CSS and Radix UI

๐Ÿค– Available Agents

This template comes with 4 example agents to get you started:

  • ๐Ÿ” Deep Researcher - Web research with iterative refinement
  • ๐Ÿ’ฌ Chatbot - General conversation and assistance
  • ๐Ÿงฎ Math Agent - Mathematical calculations and problem-solving
  • ๐Ÿ”ง MCP Agent - Tool integration via Model Context Protocol

๐Ÿ’ก Template Design - These agents serve as examples to demonstrate the platform's capabilities. Use them as starting points to build your own specialized agents!

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+ and npm
  • Python 3.8+
  • Gemini API Key (Get one here)

1. Clone & Setup

git clone git@github.com:Ylang-Labs/langgraph-react-agent-studio.git
cd langgraph-react-agent-studio

2. Configure Environment

cd backend
cp .env.example .env

Required Configuration:

# Essential - Get your API key from https://ai.google.dev/
GEMINI_API_KEY=your_gemini_api_key_here

Optional MCP & Tool Configuration:

# MCP Filesystem (enabled by default)
MCP_FILESYSTEM_ENABLED=true
MCP_FILESYSTEM_PATH=/app/workspace

# MCP Brave Search (optional)
MCP_BRAVE_SEARCH_ENABLED=true
BRAVE_API_KEY=your_brave_api_key_here

# LangSmith (optional - for monitoring)
LANGSMITH_API_KEY=your_langsmith_api_key_here

3. Install Dependencies

# Backend
cd backend && uv sync

# Frontend
cd ../frontend && npm install

# MCP Servers
# Install MCP servers locally using npm
npm install -g @modelcontextprotocol/server-filesystem @modelcontextprotocol/server-brave-search

4. Launch the Studio

# From project root
make dev

๐ŸŽ‰ That's it! Open http://localhost:5173/app and start chatting with your AI agents!

๐Ÿ”Œ MCP (Model Context Protocol) Integration

This studio features cutting-edge MCP integration, allowing agents to seamlessly connect with external tools and services:

๐Ÿ—‚๏ธ Filesystem Server

  • Read/Write files in your workspace
  • Directory operations and file management
  • Secure sandboxed file access

๐Ÿ” Brave Search Server

  • Web search capabilities for real-time information
  • Search result processing and filtering
  • Citation tracking for reliable sources

โš™๏ธ MCP Configuration

# Required
GEMINI_API_KEY=your_gemini_api_key_here

# MCP Filesystem (enabled by default)
MCP_FILESYSTEM_ENABLED=true
MCP_FILESYSTEM_PATH=/app/workspace

# MCP Brave Search (optional)
MCP_BRAVE_SEARCH_ENABLED=true
BRAVE_API_KEY=your_brave_api_key_here

๐Ÿ—๏ธ Architecture Overview

The platform is built with a modern, scalable architecture that separates concerns and enables easy extensibility:

Architecture Overview

๐Ÿ›๏ธ Architecture Layers

  • ๐ŸŽจ Frontend Layer - Modern React application with TypeScript and real-time streaming UI
  • ๐Ÿš€ Backend Layer - LangGraph-powered agent system with FastAPI for REST endpoints and WebSocket streaming
  • ๐Ÿ—๏ธ Infrastructure Layer - Redis for pub/sub streaming and PostgreSQL for state persistence and task queuing
  • ๐Ÿ”ง MCP Layer - Model Context Protocol integration for extensible tool ecosystem
  • โ˜๏ธ External Services - LLM AI providers, monitoring, and third-party API integrations

๐ŸŽฏ Platform Features

โšก Real-time Agent Execution

  • Streaming responses with live progress tracking
  • Activity timeline showing agent thought processes
  • Tool execution visibility and results

๐Ÿ”ง Extensible Architecture

  • Custom agent creation - Build specialized agents for your use case
  • Tool integration - Connect with external APIs and services
  • MCP protocol support - Leverage the growing MCP ecosystem
  • LangChain compatibility - Use the full LangChain tools library

๐Ÿš€ Deployment

Production Architecture

In production, the backend server serves the optimized static frontend build. LangGraph requires specific infrastructure components for reliable operation:

  • Redis - Used as a pub-sub broker to enable streaming real-time output from background runs
  • PostgreSQL - Stores assistants, threads, runs, persists thread state and long-term memory, and manages the state of the background task queue with 'exactly once' semantics

For comprehensive deployment guidance, see the LangGraph Documentation.

Docker Deployment

1. Build the Docker Image

Run from the project root directory:

docker build -t langgraph-agent-studio -f Dockerfile .

2. Run with Docker Compose

GEMINI_API_KEY=<your_gemini_api_key> LANGSMITH_API_KEY=<your_langsmith_api_key> docker-compose up

Access the application at http://localhost:8123/app/ - The API will be available at http://localhost:8123.

Configuration Notes

  • LangSmith API Key: Required for the docker-compose example. Get one from LangSmith
  • API URL Configuration: If not using docker-compose or exposing to public internet, update the apiUrl in frontend/src/App.tsx:
    • Docker Compose: http://localhost:8123
    • Development: http://localhost:2024

Production Checklist

  • โœ… Environment Variables - Secure API key management
  • โœ… Redis Configuration - For state management and streaming
  • โœ… PostgreSQL Setup - For data persistence
  • โœ… HTTPS Configuration - For secure communications
  • โœ… Monitoring - LangSmith integration for observability

๐Ÿค Contributing

We love contributions! Here's how you can help:

  1. ๐Ÿ› Bug Reports - Found an issue? Let us know!
  2. ๐Ÿ’ก Feature Ideas - Have a cool agent idea? Share it!
  3. ๐Ÿ”ง Code Contributions - Submit PRs for improvements
  4. ๐Ÿ“š Documentation - Help improve our docs
  5. ๐Ÿงช Testing - Help us test new features

Development Workflow

# Fork the repo
git clone https://github.com/YOUR_USERNAME/langgraph-react-agent-studio.git

# Create feature branch
git checkout -b feature/amazing-new-feature

# Make changes and test
make dev

# Submit PR
git push origin feature/amazing-new-feature

๐Ÿ“š Learn More

๐Ÿ’– Acknowledgments

  • Original Project - Built on the excellent Gemini Fullstack LangGraph Quickstart
  • LangChain Team - For the amazing LangGraph framework
  • Anthropic - For Model Context Protocol innovation
  • Community - For feedback, contributions, and support

๐Ÿ“„ License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.


โญ If you find this project useful, please give it a star! โญ

Built with โค๏ธ by @artreimus from Ylang Labs

About

A fullstack AI agent platform built with React and LangGraph, featuring multiple specialized agents, real-time activity tracking, and MCP tool integrations for advanced conversational AI workflows

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 47.4%
  • TypeScript 28.6%
  • Python 18.9%
  • CSS 2.2%
  • Dockerfile 1.5%
  • Makefile 1.0%
  • Other 0.4%