Adi MCP Server
README.md
# 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.
## Prerequisites
- Python >= 3.13
- An OpenWeatherMap API Key ([Get one here](https://home.openweathermap.org/api_keys))
## Installation
1. Clone the repository:
```bash
git clone <repository-url>
cd ModelContextProtocal
```
2. Install dependencies:
```bash
pip install .
```
3. Set up your environment variables:
Create a `.env` file in the root directory and add your API key:
```env
OPENWEATHER_API_KEY=your_openweathermap_api_key_here
```
## Usage
### Running the Server
You can run the server using the MCP CLI:
```bash
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]
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo issues