OMOS-MCP
OMOS-MCP lets an AI agent read and answer questions from documents in the OMOS Shared Drive.
omos_index – find/list projects by name (or get a sample list), returning projects and files with Drive IDs and links; use this first.
omos_search – full-text search across the whole drive or narrowed to a specific project/section; returns matching files with paths and links.
omos_read – read file contents as text (Google Docs/Sheets/Slides, PDF, DOCX, XLSX, MD/TXT) or as images; responses include citations with file name, path, and link.
omos_refresh – immediately rebuild the cached project index so new files/projects appear without waiting for cache expiry.
Every answer can reference the exact source file with its Google Drive link.
Provides tools to index, search, and read files from a Google Drive shared drive, supporting Google Docs, Sheets, Slides, PDF, .docx, .xlsx, and image files.
Click on "Deploy 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., "@OMOS-MCP มีโปรเจคอะไรบ้างใน OMOS"
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.
OMOS-MCP
MCP server for AI agents (Claude, ChatGPT, Cursor, etc.) to read project documents from OMOS Shared Drive and answer questions — every answer cites the source file with a Google Drive link.
Supported Drive structure:
OMOS/
├── Project A/
│ ├── Project Overview/
│ ├── Timeline/
│ ├── Design/
│ │ ├── System Flow/
│ │ ├── DB/
│ │ └── API/
│ └── BRD/
└── Project B/ ...Tools
Tool | Description |
| Indexes the entire Drive: all projects + all files with id and link (agent always calls this first) |
| Full-text search across the entire Drive, scoped by project/section |
| Reads a file as text — Google Docs/Sheets/Slides, PDF, .docx, .xlsx, md/text, and images (shows image directly to agent) |
| Rebuilds the index immediately (default cache is 5 minutes) |
Agent searches in order: filter by Project Name → if not found, check Project Overview then ask user for confirmation → continue asking about Timeline | BRD | Design (System Flow / DB / API) → if the question is too broad, it will ask back to narrow scope (embedded in server instructions).
Related MCP server: brkt-gdrive-mcp
One-Time Setup: Service Account
The server accesses Drive with a service account (no need for everyone to log in):
Go to console.cloud.google.com → create a new project (or use an existing one)
APIs & Services → Library → search for Google Drive API → click Enable
IAM & Admin → Service Accounts → Create Service Account → set a name like
omos-mcp→ click Create (skip role step, no permissions needed)Go to the created service account → tab Keys → Add Key → Create new key → JSON → the key file will download
Copy the service account email (looks like
omos-mcp@<project>.iam.gserviceaccount.com) and share the Shared Drive / OMOS folder with this email as ViewerFind the folder id of the root OMOS: open the folder in a browser and look at the URL
https://drive.google.com/drive/folders/<this is the id>
Environment Variables
Variable | Description |
| Folder id of the root OMOS (from step 6) — required |
| The entire JSON key file content or path to the file — required |
| (HTTP mode) Bearer token that the client must send |
| Index cache lifetime in seconds (default 300) |
| (HTTP mode) Enables OAuth mode for Claude.ai / ChatGPT web |
| (HTTP mode) Port to listen on (default 8000) |
Run Locally
Install uv first (curl -LsSf https://astral.sh/uv/install.sh | sh)
1) Set up .env (server loads it automatically from repo root):
cp .env.example .envEdit .env to add OMOS_ROOT_FOLDER_ID and the key file path (e.g., place the key file at ./service-account.json — it's already gitignored).
2) Connect with Claude Code (stdio):
claude mcp add omos -- uv run --directory "/path/to/OMOS-MCP" omos-mcpClaude Desktop / Cursor / Windsurf — add to MCP config:
{
"mcpServers": {
"omos": {
"command": "uv",
"args": ["run", "--directory", "/path/to/OMOS-MCP", "omos-mcp"]
}
}
}3) Test: Ask the agent "What projects are in OMOS?" — you should get a list of projects with links.
(Optional) Run as an HTTP server locally: Enable OMOS_AUTH_TOKEN in .env, then
uv run omos-mcp-httpThe endpoint is at http://localhost:8000/mcp; connect with:
claude mcp add --transport http omos http://localhost:8000/mcp -H "Authorization: Bearer <OMOS_AUTH_TOKEN>"Deploy as an MCP Link (Render)
Push this repo to GitHub (includes
Dockerfile+render.yaml)Render → New → Blueprint → select this repo
Set environment variables in the dashboard:
OMOS_ROOT_FOLDER_ID= folder id of the root OMOSGOOGLE_SERVICE_ACCOUNT_JSON= the entire JSON key file content (paste directly)OMOS_AUTH_TOKENRender generates it automatically → copy and share with the team
Deployment complete → endpoint is
https://<app>.onrender.com/mcp
Users connect:
claude mcp add --transport http omos https://<app>.onrender.com/mcp \
-H "Authorization: Bearer <OMOS_AUTH_TOKEN>"Cursor / VS Code: Add URL + header Authorization: Bearer <token> in MCP config
Use with Claude.ai / ChatGPT (Web) — OAuth
Web clients cannot pass headers, so OAuth is required through a provider like WorkOS AuthKit (free for up to 1M users):
Sign up at workos.com → enable AuthKit → set login method + restrict to team members only
Dashboard → Connect → Configuration → enable Client ID Metadata Document and Dynamic Client Registration
Add Resource Indicator =
https://<app>.onrender.com(without/mcp)Set 3 additional env variables on Render:
OAUTH_ISSUER= AuthKit domain,OAUTH_AUDIENCE=https://<app>.onrender.com,PUBLIC_URL=https://<app>.onrender.comUsers: Claude.ai → Settings → Connectors → Add custom connector → enter
https://<app>.onrender.com/mcp→ log in via WorkOS
OAuth mode and bearer token can coexist — web uses OAuth, CLI can still use the token
Test Converters
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.
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.6 npm1MIT