Skip to main content
Glama
vrxtxxx

MCPMathServer

by vrxtxxx

MCPMathServer

A Model Context Protocol (MCP) server exposing math and weather tools, with a LangChain agent client powered by Groq.

Features

  • Math toolsadd, subtract, multiply via MCP stdio transport

  • Weather toolget_weather via 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

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 venv

Create a .env file in the project root:

GROQ_API_KEY=your_groq_api_key_here

Usage

Run the math server (stdio)

python mathserver.py

Run the weather server (streamable HTTP)

python weather.py

Run the agent client

python client.py

The 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

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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/vrxtxxx/MCPMathServer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server