FastAPI LangGraph Chatbot

v1.0.0Coding Agentsstable

A scalable AI chatbot platform built with FastAPI and LangGraph, featuring multi-agent orchestration, multi-tenant vector storage, cross-chat memory, and voice call capabilities through LiveKit integration.

fastapifirecrawllangchainlangraphlivekit
Share:
20
Stars
0
Downloads
0
Weekly
0/5

What is FastAPI LangGraph Chatbot?

FastAPI LangGraph Chatbot is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to scalable ai chatbot platform built with fastapi and langgraph, featuring multi-agent orchestration, multi-tenant vector storage, cross-chat memory, and voice call capabilities through livekit integrat...

A scalable AI chatbot platform built with FastAPI and LangGraph, featuring multi-agent orchestration, multi-tenant vector storage, cross-chat memory, and voice call capabilities through LiveKit integration.

This server falls under the Coding Agents and Communication categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A scalable AI chatbot platform built with FastAPI and LangGr

Use Cases

Build multi-agent AI chatbots with LangGraph orchestration. Enable cross-chat memory with vector storage and multi-tenant support. Conduct voice conversations through LiveKit integration.
extrawest

Maintainer

LicenseApache-2.0
Languagejavascript
Versionv1.0.0
UpdatedMay 14, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx fastapi-langgraph-chatbot-with-vector-store-memory-mcp-tools-and-voice-mode

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use FastAPI LangGraph Chatbot

This project is a full-stack AI chatbot platform that combines FastAPI for the backend API, LangGraph for multi-agent orchestration, Qdrant for multi-tenant vector storage and cross-chat memory, and LiveKit for real-time voice call capabilities. It integrates MCP-compatible tools (Firecrawl for web scraping and Tavily for semantic search) so agents can retrieve live information while maintaining long-term conversational context via Mem0. Teams that need a scalable, production-ready chatbot infrastructure with persistent memory and voice support will find it a comprehensive starting point.

Prerequisites

  • Python 3.10 or later with pip and venv
  • Docker (recommended for running Qdrant vector database locally)
  • OpenAI API key (or compatible LLM provider key)
  • LiveKit account and credentials (LIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET) for voice mode
  • Firecrawl and Tavily API keys for web scraping and search tools
1

Clone the repository and set up the Python environment

Clone the project from GitHub, create a virtual environment, and install all required Python dependencies.

git clone https://github.com/extrawest/fastapi-langgraph-chatbot-with-vector-store-memory-mcp-tools-and-voice-mode.git
cd fastapi-langgraph-chatbot-with-vector-store-memory-mcp-tools-and-voice-mode
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
2

Start Qdrant vector database

Run Qdrant locally using Docker. The chatbot uses Qdrant for multi-tenant vector storage to power semantic search over conversation history.

docker run -p 6333:6333 qdrant/qdrant
3

Configure environment variables

Copy the example .env file and fill in your credentials. At minimum you need an OpenAI API key, Qdrant host/port, and LiveKit credentials for voice mode.

cp .env.example .env
# Then edit .env with your values:
# OPENAI_API_KEY=sk-...
# QDRANT_HOST=localhost
# QDRANT_PORT=6333
# LIVEKIT_URL=wss://...
# LIVEKIT_API_KEY=...
# LIVEKIT_API_SECRET=...
# SECRET_KEY=your-secret-key
# ACCESS_TOKEN_EXPIRE_MINUTES=60
# SQLALCHEMY_DATABASE_URI=sqlite:///./chatbot.db
4

Start the FastAPI server

Run the FastAPI application. The API will be available at http://localhost:8000, with interactive docs at /docs.

uvicorn main:app --reload --port 8000
5

Interact via the API or integrate with an MCP client

Send chat requests to the /chat endpoint. The multi-agent system (supervisor, research, and scraper agents) will handle your queries, persist context in Qdrant via Mem0, and invoke Firecrawl or Tavily tools as needed.

curl -X POST http://localhost:8000/chat \
  -H 'Content-Type: application/json' \
  -d '{"message": "What are the latest AI news?", "session_id": "user-123"}'

FastAPI LangGraph Chatbot Examples

Client configuration

Environment variables needed in the .env file to run the FastAPI LangGraph chatbot with all features enabled.

{
  "OPENAI_API_KEY": "sk-...",
  "QDRANT_HOST": "localhost",
  "QDRANT_PORT": "6333",
  "LIVEKIT_URL": "wss://your-livekit-server",
  "LIVEKIT_API_KEY": "your-livekit-api-key",
  "LIVEKIT_API_SECRET": "your-livekit-api-secret",
  "SECRET_KEY": "your-jwt-secret",
  "ACCESS_TOKEN_EXPIRE_MINUTES": "60",
  "SQLALCHEMY_DATABASE_URI": "sqlite:///./chatbot.db",
  "LANGCHAIN_TRACING_V2": "true",
  "LANGSMITH_API_KEY": "your-langsmith-key"
}

Prompts to try

Example questions and tasks you can send to the chatbot API to exercise different agents and tools.

- "What are the latest developments in AI this week?"
- "Summarize the content at https://example.com/article"
- "What did we discuss last time about my project?"
- "Start a voice call session to walk me through the setup steps"
- "Search for Python tutorials on async programming"

Troubleshooting FastAPI LangGraph Chatbot

Qdrant connection errors on startup

Ensure Qdrant is running on the host and port specified in QDRANT_HOST and QDRANT_PORT. Run 'docker ps' to verify the Qdrant container is active and the port 6333 is exposed.

Voice mode fails to connect

Double-check that LIVEKIT_URL, LIVEKIT_API_KEY, and LIVEKIT_API_SECRET are set correctly in .env. The LiveKit URL must start with 'wss://' and point to your LiveKit cloud or self-hosted server.

Agent does not use web search or scraping tools

Ensure OPENAI_API_KEY is valid and that Firecrawl and Tavily API keys are configured in .env. LangGraph tool invocation depends on the LLM correctly selecting tools, so verify LANGCHAIN_TRACING_V2 is enabled to debug agent decisions.

Frequently Asked Questions about FastAPI LangGraph Chatbot

What is FastAPI LangGraph Chatbot?

FastAPI LangGraph Chatbot is a Model Context Protocol (MCP) server that scalable ai chatbot platform built with fastapi and langgraph, featuring multi-agent orchestration, multi-tenant vector storage, cross-chat memory, and voice call capabilities through livekit integration. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install FastAPI LangGraph Chatbot?

Follow the installation instructions on the FastAPI LangGraph Chatbot GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with FastAPI LangGraph Chatbot?

FastAPI LangGraph Chatbot works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is FastAPI LangGraph Chatbot free to use?

Yes, FastAPI LangGraph Chatbot is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Coding Agents MCP Servers

Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "fastapi-langgraph-chatbot-with-vector-store-memory-mcp-tools-and-voice-mode": { "command": "npx", "args": ["-y", "fastapi-langgraph-chatbot-with-vector-store-memory-mcp-tools-and-voice-mode"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use FastAPI LangGraph Chatbot?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides