SimpleMCPServer_Langchain
Verified Safeby bashithj
Overview
This project demonstrates an AI agent using LangGraph and LangChain's MCP adapters to orchestrate calls to multiple local MCP services (Math and Weather tools) for processing user queries.
Installation
python weather.pyEnvironment Variables
- GROQ_API_KEY
Security Notes
API keys are loaded from environment variables, which is good practice. No 'eval', 'exec', or other immediately dangerous patterns were found in the provided source code. The client launches a local subprocess for the math server, which is generally acceptable for local development but pathing should be robustly controlled in production environments.
Similar Servers
fastmcp-example
Integrate Model Context Protocol (MCP) with LangChain and LangGraph to build AI agent workflows by exposing a variety of custom and pre-defined tools.
MultiServer-Mcp
Demonstrates building and interacting with multiple Microservice-Compatible Protocol (MCP) servers for math and text processing using a LangChain MCP client for direct tool invocation.
mcp-langchain
This project demonstrates using LangChain to orchestrate interactions with local micro-agents providing math and weather services.
mcp-Server
Provides a framework for building and integrating AI agent tools, demonstrating how a client can orchestrate multiple MCP servers (math and weather) via a language model.