Model Context Protocol Multi-Agent Server
Used for environment variable management, specifically for storing and accessing API keys like GROQ_API_KEY securely within the application.
Provides a unified agent interface for tool invocation, enabling orchestration of multiple MCP servers (Math and Weather agents) through LangChain's framework.
Serves as the implementation language for custom MCP servers, providing both stdio and HTTP transports for agent communication.
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., "@Model Context Protocol Multi-Agent ServerWhat's 15 multiplied by 60 and the weather in Delhi?"
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.
Model Context Protocol (MCP) Multi-Agent Demo
This project demonstrates how to set up and communicate with custom Model Context Protocol (MCP) servers in Python. It showcases multi-agent orchestration using LangChain, Groq, and MCP adapters, enabling both local and remote tool integration.
Features
Custom MCP Servers: Math and Weather agents, each as independent MCP servers
Multi-Transport Communication: Local (stdio) and remote (HTTP) transports
LangChain Integration: Unified agent interface for tool invocation
Async Orchestration: Efficient, non-blocking agent communication
Related MCP server: SampleMCP
Components
1. mathserver.py
A custom MCP server providing math operations (add, multiply) via stdio transport.
2. weather.py
A custom MCP server providing weather information via HTTP transport - (Static content for demo).
3. client.py
A Python client that connects to both servers, discovers their tools, and invokes them using a LangChain agent powered by Groq.
Setup Instructions
Clone the repository
Install dependencies:
pip install -r requirements.txtSet up environment variables:
Create a
.envfile with yourGROQ_API_KEY:GROQ_API_KEY=your_groq_api_key_here
Run the servers:
Start the weather server (in one terminal):
python weather.pyThe math server is started automatically by the client when needed.
Run the client:
python client.pyExample Output
Math Response: The answer is 900
Weather Response: The weather in delhi is sunnyLearning Outcomes
How to build and register custom MCP servers
How to enable communication between agents using stdio and HTTP
How to orchestrate multi-agent workflows with LangChain
Requirements
Python 3.8+
See
requirements.txtfor Python dependencies
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
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 Connectors
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceDemonstrates a complete MCP server implementation supporting both local Ollama models and remote API models. Enables LangChain applications to dynamically discover and invoke tools including addition calculations and model invocation capabilities.-
- FlicenseNot gradedqualityDmaintenanceA 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.-
- FlicenseNot gradedqualityDmaintenanceA collection of MCP servers demonstrating math operations, weather data, and LangGraph workflows.1-
- FlicenseNot gradedqualityCmaintenanceAn MCP server that provides math tools (add, subtract, multiply) and a weather tool, with a LangChain agent client that uses Groq to answer natural language queries.-
Appeared in Searches
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/DHEERAJPRAKASH/MCP_PROJECT'
If you have feedback or need assistance with the MCP directory API, please join our Discord server