Server MCP
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., "@Server MCPcalculate 12 + 8 and weather in Tokyo"
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.
🤖 Server MCP - Agent LangGraph avec outils Math & Météo
🎯 Objectif pédagogique : Ce projet a pour but de montrer comment utiliser le protocole MCP (Model Context Protocol) pour connecter un agent IA à des outils externes, en utilisant les deux types de transport :
stdioetstreamable_http.
Un projet d'agent IA basé sur LangChain, LangGraph et le protocole MCP (Model Context Protocol), connectant un modèle LLM Groq à des outils externes via des serveurs MCP, avec observabilité via LangSmith et Langfuse.
Qu'est-ce que MCP ?
Le Model Context Protocol est un standard ouvert qui permet à un LLM de communiquer avec des outils externes (serveurs MCP) de manière structurée. Il définit comment un agent peut découvrir, appeler et recevoir les résultats d'outils distants, quel que soit le langage ou la plateforme utilisée.
Ce projet illustre deux modes de communication MCP :
Transport | Cas d'usage | Exemple dans ce projet |
| Outil local, lancé par le client |
|
| Outil distant, serveur indépendant |
|
📁 Structure du projet
Server_mcp/
├── src/
│ ├── client.py # Agent principal (LangGraph + Groq)
│ ├── mathserver.py # Serveur MCP — outils mathématiques (stdio)
│ └── weather.py # Serveur MCP — outil météo (streamable_http)
├── .env # Clés API (non versionné)
├── .env.example # Modèle de variables d'environnement
├── .gitignore
├── .python-version
├── .venv/
├── pyproject.toml # Configuration du projet
├── requitements.txt
├── uv.lock
└── README.mdRelated MCP server: MCP Streamable HTTP Demo
⚙️ Prérequis
Python 3.11+ (voir
.python-version)uv — gestionnaire de paquets (recommandé)
Un compte Groq pour la clé API LLM
Un compte LangSmith pour le tracing
Un compte Langfuse pour l'observabilité
🚀 Installation
Avec uv (recommandé)
cd Server_mcp
uv syncAvec pip classique
cd Server_mcp
python -m venv .venv
source .venv/bin/activate # Sur Windows : .venv\Scripts\activate
pip install -r requitements.txtConfigurer les variables d'environnement
Copier le fichier .env.example et remplir les valeurs :
cp .env.example .envContenu du .env :
# LLM
GROQ_API_KEY=votre_clé_groq_ici
# LangSmith (tracing & évaluation)
LANGCHAIN_TRACING_V2=true
LANGCHAIN_API_KEY=votre_clé_langsmith_ici
LANGCHAIN_PROJECT=server_mcp
# Langfuse (observabilité & analytics)
LANGFUSE_PUBLIC_KEY=votre_clé_publique_langfuse_ici
LANGFUSE_SECRET_KEY=votre_clé_secrète_langfuse_ici
LANGFUSE_HOST=https://cloud.langfuse.com🧩 Architecture
Ce projet utilise deux types de transport MCP :
Fichier | Transport | Lancement |
|
| Automatique via le client |
|
| Manuel sur le port 8000 |
src/client.py
├── MultiServerMCPClient
│ ├── math (stdio) → src/mathserver.py
│ └── weather (http) → src/weather.py :8000
├── ChatGroq (openai/gpt-oss-120b)
├── create_agent (LangChain)
├── LangSmith ──────────────────────→ smith.langchain.com
└── Langfuse ──────────────────────→ cloud.langfuse.com📊 Observabilité
LangSmith
Trace automatiquement toutes les invocations de l'agent, les appels aux outils MCP et les réponses du modèle. Accessible sur smith.langchain.com sous le projet server_mcp.
Langfuse
Fournit des analytics détaillés sur les coûts, latences et qualité des réponses LLM. Accessible sur cloud.langfuse.com.
🛠️ Les outils disponibles
Serveur Math (src/mathserver.py)
Outil | Description | Paramètres |
| Additionne deux nombres |
|
| Soustrait deux nombres |
|
Serveur Météo (src/weather.py)
Outil | Description | Paramètres |
| Retourne la météo d'une ville |
|
▶️ Lancer le projet
Étape 1 — Démarrer le serveur météo (Terminal 1)
source .venv/bin/activate
python src/weather.pyLe serveur démarre sur http://127.0.0.1:8000/mcp
Étape 2 — Lancer le client agent (Terminal 2)
source .venv/bin/activate
python src/client.pyRésultat attendu
Les outils disponibles: ['add', 'subtract', 'get_weather']
La réponse à votre question: (4+5) = 9 et (54-50) = 4🐛 Erreurs fréquentes
Erreur | Cause | Solution |
| Clé | Ajouter |
|
| Ajouter une virgule : |
| Utilisation de | Remplacer par |
| Tiret au lieu d'underscore | Utiliser |
Push GitHub bloqué | Fichier | Révoquer les clés, retirer |
📚 Technologies utilisées
LangChain - Framework LLM
LangGraph - Agent ReAct
langchain-mcp-adapters -Intégration MCP
FastMCP - Création de serveurs MCP
Groq — Inférence LLM ultra-rapide
LangSmith - Tracing & évaluation des chaînes LLM
Langfuse - Observabilité & analytics LLM
uv - Gestionnaire de paquets moderne
python-dotenv- Gestion des variables d'environnement
👤 Auteur
BANE Seydina Mouhamet
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-qualityDmaintenanceA dual-transport MCP server that exposes your API as tools to LLM clients, supporting both stdio transport for local clients like Claude Desktop and HTTP/SSE transport for remote clients like OpenAI's Responses API.Last updated
- Flicense-qualityCmaintenanceDemonstrates an MCP server with calculate and text_stats tools over Streamable HTTP, integrating with LangChain/LangGraph and n8n agents.Last updated
- 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.Last updated
- FlicenseAqualityDmaintenanceLightweight MCP server that exposes tools for system information and weather lookup, designed for agent integration via stdio.Last updated1
Related MCP Connectors
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Local-first RAG engine with MCP server for AI agent integration.
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/SeydinaBANE/Server_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server