conversational-ai
Verified Safeby mukeshmk
Overview
A REST API for a conversational AI virtual agent that answers questions about movies and weather using a multi-agent LangGraph workflow.
Installation
uv run python convai/app.pyEnvironment Variables
- HOST
- PORT
- DATABASE_URL
- MODEL_PROVIDER
- MODEL_NAME
- MODEL_TEMPERATURE
- API_KEY
- MCP_SERVER
- LOG_LEVEL
Security Notes
The application uses a multi-agent LangGraph architecture with an LLM-driven SQL agent. While this pattern abstracts direct SQL query execution, there's an inherent risk of prompt injection or LLM 'hallucination' leading to unexpected or potentially malicious SQL queries if not adequately guarded against by the LLM and prompt design. The MCP server can execute local Python/Node scripts based on the `MCP_SERVER` environment variable, which poses a configuration risk if an untrusted script path is provided. External API calls are made to legitimate weather and dataset sources. No hardcoded secrets were found; API keys are expected from environment variables.
Similar Servers
Weather-MCP-Server
Provides comprehensive weather information and tools via a Model Context Protocol (MCP) server using FastMCP and WeatherAPI.com.
zc9uVMJHDrT3dpLz
A conversational AI system that answers user queries about movies using the MovieLens dataset and provides weather forecasts/alerts via a multi-agent LangGraph workflow.
ai-examples
A basic weather API server built with FastAPI, demonstrating a Microservice Communication Protocol (MCP) server that provides CRUD operations for weather information.
streamable_http_mcp_server
This project implements a Multi-tool Communication Protocol (MCP) server that provides a weather lookup tool and a client that orchestrates LLM function calling with such MCP servers, allowing an AI to dynamically use external tools.