MCP_Server_Langchain

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

  1. Clone the repository

  2. Create a virtual environment:

    python -m venv .venv
    .venv/Scripts/activate  # On Windows
    
  3. Install dependencies:

    pip install -r requirements.txt
    
  4. Create a .env file from the example:

    cp .env.example .env
    
  5. 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