Skip to main content
Glama

@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

whoami

Show authenticated user + token capabilities

list_teams

List teams you belong to

list_files

List files + folders (paginated, supports parentFolderId, teamId, trashed)

get_file

File metadata

get_folder

Folder metadata

list_folder_children

List a folder's contents (inherits team space)

search

Find files/folders by name (substring, case-insensitive)

read_file

Download file content (text inline, images as MCP image, other as resource)

read_file_text

Read a file decoded as UTF-8. Errors on non-UTF-8 (binary) files

read_thumbnail

JPEG thumbnail for images/videos

upload_file_from_path

Large files. Local disk path → 5 MiB plaintext chunks. Use this for zips.

upload_file

Small text/base64 only (under 8 MB). Refuses huge blobs.

update_file

Rename / move / star / trash / restore

delete_file

Trash (default) or permanent delete

create_folder

Make a new folder

update_folder

Rename / move / star / trash / restore

delete_folder

Recursive trash (default) or permanent delete

Properties

Tool

What it does

list_units

Properties apartments (teamId / scope=all / buildingId / kind=etw|building / financing=debt_free). summary.remainingDebtEuros counts each MFH loan once.

list_buildings / get_building

MFH objects (one loan, units, garage spaces)

create_building / update_building

Create/patch an MFH. Never invent remaining debt.

create_building_space / update_building_space / delete_building_space

Garage/Stellplatz; occupancyUnitId = with-rented. Delete is permanent

list_building_documents

MFH trail (Kaufvertrag, Nutzungsänderung, Exposé)

create_building_document

Add a house file. Not a Wohnung lease

download_building_document

Download a building trail file

get_unit

One apartment (includes loanStatus, Grundschuld)

update_unit

Write sqm, rooms, rent, tenant, loanStatus… Snapshots first. Never invent remaining debt.

get_unit_financing

Suggestions from trail titles, loans, events

apply_financing_suggestion / dismiss_financing_suggestion

Apply a suggestion after the user confirms, or dismiss it

extract_loan_from_docs

Restschuld from Tilgungsplan PDF (dryRun first)

list_unit_loans / create_unit_loan

Multiple loans per unit

list_unit_versions

Version history

restore_unit

Revert a snapshot

list_unit_documents

Trail (HV, heating, tax, letters)

create_unit_document

Add a trail file (contentBase64 or Drive file id). Revenue: effectiveOn, rentEurosAfter, isCurrentLease

update_unit_document

Fix trail title / date / category / rentEurosAfter

schedule_rent_change

Future cold-rent change (Mieterhöhung ab …)

create_proof_of_revenue

Bank pack (PDF + ZIP). dryRun first. Never invent rent

download_unit_document

Download a trail file

list_unit_payments

Bank-matched rent trail

get_landlord_profile

Stored letterhead (never invented)

list_bank_transactions

Properties rent bank ledger: Kontoauszug lines of a team space (from/to = YYYY-MM). Not the Financials books — see list_book_transactions

get_valuation_worklist / set_unit_valuation / set_building_valuation

Market-value research worklist and writes (dryRun first)

create_nk_letter

Server NK PDF

list_nk_settlements / update_nk_settlement

Tenant NK settlements

list_property_visits / create_property_visit / update_property_visit

Besichtigungsfahrten (never invent km)

Mail

Tool

What it does

list_mail_accounts

Mailboxes (no passwords)

search_mail / read_mail

Search and read mail

create_mail_draft

Save a draft or reply in Drafts, with local or Drive files; the user sends it

read_mail_draft / update_mail_draft / delete_mail_draft

Check, revise or remove a draft

send_mail_draft

Send a draft after the user said yes (Manage key)

manage_mail

Mark read/unread, flag, archive, Trash/restore, add/remove labels

list_mail_labels / create_mail_label

Labels of a space, shared by its mailboxes

read_mail_thread

The whole conversation a message belongs to

read_mail_attachment

Open or save a mail attachment

Agent memory

Tool

What it does

list_agent_notes

Drive /Agent notes

list_git_folders

Drive folders that mirror a git repo

list_skills / read_skill

Mirrored SKILL.md files; read them with read_file

CRM

Tool

What it does

list_crm_boards / create_crm_board

Boards in a space

list_crm_records / create_crm_record / update_crm_record

Contacts. Updates snapshot a version first

list_crm_record_versions / restore_crm_record

Record history and undo

get_crm_stats

Records, followers, by role / country / stage

refresh_crm_x_profile

Followers and country from the public X profile

Tasks

Tool

What it does

list_tasks

To-dos across Personal and all spaces, with lists, members and open Properties to-dos

create_task / update_task / complete_task / delete_task

Add, edit (status, due date, assignee, waiting on, link, move space), finish, remove

create_task_list / update_task_list

Group tasks in a space; rename or archive a list

Contracts

Tool

What it does

list_contract_spaces / list_contract_templates / get_contract_template_version

Where you have access, studios, templates and their fields

list_contracts / list_contracts_waiting / get_contract / get_contract_audit

Contracts, status, values (sensitive ones only for admin/signatory, audited) and audit trail

create_contract

Create from an active template and email the signing link

contract_action / update_contract

Resend, renew link, void, return for correction, send draft; reminders. Countersigning only in the app

Financials (USD books)

Tool

What it does

get_financials_book

Chart of accounts, bank pots, coding rules

list_book_transactions

Financials bank lines (Mercury/Wise) with state and receipts. Not the Properties rent ledger — see list_bank_transactions

import_bank_csv

Import a Mercury/Wise CSV (idempotent, dryRun)

categorize_transaction / exclude_transaction / set_transaction_rate / set_transaction_department

Work the inbox

upload_receipt / attach_receipt / detach_receipt / list_receipts / find_receipt_matches

Receipts and invoices

find_transfer_matches / post_transfer

Transfers between own accounts

unpost_transaction / reverse_journal

Undo a posting / reverse a journal

post_journal / list_journals

Manual journals (permanent, dryRun first) and the general ledger

get_trial_balance / get_report_pnl / get_pnl_by_department / get_report_bs / get_report_cash

Reports

list_departments / create_department

Departments (classes)

Studio

Tool

What it does

list_studio_projects

Productions, or the one production with its documents

get_studio_document / update_studio_document

Read and save a story / dialog document. Saves need expectedUpdatedAt + reason; stories are checked per scene (sceneBase, 409 SCENE_CONFLICT)

list_studio_versions

Saved versions of a document

get_studio_scene

One scene in reading order with the renders assigned to each block and line

view_studio_render

A render as a JPEG the model can see (maxWidth 256–2048)

Environment

Var

Default

Description

ACHI_API_TOKEN

—

Required. achi_pat_* token.

ACHI_API_URL

https://worker.achiapp.com

Override for self-hosted or staging endpoints.

Read-size caps

  • read_file and read_file_text return up to 1 MB by default, 5 MB hard cap. Use rangeStart/rangeEnd for windowed reads of larger files.

  • For large videos/binaries, agents should typically request read_thumbnail for preview and call read_file only 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.js

Smoke test

After deploying the backend (worker + migration), verify the chain end-to-end:

ACHI_API_TOKEN=achi_pat_xxx npm run smoke

This 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

scripts/smoke-test.mjs

End-to-end /v1 API test against a deployed worker. Idempotent (cleans up after itself).

License

MIT

Available Tools

38 tools
create_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).

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

    C2.9/5.0

    Scored across 38 tools

    Disambiguation3/5

    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.

    Naming Consistency4/5

    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.

    Tool Count2/5

    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.

    Completeness3/5

    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

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An 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 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP 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.
      5
      4
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      An 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.
      3
      MIT