JUHE API Marketplace
durgeshmca avatar
MCP Server

MCP Server with LangChain and AI Tools

A multi-tool AI assistant system that uses Model Context Protocol to connect language models with various tools, including math calculations and weather information.

0
GitHub Stars
3/14/2026
Last Updated
No Configuration
Please check the documentation below.
  1. Home
  2. MCP Servers
  3. MCPServerPOCDemo

README Documentation

🧠 MCP Server with LangChain and AI Tools

This project demonstrates how to build a multi-tool AI assistant using the Model Context Protocol (MCP), LangChain, and Groq’s Qwen model. It includes:

  • πŸ“ A local Math MCP Server
  • 🌀️ A simulated Weather MCP Server
  • πŸ€– A conversational AI agent (MCP client) that talks to both

🧰 Features

  • Uses LangChain MCP Adapters to connect tools
  • Powered by Groq's Qwen LLM
  • Handles local and remote tool servers via MCP
  • Interactive CLI chat with tool usage detection

🏁 Prerequisites

  • Python >= 3.11
  • uv for project/environment management (https://github.com/astral-sh/uv)
  • Internet connection for loading LLM (Groq)

βš™οΈ Setup Instructions

1. Create Project

mkdir mcp_project
cd mcp_project
uv init

Set Python version in .python-version and pyproject.toml to >=3.11

2. Create Virtual Environment

uv venv
source .venv/Scripts/activate

3. Add Dependencies

Create a requirements.txt file:
langchain-mcp-adapters
langchain-groq
langgraph
mcp

Install them

uv add -r requirements.txt

Project Structure

mcp_project/ β”‚ β”œβ”€β”€ math_server.py # MCP server for math tools β”œβ”€β”€ weather_server.py # MCP server for weather API simulation β”œβ”€β”€ client.py # MCP client with AI agent β”œβ”€β”€ requirements.txt β”œβ”€β”€ .python-version └── .env # For storing Groq API key (GROQ_API_KEY)

How to Run

1. Run the Weather Server

python weather_server.py

2. Run the Client (Automatically runs math server as sub process)

python client.py

Example Conversation

You: What is the output of 2*3/(4-2)
AI: The result is 3.0

You: What is the weather in New York?
AI: The current weather in New York is sunny.

You: thanks
AI: You're welcome! 😊

Note

The weather server is simulated. Replace it with real API logic if needed.
You can add more MCP servers for documents, search, DBs, etc.
Use .env to store your GROQ_API_KEY.

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.aiFeatured on ShowMeBestAI
Copyright Β© 2026 JUHEDATA HK LIMITED - All rights reserved