MCP-Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP-Servercalculate 15 times 20 plus 200 divided by 4, then tell me the weather in Hyderabad"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Multi-Server Model Context Protocol (MCP) Demo
A complete demonstration of building and integrating multiple Model Context Protocol (MCP) servers with a LangGraph ReAct agent powered by Groq and real-time OpenWeatherMap data.
This project showcases how an LLM agent can dynamically discover and consume tools across different MCP servers and transport protocols (stdio and streamable-http) in a single unified workflow.
๐๏ธ Architecture
flowchart LR
subgraph Agent["LangGraph ReAct Agent (client.py)"]
ChatGroq["LLM: Groq (Qwen / ChatGroq)"]
MultiMCP["MultiServerMCPClient"]
end
subgraph MathServer["Math MCP Server (mathserver.py)"]
MathTools["Tools: add, sub, mul, div"]
end
subgraph WeatherServer["Weather MCP Server (weatherserver.py)"]
WeatherTools["Tool: get_weather (OpenWeatherMap API)"]
end
MultiMCP -- "stdio transport (subprocess)" --> MathServer
MultiMCP -- "streamable-http (http://127.0.0.1:8000/mcp)" --> WeatherServerComponents
Math MCP Server (
mathserver.py):Built with FastMCP.
Runs over
stdiotransport.Exposes arithmetic tools:
add,sub,mul,div.Automatically launched as a background subprocess by the MCP client.
Weather MCP Server (
weatherserver.py):Built with FastMCP running over
streamable-httptransport athttp://127.0.0.1:8000/mcp.Uses
httpxto fetch live meteorological data from the OpenWeatherMap API.Exposes the
get_weathertool (returns temperature, weather description, feels like, and humidity).
Orchestrator Client (
client.py):Connects to both MCP servers simultaneously using
MultiServerMCPClientfromlangchain-mcp-adapters.Assembles the tools and powers a LangGraph ReAct agent using Groq's fast LLM inference (
ChatGroq).
Related MCP server: AIE8-MCP Server
๐ Project Structure
Mcp_demo/
โโโ client.py # ReAct Agent & Multi-Server MCP client orchestrator
โโโ mathserver.py # FastMCP server running on stdio transport
โโโ weatherserver.py # FastMCP server with OpenWeatherMap API on HTTP transport
โโโ requirements.txt # Python package dependencies
โโโ pyproject.toml # Project configuration & metadata
โโโ .env.example # Environment variables template
โโโ .gitignore # Git ignore rules (protects .env and caches)
โโโ README.md # Project documentation๐ Getting Started
1. Prerequisites
Python 3.10+
OpenWeatherMap API Key (free tier)
2. Installation
Clone the repository and install dependencies:
git clone https://github.com/sreeshanthkprakash-stack/MCP-Server.git
cd MCP-Server
# Create and activate virtual environment
python -m venv .venv
# On Windows:
.venv\Scripts\activate
# On Linux/macOS:
source .venv/bin/activate
# Install dependencies
pip install -r requirements.txt3. Environment Configuration
Create a .env file in the root directory (or copy from .env.example):
GROQ_API_KEY=your_groq_api_key_here
OPENWEATHER_API_KEY=your_openweather_api_key_here๐งช Running the Application
Step 1: Start the Weather MCP Server
Since the weather server communicates over HTTP, start it first in a terminal:
python weatherserver.pyThe weather server will start listening at
http://127.0.0.1:8000/mcp.
Step 2: Run the Agent Client
Open a second terminal window (ensure your virtual environment is active), and run:
python client.pyExpected Output Example
math_response The result of the expression ((15*20)+200)/4 is 125.
weather_response Weather in Hyderabad: haze, temperature 29.5ยฐC (feels like 32.1ยฐC), humidity 65%๐ฆ Dependencies
mcp: Official Model Context Protocol SDK (FastMCP)langchain-mcp-adapters: Connects LangChain to MCP serverslanggraph: Graph-based agent orchestration runtimelangchain-groq: High-speed LLM inference with Groqhttpx: Async HTTP client for weather API requestspython-dotenv: Secure environment variable loading
๐ License
This project is open-source and available under the MIT License.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceDemonstrates custom MCP servers for math and weather operations, enabling multi-agent orchestration using LangChain, Groq, and MCP adapters for both local and remote tool integration.1
- FlicenseBqualityDmaintenanceAn MCP server that provides web search capabilities through the Tavily API and weather data retrieval tools. It demonstrates how to integrate external APIs into AI applications and build agentic workflows with LangGraph.3
- Flicense-qualityCmaintenanceA demonstration MCP server that provides math (add/multiply) and weather tools, connecting via stdio and streamable HTTP, and integrates with LangChain and LangGraph for agentic workflows.
- Flicense-qualityDmaintenanceAn MCP server that provides weather and web search tools, orchestrated by a LangGraph agent with OpenAI for natural language interaction.8
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sreeshanthkprakash-stack/MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server