Back to Home
Nabin68 icon

Langgraph-complete-guide

Verified Safe

by Nabin68

Overview

Demonstrates building a conversational AI agent using LangGraph that integrates external Model Context Protocol (MCP) servers for specialized functionalities like expense tracking and arithmetic calculations, featuring multi-turn conversations and persistent memory.

Installation

Run Command
streamlit run 12.MCP/streamlit_frontend_mcp.py

Environment Variables

  • COHERE_API_KEY
  • LANGSMITH_API_KEY
  • ALPHAVANTAGE_API_KEY

Security Notes

The `get_stock_price` tool within `langgraph_mcp_backend.py` contains a hardcoded Alpha Vantage API key (`apikey=19W1GEHJXPPUTKR2`). This is a critical security vulnerability as it exposes a sensitive credential directly in the source code. For production use, this key must be moved to an environment variable. SQL queries in `expenses_tracker_MCP_server.py` use parameterized inputs, which correctly mitigates SQL injection risks. Communication with MCP servers uses standard I/O ('stdio' transport), which is generally safe for local process interaction.

Similar Servers

Stats

Interest Score0
Security Score5
Cost ClassMedium
Avg Tokens500
Stars0
Forks0
Last Update2025-12-14

Tags

LangGraphMCPMulti-agentTool-callingConversational AIPersistenceStreamlit