Skip to main content
Glama
adityapatel143

Adi MCP Server

Adi MCP Server

A Model Context Protocol (MCP) server implementation using FastMCP that provides a set of tools for LLMs to interact with.

Features

  • Weather Integration: Get current weather information for any city using the OpenWeatherMap API.

  • Mathematical Operations: A simple add tool to demonstrate basic functionality.

Related MCP server: Weather MCP Server

Prerequisites

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd ModelContextProtocal
  2. Install dependencies:

    pip install .
  3. Set up your environment variables: Create a .env file in the root directory and add your API key:

    OPENWEATHER_API_KEY=your_openweathermap_api_key_here

Usage

Running the Server

You can run the server using the MCP CLI:

mcp run main.py

Available Tools

Tool

Description

Arguments

add

Adds two integers together.

a (int), b (int)

get_weather

Fetches real-time weather data for a specified city.

city (str)

Project Structure

  • main.py: The core server logic and tool definitions.

  • pyproject.toml: Project metadata and dependency definitions.

  • .env: Environment variables (not tracked by git).

License

[Specify License, e.g., MIT]

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to fetch current weather conditions and forecasts for any city using the Open-Meteo API. Provides temperature, precipitation, and hourly forecast data through natural language queries.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables LLMs to retrieve 24-hour weather forecasts and city information through natural language queries using city names or coordinates.
    MIT
  • F
    license
    D
    quality
    C
    maintenance
    Provides real-time weather information, enabling AI assistants to retrieve current temperature and weather conditions for any location worldwide.
    1
    -