# mcp-client-x

> MCP Server

This repository provides a client-server example using the Model Context Protocol (MCP), demonstrating how to connect large language models with tools and data. It includes implementations for BMI calculation and

## Overview

- **Category:** AI
- **Language:** Python
- **Stars:** 26
- **Forks:** 1
- **Owner:** RGGH
- **GitHub:** https://github.com/RGGH/mcp-client-x
- **Homepage:** https://redandgreen.co.uk/python-sdk-for-model-context-protocol/ai-ml/
- **Created:** 2025-03-08T16:37:53+00:00
- **Updated:** 2025-03-28T09:36:36+00:00
- **Source:** https://model-context-protocol.com/servers/python-mcp-client-server-example-bmi

## Setup

## Setup

### Prerequisites

- Python 3.9+
- uv (Python package manager)

### Installation

```bash
# Install dependencies
uv install -e .
```

### Running the Example

1. Start the client (which will automatically start the server):

```bash
uv run src/client/mcp_client.py
```

## Tools

## Available Tools

1. `calculate_bmi` - A simple calculator that computes Body Mass Index.
2. `fetch_weather` - An async tool that retrieves weather data from an external API.

