MCP Server with LangChain and AI Tools
Used for storing API keys and configuration settings for the MCP server
Enables the creation of multi-tool AI assistants using LangChain MCP Adapters to connect tools and services
Integrates with the system to create conversational AI agents that can interact with multiple MCP tools
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 Server with LangChain and AI Toolscalculate 15% of 200 and tell me the 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.
π§ 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
Related MCP server: xigua-MCP
π Prerequisites
Python >= 3.11
uvfor 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 initSet Python version in .python-version and pyproject.toml to >=3.11
2. Create Virtual Environment
uv venv
source .venv/Scripts/activate3. Add Dependencies
Create a requirements.txt file:
langchain-mcp-adapters
langchain-groq
langgraph
mcpInstall them
uv add -r requirements.txtProject 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.py2. Run the Client (Automatically runs math server as sub process)
python client.pyExample 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.
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
- AlicenseCqualityDmaintenanceA Model Context Protocol implementation that enables large language models to call external tools (like weather forecasts and GitHub information) through a structured protocol, with visualization of the model's reasoning process.Last updated23212MIT
- Flicense-qualityDmaintenanceA Model Context Protocol server that extends AI capabilities through tools for remote control, note-taking, email operations, and knowledge search.Last updated
- Alicense-qualityCmaintenanceA unified Model Context Protocol server with pluggable tools and independent endpoints, allowing clients to selectively add specific tools like calculator, echo, and time utilities with fault isolation and secure authentication.Last updated3211MIT
- Flicense-qualityDmaintenanceA Model Context Protocol server that connects multiple AI models into a single workflow, enabling multi-model orchestration, conversation continuity, and tools like code review, planning, and CLI-to-CLI bridging.Last updated
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
A Model Context Protocol server for Wix AI tools
Real-time Amazon, WIPO & PACER data for AI agents β 19 tools via the MCP protocol.
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/durgeshmca/MCPServerPOCDemo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server