@achi/drive-mcp

@achi/drive-mcp

MCP server that lets AI agents access the user's Achi workspace (Drive files, Properties, Mail, Agent notes) with one token, enabling file operations, search, property management, and more.

Category
访问服务器

README

@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.

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 / financing=debt_free)
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 Apply a suggestion after the user confirms
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)
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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选