parth-patel97
MCP Serverparth-patel97public

mcp server gemini

一个使用 Gemini AI 和 MCP 协议的自然语言航班搜索工具。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Python
Language
-
License

About This Server

一个使用 Gemini AI 和 MCP 协议的自然语言航班搜索工具。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

✈️ Flight Search Assistant (Powered by Gemini + MCP)

This is a simple and powerful Streamlit-based flight search tool that uses Google's Gemini AI model and MCP (Model Context Protocol) Server to find real-time flight information using natural language queries.

Users can search for flights like:

"Find flights from Atlanta to Las Vegas on 2025-05-05"

Gemini interprets the query, identifies the right function/tool to use, and fetches flight data from the mcp-flight-search backend.


🔧 Features

  • ✅ Natural language flight search
  • ✅ Real-time flight data (via SERP API through MCP)
  • ✅ Gemini Pro 2.5 model for query understanding
  • ✅ Interactive UI using Streamlit
  • ✅ Cleanly formatted flight results
  • ✅ Error handling and fallback messaging

📦 Setup Instructions

1. Clone the repo

git clone https://github.com/parth-patel97/mcp-server-gemini.git
cd mcp-server-gemini

2. Install dependencies

pip install -r requirements.txt

3. Create a .env file

Create a .env file in the root of your project:

GEMINI_API_KEY=your-gemini-api-key
SERP_API_KEY=your-serp-api-key

The app will automatically load these using python-dotenv.

4. Run the app

streamlit run flight_search_ui.py

🖼 Sample Screenshot

Screenshot 2025-04-30 at 4 22 25 PM

🔁 Flow Diagram

Screenshot 2025-04-30 at 4 02 40 PM

🧠 How it Works

  1. User enters a natural language query.
  2. Streamlit sends the query to Gemini 2.5.
  3. Gemini interprets the query and generates a function call (tool use).
  4. The tool is executed via MCP Server (mcp-flight-search) which fetches data from SERP API.
  5. The response is formatted and shown in the Streamlit UI.

Quick Start

1

Clone the repository

git clone https://github.com/parth-patel97/mcp-server-gemini
2

Install dependencies

cd mcp-server-gemini
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerparth-patel97
Repomcp-server-gemini
LanguagePython
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation