MCPMathServer
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCPMathServer
A Model Context Protocol (MCP) server exposing math and weather tools, with a LangChain agent client powered by Groq.
Features
Math tools —
add,subtract,multiplyvia MCP stdio transportWeather tool —
get_weathervia MCP streamable HTTP transport (placeholder)Agent client — LangChain agent that connects to both MCP servers and answers natural-language queries using
ChatGroq
Related MCP server: SampleMCP
Prerequisites
Python 3.12+
Setup
# Clone and enter the project
git clone <repo-url> && cd MCPMathServer
# Install dependencies with uv (virtual environment is created automatically)
uv init
# For virtual environment:
uv venvCreate a .env file in the project root:
GROQ_API_KEY=your_groq_api_key_hereUsage
Run the math server (stdio)
python mathserver.pyRun the weather server (streamable HTTP)
python weather.pyRun the agent client
python client.pyThe client connects to both servers, then sends example queries:
"what's (3 + 5) x 12?"— routed to the math server"what is the weather in California?"— routed to the weather server
Project Structure
MCPMathServer/
├── mathserver.py # MCP math tool server (stdio)
├── weather.py # MCP weather tool server (streamable HTTP)
├── client.py # LangChain agent client
├── main.py # Entry point placeholder
├── pyproject.toml # Project metadata & dependencies
├── requirements.txt # Pip dependencies
└── .env # API keys (not committed)Dependencies
FastMCP — MCP server framework
LangChain — Agent framework
LangChain Groq — Groq LLM integration
LangChain MCP Adapters — MCP transport adapters
LangGraph — Agent orchestration
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for building and testing AI agents with multi-model experimentation and insights.
Official MCP server for Agentwork — delegate tasks to AI agents with human-in-the-loop
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceDemonstrates 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-
- 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 gradedqualityDmaintenanceAn MCP server that provides weather and web search tools, orchestrated by a LangGraph agent with OpenAI for natural language interaction.8-
- FlicenseNot gradedqualityDmaintenanceA collection of MCP servers demonstrating math operations, weather data, and LangGraph workflows.1-