Skip to main content

Add SSE Tool to AI Agent

Quick Start

1

Create a client file

2

Set Up SSE MCP Server

3

Install Dependencies

Make sure you have the required packages installed:
4

Export API Key

5

Run the Server and Agent

First, start the SSE server:
Then, in a new terminal, run the agent:
Requirements
  • Python 3.10 or higher
  • MCP server dependencies

Alternative LLM Integrations

Using Groq with SSE

Using Ollama with SSE

Gradio UI Integration

Create a Gradio UI for your weather service:

Features

Real-time Updates

Receive server-sent events in real-time from your AI agent.

Multi-Agent Support

Combine SSE with other MCP tools for complex workflows.

Multiple LLM Options

Use with OpenAI, Groq, Ollama, or other supported LLMs.

Gradio UI

Create user-friendly interfaces for your SSE integrations.