
gemini mcp example
包含 FileOps MCP 服务器和 Gemini MCP 客户端,用于文件操作和 Gemini API 集成。
Repository Info
About This Server
包含 FileOps MCP 服务器和 Gemini MCP 客户端,用于文件操作和 Gemini API 集成。
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
FileOps MCP Server and Gemini MCP Client
This project consists of two components:
- FileOps MCP Server: A server to perform file operations using the Model Context Protocol (MCP).
- Gemini MCP Client: A command-line chat client that interacts with the FileOps MCP Server and integrates with the Gemini API.
Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
Install node
brew install node pnpm
FileOps MCP Server
The FileOps MCP Server provides tools to perform various file operations like listing files, reading file contents, searching patterns, creating directories, and writing to files.
cd fileops-mcp-server
Set up instructions:
Create virtual env and sync
uv venv
source .venv/bin/activate
uv sync
Jetbrains MCP server
https://plugins.jetbrains.com/plugin/26071-mcp-server
Gemini MCP Client
cd ../gemini-mcp-client
The Gemini MCP Client is a command-line chat client that integrates with the FileOps MCP Server and the Gemini API for enhanced functionality.
Set up Instructions:
Set up virtual env and install deps
uv venv
source .venv/bin/activate
uv sync
Set up gemini
# Create .env file
touch .env
Add your key to .env file
GEMINI_API_KEY=<Your gemini key>
Add .env to .gitignore
echo ".env" >> .gitignore
Modify mcp-server-config.json and replace with your mcp server path and uv details.
Start the client application
python client.py
For detailed setup instructions and usage, refer to the Gemini MCP Client README.
References:
- Model Context Protocol Quickstart (Server)
- Model Context Protocol Quickstart (Client)
- Gemini API Documentation
- Python GenAI SDK
- Gemini MCP Example
- Jetbrains MCP plugin
Quick Start
Clone the repository
git clone https://github.com/krishansubudhi/gemini-mcp-exampleInstall dependencies
cd gemini-mcp-example
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.