Skip to main content
Glama

MCP-Add-Weather

I am using UV as virtual envirnoment

My client llm will call Math Server to get addition and multiplcation then it will pass the value from math Server to weather server to get the weather details.

TODOS:

  • Instead of returning multiplcation - return zip code. Pass that zipcode to weather server to get the weather result.
  • Please create a .env file and add GROQ_API_KEY="YOUR KEY"

Commands to Run ```uv init`` if you dont have pyproject.toml or if you are doing from scratch.

Open Terminal 1 to run weather

uv venv source .venv/bin/activate uv add -r requirements.txt python weather.py

Open Terminal 2 to run client that aggregates addition and weather

uv venv source .venv/bin/activate uv add -r requirements.txt python client.py or python client_local_ollama.py for local

To RUN Locally

Install Ollama. Once Ollama installed, Please verify by running ollama run llama3 if it worked then we are good to go.


Output

1. **Add 3 and 5**: \( 3 + 5 = 8 \) 2. **Multiply the result by 12**: \( 8 \times 12 = 96 \) **Final Answer:** \boxed{96} Extracted number : 96 Weather Answer: The weather in location 96 is **rainy all the time**. However, the temperature information you mentioned ({math_result}) isn't available through the provided tools. Let me know if you'd like further clarification! (MCP-Add-Weather) kasinathnalla@macbookpro MCP-Add-Weather % ```
-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

A multi-agent system that connects a math server and weather server, allowing users to perform mathematical operations and retrieve weather information based on the numerical results.

Related MCP Servers

  • A
    security
    F
    license
    A
    quality
    A Model Context Protocol server that provides AI agents with tools to retrieve weather alerts and detailed forecasts for US locations using the National Weather Service API.
    Last updated -
    2
    80
    TypeScript
  • -
    security
    F
    license
    -
    quality
    An intermediate agent server that enhances LLMs with weather data capabilities using the Model Context Protocol (MCP) framework, enabling retrieval of real-time weather information.
    Last updated -
    Python
  • A
    security
    F
    license
    A
    quality
    A Model Context Protocol server that provides real-time weather information and 5-day forecasts to AI assistants, supporting multiple languages and flexible units.
    Last updated -
    3
    12
    TypeScript
  • -
    security
    F
    license
    -
    quality
    A modular production-ready system that provides specialized agents for math, research, weather, and summarization tasks through a unified MCP toolbox with smart supervisor capabilities.
    Last updated -
    Python

View all related MCP servers

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/kasinathnalla/MCP-Add-Weather'

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