Skip to content

Supriyasus/MCP_Server_Langchain

Repository files navigation

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

About

Built a basic mcp server and client for weather api and basic math calculation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages