OMOS-MCP
OMOS-MCP
Сервер MCP, позволяющий AI-агентам (Claude, ChatGPT, Cursor и др.) читать документы проектов на OMOS Shared Drive для ответа на вопросы — каждый ответ ссылается на исходный файл со ссылкой Google Drive.
Поддерживаемая структура Drive:
OMOS/
├── Project A/
│ ├── Project Overview/
│ ├── Timeline/
│ ├── Design/
│ │ ├── System Flow/
│ │ ├── DB/
│ │ └── API/
│ └── BRD/
└── Project B/ ...Инструменты
Инструмент | Описание |
| индексирует весь Drive: все проекты + все файлы с id и ссылкой (агент вызывает это первым) |
| полнотекстовый поиск по всему Drive с возможностью ограничить область поиска по проекту/разделу |
| читает файл как текст — Google Docs/Sheets/Slides, PDF, .docx, .xlsx, md/text и изображения (отправляет изображение агенту напрямую) |
| мгновенно перестраивает индекс (обычно кэш 5 минут) |
Агент выполняет поиск в следующем порядке: фильтр Project Name → если не найдено, смотрит Project Overview и запрашивает подтверждение у пользователя → затем уточняет, относится ли вопрос к Timeline | BRD | Design (System Flow / DB / API) → если вопрос слишком общий, переспрашивает, чтобы сузить область (встроено в серверные инструкции).
Related MCP server: brkt-gdrive-mcp
Одноразовая настройка: Service Account
Сервер получает доступ к Drive через сервисный аккаунт (не нужно, чтобы все входили в систему):
Зайдите в console.cloud.google.com → создайте новый проект (или используйте существующий)
APIs & Services → Library → найдите Google Drive API → нажмите Enable
IAM & Admin → Service Accounts → Create Service Account → задайте имя, например
omos-mcp→ нажмите Create (шаг с ролью можно пропустить, никаких прав не требуется)Зайдите в созданный сервисный аккаунт → вкладка Keys → Add Key → Create new key → JSON → файл ключа загрузится
Скопируйте email сервисного аккаунта (вид
omos-mcp@<project>.iam.gserviceaccount.com) и предоставьте доступ к Shared Drive / папке OMOS этому email с правами ViewerНайдите folder id корневой папки OMOS: откройте папку в браузере и посмотрите в URL
https://drive.google.com/drive/folders/<это и есть id>
Переменные окружения
Переменная | Описание |
| folder id корневой папки OMOS (из шага 6) — обязательно |
| содержимое JSON-ключа целиком или путь к файлу — обязательно |
| (HTTP режим) bearer token, который должен отправлять клиент |
| время жизни кэша индекса в секундах (по умолчанию 300) |
| (HTTP режим) включает режим OAuth для Claude.ai / ChatGPT web |
| (HTTP режим) порт для прослушивания (по умолчанию 8000) |
Запуск локально
Сначала установите uv (curl -LsSf https://astral.sh/uv/install.sh | sh)
1) Настройте .env (сервер загружает его автоматически из корня репозитория):
cp .env.example .envОтредактируйте .env, вставив OMOS_ROOT_FOLDER_ID и путь к файлу ключа (например, поместите файл ключа в ./service-account.json — он уже добавлен в gitignore)
2) Подключение к Claude Code (stdio):
claude mcp add omos -- uv run --directory "/path/to/OMOS-MCP" omos-mcpClaude Desktop / Cursor / Windsurf — укажите в конфигурации MCP:
{
"mcpServers": {
"omos": {
"command": "uv",
"args": ["run", "--directory", "/path/to/OMOS-MCP", "omos-mcp"]
}
}
}3) Тестирование: спросите агента "Какие проекты есть в OMOS?" — он должен вернуть список проектов со ссылками
(Альтернатива) Запуск как HTTP-сервера локально: включите OMOS_AUTH_TOKEN в .env, затем
uv run omos-mcp-httpendpoint находится по адресу http://localhost:8000/mcp, подключение:
claude mcp add --transport http omos http://localhost:8000/mcp -H "Authorization: Bearer <OMOS_AUTH_TOKEN>"Развёртывание как MCP-ссылки (Render)
Залейте этот репозиторий на GitHub (в нём уже есть
Dockerfile+render.yaml)Render → New → Blueprint → выберите этот репозиторий
Задайте переменные окружения в панели:
OMOS_ROOT_FOLDER_ID= folder id корневой папки OMOSGOOGLE_SERVICE_ACCOUNT_JSON= содержимое JSON-ключа целиком (вставьте как есть)OMOS_AUTH_TOKENRender сгенерирует сам → скопируйте и раздайте команде
После развёртывания endpoint:
https://<app>.onrender.com/mcp
Пользователи подключаются:
claude mcp add --transport http omos https://<app>.onrender.com/mcp \
-H "Authorization: Bearer <OMOS_AUTH_TOKEN>"Cursor / VS Code: укажите URL + заголовок Authorization: Bearer <token> в конфигурации MCP
Использование с Claude.ai / ChatGPT (веб) — OAuth
У веб-клиентов нет возможности вводить заголовок, поэтому требуется OAuth через провайдера, например WorkOS AuthKit (бесплатно до 1 млн пользователей):
Зарегистрируйтесь на workos.com → включите AuthKit → настройте способ входа + ограничьте доступ только для членов команды
Панель → Connect → Configuration → включите Client ID Metadata Document и Dynamic Client Registration
Добавьте Resource Indicator =
https://<app>.onrender.com(без/mcp)Добавьте на Render ещё 3 переменные:
OAUTH_ISSUER= домен AuthKit,OAUTH_AUDIENCE=https://<app>.onrender.com,PUBLIC_URL=https://<app>.onrender.comПользователь: Claude.ai → Settings → Connectors → Add custom connector → укажите
https://<app>.onrender.com/mcp→ войдите через WorkOS
Режим OAuth и bearer token могут сосуществовать — веб использует OAuth, CLI всё ещё может использовать токен
Тестирование конвертеров
uv run python test_convert.pyAvailable Tools
4 toolsomos_indexA
Get the full index of the OMOS drive: every project and its files (with file ids and links). Use this whenever the user asks about any internal project, BRD, timeline, design, system flow, DB, API, or เอกสารโปรเจค — ALWAYS call this first, then filter by Project Name before drilling into Timeline / BRD / Design (System Flow, DB, API).
Inputs: no named parameters. Returns: result
omos_readA
Read a file from the OMOS drive as text (Google Docs/Sheets/Slides, PDF, docx, xlsx, markdown/text) or as an image (png/jpg). The response starts with a citation block (file name, path, link) — always include that citation in your answer.
Args: file_id: the Drive file id from omos_index or omos_search
Inputs: file_id (required).
omos_refreshA
Rebuild the drive index so newly added projects/files show up immediately (the index is otherwise cached for a few minutes).
Inputs: no named parameters. Returns: result
omos_searchA
Full-text search across the OMOS drive. Returns matching files with project path and link; use omos_read on the ids to read content.
Args: query: keyword or phrase (searches file content and names) project: optional exact project name from omos_index to narrow the search section: optional section name (e.g. 'BRD', 'Timeline', 'Design', 'DB') to narrow further
Inputs: query (required), project, section. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: omos_index provides the full index, omos_search performs full-text search with optional filters, omos_refresh rebuilds the index, and omos_read reads file content. There is no overlap or ambiguity between them.
All tools follow a consistent 'omos_<verb>' pattern (index, search, refresh, read). The naming is predictable and uniform, making it easy for an agent to understand the action each tool performs.
With 4 tools, the set is well-scoped for a drive retrieval server. Each tool addresses a necessary function (listing, searching, refreshing, reading) without being too few or excessive. The count matches the domain's core operations.
The tool surface covers the full read lifecycle for the OMOS drive: obtaining the index, searching, refreshing for updates, and reading file content. No obvious gaps exist for a retrieval-focused server; all necessary operations are present.
Related MCP Connectors
One MCP server for the services your AI needs: memory, files, Microsoft 365, kanban and more.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
MCP server for generating rough-draft project plans from natural-language prompts.
- ORANO MCP ServerDeprecatedio.github.infotik
Read-only MCP server exposing a user ORANO library to their own AI agent.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables users to query documents from Google Drive using AI assistance, providing tools for searching vector databases and generating answers based on document content.ISC
- AlicenseNot gradedqualityDmaintenanceMCP server for semantic search over Google Drive documents, enabling AI tools to search, list, and retrieve document content.MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to interact with Google Docs, Sheets, and Drive using the user's own Google account.-
- AlicenseNot gradedqualityDmaintenanceMCP server that reads Google Docs and Google Sheets content for AI assistants like Claude.11 npm1MIT