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, 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

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

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

Convenience: read a file decoded as UTF-8

read_thumbnail

JPEG thumbnail for images/videos

upload_file

Create a file from text or base64

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

list_units

Properties apartments (teamId / scope=all)

get_unit

One apartment

update_unit

Write sqm, rooms, rent, tenant… Snapshots first.

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)

update_unit_document

Fix trail title / documentDate / notes

download_unit_document

Download a trail file

list_unit_payments

Bank-matched rent trail

get_landlord_profile

Stored letterhead (never invented)

list_bank_transactions

Kontoauszug lines

list_mail_accounts

Mailboxes (no passwords)

search_mail / read_mail

Search and read mail

list_agent_notes

Drive /Agent notes

create_nk_letter

Server NK PDF

Environment

Var

Default

Description

ACHI_API_TOKEN

Required. achi_pat_* token.

ACHI_API_URL

https://api.achi.cc

Override for self-hosted or staging endpoints.

Read-size caps

  • read_file returns 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/deploy-helper.sh

Runs the DB migration, deploys the worker, rebuilds the frontend. Needs NILE_DIRECT_DB_URL exported + wrangler login already done.

scripts/smoke-test.mjs

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

License

MIT

Install Server
F
license - not found
C
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    A
    quality
    F
    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
    3
  • 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

View all related MCP servers

Related MCP Connectors

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

  • OCR, transcription, file extraction, and image generation for AI agents via MCP.

  • Hosted AgentLux MCP server for marketplace, identity, creator, services, and social flows.

View all MCP Connectors

Latest Blog Posts

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/EBIElimited/drive-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server