AI Assistant With MCP Servers And Tools Using Langchain
MCP server: AI Assistant With MCP Servers And Tools Using Langchain
Installation
npx ai-assistant-with-mcp-servers-and-tools-using-langchainAsk AI about AI Assistant With MCP Servers And Tools Using Langchain
Powered by Claude Β· Grounded in docs
I know everything about AI Assistant With MCP Servers And Tools Using Langchain. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
π€ AI Assistant with MCP + LangChain + Groq
This project demonstrates how to build a conversational AI assistant using MCP (Modular Chain Processor), LangChain, and Groq LLMs. It leverages memory-enabled agents and Groq-hosted LLMs to interactively respond to user queries in a smart and contextual way.
π Features
- π§ Conversational memory (persistent session context)
- βοΈ Integration with Groq's ultra-fast LLMs (Qwen, Mixtral, etc.)
- π Built using LangChain and MCP abstraction layers
- π¬ Interactive command-line chat interface
- β Support for clearing history and exiting chat
- π Secure API Key loading from
.env
π οΈ Requirements
- Python 3.9 or later
- Groq API Key (sign up at Groq Cloud)
- MCP installed from source
- Optional: Create and activate a Python virtual environment
π¦ Installation
1. Clone this repo:
git clone https://github.com/your-username/ai-assistant-mcp-groq.git cd ai-assistant-mcp-groq
####2. Create a virtual environment and activate it: python -m venv env source env/bin/activate # On Linux/macOS env\Scripts\activate # On Windows
π Environment Setup Create a .env file in the root directory and add your Groq API key:
GROQ_API_KEY=your_groq_api_key_here
π§ Configuration Make sure you have a browser_mcp.json configuration file in your project directory. This file defines the behavior and tools of the MCP client.
{ "tools": ["search", "calendar", "weather"], "settings": { "max_retries": 3, "timeout_seconds": 20 } } Customize as needed for your use case.
βΆοΈ Run the Assistant
python app.py
You will enter an interactive chat session:
You: Hello MCP: Hi there! How can I assist you today?
You: clear Conversation history cleared.
You: exit Exiting the chat.
π Project Structure pgsql Copy Edit . βββ app.py # Main application file βββ mcp_use.py # MCPAgent and MCPClient wrapper βββ browser_mcp.json # Tool configuration βββ .env # Your API key (not tracked by Git) βββ requirements.txt # Python dependencies βββ README.md # This file
π Example Use Cases
Ask about weather, calendar, and search information
Use AI for summarization, suggestions, and planning
Build a smart chat experience in any terminal app
