-
securityF
license-
qualityA server implementing the Model Context Protocol that enables AI assistants like Claude to interact with Google's Gemini API for text generation, text analysis, and chat conversations.
Last updated -
Python
Provides a secure file management interface for AI, enabling controlled read/write operations and file listing within a sandboxed environment on the local filesystem.
Integrates with Google's Gemini AI to enable file access operations, allowing Gemini to read, write, and list files within a designated sandbox directory on the user's local machine.
该项目让您可以与 Google 的 Gemini AI 聊天,并允许它在特定的受控文件夹(“沙箱”)内安全地读取、写入和列出您计算机上的文件。
它的作用:
mcp_server.py
**用于访问文件的本地服务器。你需要指定计算机上哪个文件夹是“沙盒”。chat_with_gemini_mcp.py
、 simple_chat.py
) :用于与 Gemini 对话的命令行聊天脚本。Gemini 可以使用mcp_server.py
管理沙盒中的文件。**谨慎使用:**这是一个基本示例。请谨慎选择允许mcp_server.py
访问的文件夹。
.py
文件都在一个文件夹中。set GOOGLE_API_KEY="YOUR_KEY_HERE"
)./install_packages.sh
)./mcp_data_sandbox/
文件夹。要使用其他文件夹: python mcp_server.py --sandbox-dir ./my_files
)notes.txt
并在其中写入‘Hello world’。”notes.txt
。”mcp_server.py
在沙盒文件夹中执行文件操作(读取、写入等)。mcp_server.py
只能访问你指定为沙盒的文件夹内的文件。这是出于安全考虑。这是探索授予AI文件访问权限的基本工具。请明智地使用它!
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
本地服务器使 Google 的 Gemini AI 能够通过自然语言聊天交互安全地读取、写入和列出计算机上受控沙盒文件夹中的文件。