Multiple MCP SSE Servers with Python Host logo

Multiple MCP SSE Servers with Python Host

by hackerinheels

This repository provides a Python host application for managing multiple Model Control Protocol (MCP) Server-Sent Events (SSE) servers. It includes examples for interacting with Google Calendar and automating browser tasks using Google's Gemini API.

View on GitHub

Last updated: N/A

What is Multiple MCP SSE Servers with Python Host?

This is a Python host application designed to manage and run multiple MCP SSE servers. It uses a configuration file to launch and maintain connections with these servers, providing a centralized management point.

How to use Multiple MCP SSE Servers with Python Host?

  1. Clone the repository. 2. Configure API keys in a .env file. 3. Set up Google Calendar API. 4. Update config.json to include the desired servers. 5. Configure the browser-use server environment. 6. Run the host.py script using UV package manager to start all servers.

Key features of Multiple MCP SSE Servers with Python Host

  • Manages multiple MCP SSE servers

  • Uses a configuration file for server definitions

  • Includes example servers for Google Calendar and browser automation

  • Supports Google Gemini API

  • Provides a clean shutdown mechanism

  • Can be packaged as a distributable DMG

Use cases of Multiple MCP SSE Servers with Python Host

  • Automating tasks across multiple services

  • Integrating different APIs into a single workflow

  • Creating a centralized control point for various server processes

  • Building custom applications that require interaction with Google Calendar and browser automation

  • Developing AI-powered applications using Google's Gemini API

FAQ from Multiple MCP SSE Servers with Python Host

How do I add a new server?

Add a new entry to the mcpServers section in config.json with the server's command and arguments.

How do I get a Gemini API key?

You can obtain a Gemini API key from Google's AI Studio.

What if a server fails to start?

Check the server's port availability, verify environment variables, and ensure the Chrome path is correct for the browser-use server.

How do I interact with the running servers?

Once the servers are running, you can interact with them by typing queries in the client. Refer to the README for specific commands for each server.

What are the requirements for running this application?

You need Python 3.11+, UV package manager, a Google Gemini API key, and Google Calendar API credentials (for the calendar server).