Supriyasus/MCP_Server_Langchain
3.1
If you are the rightful owner of MCP_Server_Langchain and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server implementation using LangChain with math and weather tools.
MCP Server with LangChain
A Model Context Protocol (MCP) server implementation using LangChain with math and weather tools.
Setup
-
Clone the repository
-
Create a virtual environment:
python -m venv .venv .venv/Scripts/activate # On Windows
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.env
file from the example:cp .env.example .env
-
Add your Groq API key to
.env
:GROQ_API_KEY=your_actual_api_key_here
Usage
Run the client:
python client.py
Features
- Math operations (add, subtract, multiply, divide)
- Weather information (mock data)
- LangChain integration with Groq LLM