mcp-sk2gdrive
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-sk2gdrivelist my files in the root folder"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google Drive MCP Server (Python + SQLite)
Servidor MCP (Model Context Protocol) em Python para integração com o Google Drive API. Possui persistência local de credenciais OAuth 2.0 em banco SQLite e renovação automática de tokens.
Propósito e Isenção de Responsabilidade (Disclaimer)
Propósito: Este projeto foi desenvolvido exclusivamente para fins educacionais, de pesquisa, prototipagem e auxílio a Desenvolvedores de Software, Engenheiros de Software e Engenheiros de IA na criação de PoCs (Prova de Conceito) e integrações locais com agentes de IA.
Isenção de Responsabilidade: O autor não se responsabiliza pelo mau uso, vazamento de credenciais feito por terceiros, perda de dados ou utilização indevida das APIs. Cada desenvolvedor é inteiramente responsável por suas próprias credenciais OAuth e pelo cumprimento dos Termos de Serviço da Google API.
Vínculo: Este projeto é um utilitário open-source independente e não possui qualquer vínculo, afiliação ou endosso oficial por parte do Google LLC ou da Anthropic.
Related MCP server: mcp-server-drive
Arquitetura
Engine: FastMCP (
mcp.server.fastmcp)API Target: Google Drive API (
googleapiclient)Storage: SQLite (
auth.db) para credenciais OAuth (access token, refresh token, expiry)Transport: Standard IO (stdio)
Requisitos
Python 3.10+
Credencial de aplicativo no Google Cloud Console (OAuth 2.0 Client ID do tipo Desktop App)
Instalação
python -m venv venv
# Windows:
.\venv\Scripts\Activate.ps1
# Linux/macOS:
source venv/bin/activate
pip install -r requirements.txtAutenticação
Execute o fluxo de autenticação via CLI:
python auth_flow.pyO script solicita o Client ID e Client Secret, abre o servidor local na porta 8080 para o consentimento OAuth no navegador e persiste as credenciais no arquivo auth.db.
Configuração do Cliente MCP
Adicione o servidor no arquivo de configuração do seu cliente (ex: claude_desktop_config.json):
{
"mcpServers": {
"gdrive": {
"command": "C:/caminho/para/seu/projeto/venv/Scripts/python.exe",
"args": [
"C:/caminho/para/seu/projeto/server.py"
]
}
}
}Nota: Substitua
C:/caminho/para/seu/projeto/pelo caminho absoluto da pasta do projeto em seu sistema.
Tools Disponíveis
check_auth_status: Retorna o status da autenticação e informações da conta conectada.list_files(folder_id="root", page_size=20, query=""): Lista arquivos e subpastas.search_files(query_string="", page_size=20): Executa busca por nome de arquivo.get_file_metadata(file_id): Retorna metadados detalhados de um arquivo em formato JSON.read_text_file(file_id): Obtém o conteúdo de texto de um arquivo ou exporta Google Docs para texto plano.create_file(name, content, folder_id="root", mime_type="text/plain"): Cria um novo arquivo no Drive.logout(): Remove as credenciais salvas no banco SQLite.
Testes
Para validar a execução de todas as ferramentas localmente:
python test_tools.pyThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceEnables management of Google Drive files, Docs, Sheets, Slides, and Calendar events through natural language using the MCP protocol.Last updated8,022194MIT
- Flicense-qualityBmaintenanceA read-only Google Drive MCP server that allows searching files, reading file content (with auto-export for Google Docs, Sheets, Slides), and retrieving file metadata via OAuth authentication.Last updated402
- Alicense-qualityDmaintenanceEnables management of Google Drive files, Docs, Sheets, and Slides through natural language using MCP, with support for file operations, search, and shared drives.Last updated2MIT
- Alicense-qualityCmaintenanceEnables listing, searching, reading, writing, creating, and uploading files on Google Drive.Last updated14MIT
Related MCP Connectors
Google Docs MCP Pack — read, create, and edit Google Docs via OAuth.
Streamable HTTP MCP server for Google Calendar and Sheets with OAuth login.
The personal context layer for AI: your profile and files, read by any MCP client over OAuth.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/GuilhermeSK2/mcp-sk2gdrive'
If you have feedback or need assistance with the MCP directory API, please join our Discord server