# mcp-sse

> MCP Server

This repository demonstrates an SSE-based Model Context Protocol (MCP) server and client pattern, enabling decoupled processes for cloud-native agent interactions with tools like weather forecasting. It uses tools from the

## Overview

- **Category:** Communication
- **Language:** Python
- **Stars:** 301
- **Forks:** 18
- **Owner:** sidharthrajaram
- **GitHub:** https://github.com/sidharthrajaram/mcp-sse
- **Created:** 2025-01-27T21:18:56+00:00
- **Updated:** 2025-03-28T10:08:12+00:00
- **Source:** https://model-context-protocol.com/servers/sse-model-context-protocol-client-server

## Setup

## Setup

1.  Supply `ANTHROPIC_API_KEY` in `.env` or as an environment variable.
2.  Run the server: `uv run weather.py` (optionally configure host and port with `--host <your host> --port <your port>`).
3.  Run the client: `uv run client.py http://0.0.0.0:8080/sse` (replace the URL with the server's SSE endpoint).
4.  Optionally, install via Smithery: `npx -y @smithery/cli install @sidharthrajaram/mcp-sse --client claude`.

## Tools

## Available Tools

1.  `get_alerts` (tool provided by the SSE-based MCP server).
2.  `get_forecast` (tool provided by the SSE-based MCP server).

