
mcp server gemini
一个使用 Gemini AI 和 MCP 协议的自然语言航班搜索工具。
Repository Info
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
🔁 Flow Diagram
🧠 How it Works
- User enters a natural language query.
- Streamlit sends the query to Gemini 2.5.
- Gemini interprets the query and generates a function call (tool use).
- The tool is executed via MCP Server (
mcp-flight-search) which fetches data from SERP API. - The response is formatted and shown in the Streamlit UI.
Quick Start
Clone the repository
git clone https://github.com/parth-patel97/mcp-server-geminiInstall dependencies
cd mcp-server-gemini
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.