@achi/drive-mcp
This MCP server gives an AI agent token-scoped access to an Achi workspace — Drive files/folders, rental-property (Vermietung) data, mail, agent notes/skills, and server-generated NK letters — over stdio JSON-RPC.
Identity:
whoami(user, auth method, file-content capability) andlist_teams(team IDs + roles) to scope everything else.Drive browsing:
list_files,get_file,get_folder,list_folder_children, and case-insensitive namesearch(root, team, or folder scope; pagination via cursor).Drive reading:
read_file(text inline, images as MCP image, binaries as resource; 1 MB default / 5 MB cap, withrangeStart/rangeEndwindowing),read_file_text(UTF-8 only), andread_thumbnailfor image/video previews.Drive writing:
upload_file(text or base64 under 8 MB),update_file/update_folder(rename, move, star, trash/restore),create_folder, anddelete_file/delete_folder(trash by default, irreversible recursive permanent delete).Properties units:
list_units(per team orscope=all) andget_unit(tenant, rent, address, trail folder).Properties edits with history:
update_unit(sqm, rooms, rent, tenant, valuations, etc.; snapshots first and requiresversionReason+ifUpdatedAt),list_unit_versions, andrestore_unitto undo a bad write.Properties documents:
list_unit_documents,create_unit_document(PDF/file content or an existing Drive file id, with categories/years/periods),update_unit_document(title, date, notes), anddownload_unit_document.Properties money:
list_unit_payments(bank-matched rent trail, cold/warm/NK) andlist_bank_transactions(team Kontoauszug lines, requiresteamId).Properties letterhead:
get_landlord_profile— stored Vermieter data only, never invented.NK settlements:
create_nk_letter(server-side Nebenkostenabrechnung PDF from line items, optionally filing a settlement),list_nk_settlements(two rows for mid-year tenant change), andupdate_nk_settlement(status/amounts/notes/document link).Mail:
list_mail_accounts,search_mail(subject/from/snippet), andread_mail(full plaintext body) — no passwords exposed.Agent memory:
list_agent_notes(Drive/Agentnotes),list_git_folders(git-mirrored folders), andlist_skills/read_skillto locate mirroredSKILL.mdfiles forread_file.Config: requires
ACHI_API_TOKEN(achi_pat_*); tokens without file-content access are limited to metadata operations.
Provides tools for the Financials (USD books) integration with Wise, including listing Wise/Mercury bank transactions with state and receipts, and importing Mercury/Wise CSV files idempotently with dry-run support.
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., "@@achi/drive-mcp Find a file called 'project plan' in my Drive"
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.
@achi/drive-mcp
MCP server for Achi — Hermes, Grok Build, Claude, Cursor. One achi_pat_* token sees the same spaces and apps as the user: Drive, Properties, Mail, CRM, Financials, Studio, Agent notes, and server-side NK letters.
Install + run
You need an API token first. Sign in to Achi → Settings → AI → create a key with "Allow file content access" enabled. Copy the achi_pat_… token (it's only shown once).
Claude Desktop / Claude Code
Add to your MCP config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, or via claude mcp add):
{
"mcpServers": {
"achi-drive": {
"command": "npx",
"args": ["-y", "github:EBIElimited/drive-mcp"],
"env": {
"ACHI_API_TOKEN": "achi_pat_xxxxxxxx"
}
}
}
}Cursor / Continue / other MCP-capable hosts
Same idea — point the host at the binary and set ACHI_API_TOKEN. The binary speaks stdio JSON-RPC.
Manual run (for debugging)
ACHI_API_TOKEN=achi_pat_xxx npx -y github:EBIElimited/drive-mcp
`@achi/drive-mcp` is the package name; install from GitHub until it is on the npm registry.Related MCP server: agentforge
Tools
Every tool carries a title and MCP annotations (readOnlyHint for list/get/read/search, destructiveHint for deletes, mail triage and ledger postings, idempotentHint where repeating a call is safe). JSON results are compact (no indentation).
Identity + Drive
Tool | What it does |
| Show authenticated user + token capabilities |
| List teams you belong to |
| List files + folders (paginated, supports |
| File metadata |
| Folder metadata |
| List a folder's contents (inherits team space) |
| Find files/folders by name (substring, case-insensitive) |
| Download file content (text inline, images as MCP image, other as resource) |
| Read a file decoded as UTF-8. Errors on non-UTF-8 (binary) files |
| JPEG thumbnail for images/videos |
| Large files. Local disk path → 5 MiB plaintext chunks. Use this for zips. |
| Small text/base64 only (under 8 MB). Refuses huge blobs. |
| Rename / move / star / trash / restore |
| Trash (default) or permanent delete |
| Make a new folder |
| Rename / move / star / trash / restore |
| Recursive trash (default) or permanent delete |
Properties
Tool | What it does |
| Properties apartments ( |
| MFH objects (one loan, units, garage spaces) |
| Create/patch an MFH. Never invent remaining debt. |
| Garage/Stellplatz; |
| MFH trail (Kaufvertrag, Nutzungsänderung, Exposé) |
| Add a house file. Not a Wohnung lease |
| Download a building trail file |
| One apartment (includes loanStatus, Grundschuld) |
| Write sqm, rooms, rent, tenant, loanStatus… Snapshots first. Never invent remaining debt. |
| Suggestions from trail titles, loans, events |
| Apply a suggestion after the user confirms, or dismiss it |
| Restschuld from Tilgungsplan PDF ( |
| Multiple loans per unit |
| Version history |
| Revert a snapshot |
| Trail (HV, heating, tax, letters) |
| Add a trail file ( |
| Fix trail title / date / category / rentEurosAfter |
| Future cold-rent change (Mieterhöhung ab …) |
| Bank pack (PDF + ZIP). |
| Download a trail file |
| Bank-matched rent trail |
| Stored letterhead (never invented) |
| Properties rent bank ledger: Kontoauszug lines of a team space ( |
| Market-value research worklist and writes ( |
| Server NK PDF |
| Tenant NK settlements |
| Besichtigungsfahrten (never invent km) |
Tool | What it does |
| Mailboxes (no passwords) |
| Search and read mail |
| Save a draft or reply in Drafts, with local or Drive files; the user sends it |
| Check, revise or remove a draft |
| Send a draft after the user said yes (Manage key) |
| Mark read/unread, flag, archive, Trash/restore, add/remove labels |
| Labels of a space, shared by its mailboxes |
| The whole conversation a message belongs to |
| Open or save a mail attachment |
Agent memory
Tool | What it does |
| Drive |
| Drive folders that mirror a git repo |
| Mirrored |
CRM
Tool | What it does |
| Boards in a space |
| Contacts. Updates snapshot a version first |
| Record history and undo |
| Records, followers, by role / country / stage |
| Followers and country from the public X profile |
Tasks
Tool | What it does |
| To-dos across Personal and all spaces, with lists, members and open Properties to-dos |
| Add, edit (status, due date, assignee, waiting on, link, move space), finish, remove |
| Group tasks in a space; rename or archive a list |
Contracts
Tool | What it does |
| Where you have access, studios, templates and their fields |
| Contracts, status, values (sensitive ones only for admin/signatory, audited) and audit trail |
| Create from an active template and email the signing link |
| Resend, renew link, void, return for correction, send draft; reminders. Countersigning only in the app |
Financials (USD books)
Tool | What it does |
| Chart of accounts, bank pots, coding rules |
| Financials bank lines (Mercury/Wise) with state and receipts. Not the Properties rent ledger — see |
| Import a Mercury/Wise CSV (idempotent, |
| Work the inbox |
| Receipts and invoices |
| Transfers between own accounts |
| Undo a posting / reverse a journal |
| Manual journals (permanent, |
| Reports |
| Departments (classes) |
Studio
Tool | What it does |
| Productions, or the one production with its documents |
| Read and save a story / dialog document. Saves need |
| Saved versions of a document |
| One scene in reading order with the renders assigned to each block and line |
| A render as a JPEG the model can see ( |
Environment
Var | Default | Description |
| — | Required. |
|
| Override for self-hosted or staging endpoints. |
Read-size caps
read_fileandread_file_textreturn up to 1 MB by default, 5 MB hard cap. UserangeStart/rangeEndfor windowed reads of larger files.For large videos/binaries, agents should typically request
read_thumbnailfor preview and callread_fileonly with a range.
Permissions
The token grants the agent whatever access you have — personal files plus every team you're a member of. There's no per-folder scoping. Revoke the token at any time from Settings → AI.
Tokens created without "Allow file content access" can only call metadata operations (list_*, get_*, update_* with non-name changes, delete_*). Content reads/writes and rename/search will return METADATA_ONLY_TOKEN errors.
Security model
The token itself is the only secret needed. Your password and master encryption key never leave your browser.
The server side stores your masterKey wrapped under a key derived from the raw token via HKDF-SHA256 — the worker can only unwrap during a request that presents the raw token.
All file content is encrypted on Cloudflare R2 with per-file AES-GCM keys. The MCP server only ever sees plaintext for the duration of a single tool call.
Build from source
git clone … drive-mcp
cd drive-mcp
npm install
npm run build
ACHI_API_TOKEN=achi_pat_xxx node dist/index.jsSmoke test
After deploying the backend (worker + migration), verify the chain end-to-end:
ACHI_API_TOKEN=achi_pat_xxx npm run smokeThis walks: auth → list → unwrap → create folder → upload → download (full + Range) → rename → search → permanent delete. Exits non-zero on any failure.
Helper scripts
Script | What it does |
| End-to-end /v1 API test against a deployed worker. Idempotent (cleans up after itself). |
License
MIT
Available Tools
38 toolscreate_folderC
Create a new folder.
Inputs: name (required), teamId, parentFolderId.
create_nk_letterA
Compile a tenant Nebenkostenabrechnung PDF on the Achi server (no browser pdf.js). Pass recoverable line items only. Do not invent amounts, Anschrift, or IBAN. Do not include Eigentümerkosten leftovers or Quellenangabe — the server strips them. If tenants changed mid-year, pass occupancyId + periodFrom + periodTo so this letter does not overwrite the other stay. Returns a PDF. Also files the unit trail and a settlement (x-achi-nk-settlement-id).
Inputs: year (required), items (required), unitId (required), notes, +7 more.
create_unit_documentA
Create a Properties trail document (NK letter, HV file, …). Send contentBase64 for the PDF/file. Use this instead of asking the user to re-attach. Uploading into Achi Properties/{unit} also creates a trail row.
Inputs: unitId (required), year, notes, title, +9 more.
delete_fileA
Move a file to trash, or delete it permanently (irreversible). Default is trash.
Inputs: id (required), permanent.
delete_folderA
Move a folder to trash (recursive — all descendants trashed) or delete it permanently (also recursive — all contents wiped from R2 + DB). Permanent delete is irreversible.
Inputs: id (required), permanent.
download_unit_documentB
Download one trail document (PDF/ODT). Use this instead of asking the user to re-attach HV or heating files.
Inputs: docId (required), unitId (required).
get_fileA
Get metadata for a single file (name, mimeType, sizeBytes, etc.). Does NOT return content — use read_file for that.
Inputs: id (required).
get_folderC
Get metadata for a folder.
Inputs: id (required).
get_landlord_profileC
Stored Vermieter letterhead for a space. Empty fields stay empty — never invent legal name, street, or IBAN.
Inputs: teamId.
get_unitA
Load one apartment: tenant, rent, address, trail folder. Does not invent Anschrift or IBAN.
Inputs: id (required).
list_agent_notesA
List Drive /Agent notes in a space (agent.md, learnings/letters.md, …). Requires a content-access token.
Inputs: teamId.
list_bank_transactionsD
Kontoauszug lines for a team space. Requires teamId.
Inputs: teamId (required), to, from.
list_filesA
List files and folders. Omit parentFolderId for the root. Pass teamId to list inside a team. Supports cursor-based pagination via the returned nextCursor.
Inputs: limit, cursor, teamId, trashed, +1 more.
list_folder_childrenB
List the immediate children (files + subfolders) of a folder.
Inputs: id (required), limit, cursor.
list_git_foldersA
List Drive folders that mirror a private git repo. Agents read the Drive copy — never ask for a GitHub token.
Inputs: teamId.
list_mail_accountsC
Mailboxes the user can read. Never returns passwords.
Inputs: teamId.
list_nk_settlementsB
List tenant NK settlements for an apartment and year. Mid-year move-out → two rows, not one.
Inputs: unitId (required), year.
list_skillsB
List SKILL.md files mirrored from git folders in this space (e.g. novel-dialogue). Then read_file on the fileId.
Inputs: teamId.
list_teamsA
List all teams the user is a member of, with their roles. Use the returned team IDs as the teamId arg to other tools to operate inside a team's space.
Inputs: no named parameters.
list_unit_documentsA
List the Properties document trail for an apartment (HV, heating, tax, prior NK letters).
Inputs: unitId (required).
list_unit_paymentsB
Bank-statement payment trail for an apartment (cold/warm/NK). Source of rent-paid truth.
Inputs: unitId (required), to, from.
list_unitsA
List Properties (Vermietung) apartments the user can see. Pass teamId for a space such as Chi Ross. scope=all lists every space.
Inputs: scope, teamId.
list_unit_versionsA
List Properties unit snapshots (newest first). Use restore_unit if an earlier write was wrong.
Inputs: unitId (required), limit.
read_fileA
Download a file and return its content inline. Default cap: 1 MB; absolute cap: 5 MB. For larger files, pass rangeStart/rangeEnd to fetch a specific byte range. Text mime types return as text. Images return as MCP image content. Other binaries return as embedded resource.
Inputs: id (required), maxBytes, rangeEnd, rangeStart.
read_file_textA
Read a file as plain text, decoded as UTF-8. Convenience wrapper around read_file with a default 1 MB cap. Returns an error if the file is not text-encodable.
Inputs: id (required), maxBytes.
read_mailB
Read one mail message including plaintext body. No passwords.
Inputs: id (required).
read_skillA
Find one mirrored skill by name (novel-dialogue) and return its Drive fileId. Use read_file next.
Inputs: name (required), teamId.
read_thumbnailA
Get the JPEG thumbnail of a file (if it has one). Returns MCP image content. Useful for previewing images/videos without downloading the full file.
Inputs: id (required).
restore_unitA
Revert a Properties unit to a prior snapshot. The live row is snapshotted first so this restore can also be undone.
Inputs: unitId (required), versionId (required).
searchA
Search files and folders by name (case-insensitive substring match). Scans up to 5,000 items per scope; results may be truncated for huge drives.
Inputs: q (required), limit, teamId.
search_mailB
Search mail the user can read (subject/from/snippet). No passwords.
Inputs: q, limit, teamId, mailbox, +1 more.
update_fileA
Rename, move, star/unstar, trash/restore a file in one call. Pass only the fields you want to change.
Inputs: id (required), name, starred, trashed, +1 more.
update_folderB
Rename, move, star/unstar, trash/restore a folder.
Inputs: id (required), name, starred, trashed, +1 more.
update_nk_settlementA
Patch one NK settlement (status, amounts, notes). Does not change other tenants in the same year.
Inputs: nkId (required), unitId (required), notes, status, +4 more.
update_unitA
Write Properties fields (squareMeters, rooms, rent, tenant, notes, …). Snapshots the current row first so restore_unit can undo a bad write. Always pass versionReason. Use ifUpdatedAt from get_unit.updatedAt to avoid clobbering.
Inputs: id (required), city, name, todo, +26 more.
update_unit_documentA
Patch a trail document’s title, documentDate (YYYY-MM-DD or DD.MM.YYYY), or notes. Use this for a wrong letter date — do not ask the user to edit the UI.
Inputs: docId (required), unitId (required), notes, title, +1 more.
upload_fileA
Upload a new file. Provide content as base64 (for binaries) or text. Set mimeType for proper handling.
Inputs: name (required), content (required), teamId, mimeType, +2 more.
whoamiA
Show the authenticated Achi Drive user, auth method, and whether the token has file-content access.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 38 tools
Most tools are clearly distinguished by resource type (file, folder, unit, mail, skill), but list_files and list_folder_children overlap significantly since list_files with a parentFolderId already lists immediate children. read_file_text is also a thin wrapper over read_file, adding ambiguity.
The naming largely follows consistent patterns (list_*, get_*, read_*, create_*, update_*, delete_*), but there are outliers like whoami, search, restore_unit, and download_unit_document that break the verb_noun convention. Overall, the pattern is predictable despite a few deviations.
With 38 tools, this server is well over the 25-tool threshold for 'too many'. It bundles file storage, mail, property management, and skills into a single server, making it heavy and potentially overwhelming for agents to navigate.
File/folder CRUD is complete, and unit management has update, versioning, and document handling. However, there is no create_unit or delete_unit, leaving an obvious lifecycle gap for property management. Mail is intentionally read-only, so that is not a gap.
Maintenance
Related MCP Connectors
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
One MCP server for the services your AI needs: memory, files, Microsoft 365, kanban and more.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to list, read, create, and manage files in Google Drive. It features automatic conversion of Google Workspace formats into Markdown, CSV, and plain text for seamless integration with AI workflows.35 npmMIT
- AlicenseAqualityDmaintenanceMCP server that exposes 300+ AI agents as tools via a single API key. Supports listing agents, invoking any agent with chat-completion style messages, checking agent health, and retrieving platform statistics.54MIT
- AlicenseAqualityBmaintenanceAn MCP server that enables LLMs to search, fetch, and act on Google Workspace (Drive, Gmail, Docs, Sheets, etc.) with rich, one-call results and file deposits to disk, reducing context usage.3MIT
- AlicenseBqualityDmaintenanceA production-ready MCP server that bridges AI agents with Google Workspace (Gmail & Docs) to securely compose emails and edit documents via standardized tools.3MIT