Machina
AI's home on your Mac: gives AI agents remote access to iMessage, Notes, Reminders, Contacts, and more via MCP.
README
<p align="center"> <img src="assets/logo.png" alt="Machina" width="300"> </p>
Machina
AI's home on your Mac.
Give AI agents remote access to iMessage, Notes, Reminders, Contacts, and more. Installed and maintained by Claude Code - not bash scripts.
Cloud AI ──MCP over HTTP──▶ Machina ──▶ Your Mac's capabilities
The Problem
AI agents can think, reason, and plan - but they can't act. They can't send you an iMessage. They can't check your calendar. They can't control your Mac.
Existing solutions are fragmented: separate MCP servers for each capability, local-only access, traditional installers that break on edge cases.
The Solution
Machina provides:
- MCP Gateway - Standard MCP server exposing all Mac capabilities
- Remote Access - Cloud AI agents can reach your Mac via Tailscale
- AI-Native Installation - Claude reads the knowledge, adapts to your system, installs everything
- Self-Maintaining - Automated updates, health checks, auto-recovery
Installation
Prerequisites
You need:
- macOS (Apple Silicon or Intel)
- Tailscale - Sign up and install (free tier works)
- Claude Code - The AI-native installer
Optional:
- Homebrew (Claude will install if needed)
- Node.js 22+ (Claude will install if needed)
Quick Start
Important: Run this setup from the Mac's Terminal app or via VNC, not over SSH. macOS permission prompts require GUI access.
# 1. Clone the repo
git clone https://github.com/TechNickAI/machina ~/machina
cd ~/machina
# 2. Start Claude Code (bypass mode required for automation)
claude --permission-mode=bypassPermissions
Then run: /machina
Claude will:
- ✅ Verify prerequisites (Tailscale, macOS version, Node.js)
- 🔐 Trigger all permission prompts at once (approve them all)
- 📦 Install dependencies
- 🔑 Generate authentication token
- 🚀 Start the MCP gateway
- 🌐 Configure Tailscale HTTPS access
- 🧪 Test with actual iMessage/Notes queries
- 📋 Give you an MCP config to copy/paste
That's it. 5-10 minutes. No bash scripts. No debugging. Claude adapts to your system.
The AI-Native Installer
This is Machina's key innovation.
Traditional installers follow deterministic steps and break on edge cases. Machina's knowledge/ folder contains goals and verification criteria. Claude reads it, understands the goal, assesses your system, adapts, and achieves the desired state.
| Traditional Installer | AI-Native Installer |
|---|---|
| Assumes deterministic environment | Adapts to your actual system |
| Breaks on edge cases | Debugs and fixes issues |
| User googles errors | Claude resolves errors |
| One-size-fits-all | Asks what you want |
Why this works:
- Claude can assess: "Is Homebrew installed? What permissions are granted?"
- Claude can adapt: "Node.js not found - installing it first"
- Claude can debug: "AppleScript permission error - checking System Preferences"
- Claude can verify: "Sending test message to confirm iMessage works"
- Claude can ask: "Do you want WhatsApp? This requires QR authentication."
Capabilities
| Capability | Implementation | Status |
|---|---|---|
| iMessage | Direct SQLite + AppleScript | ✅ Ready |
| Notes | AppleScript | ✅ Ready |
| Reminders | AppleScript | ✅ Ready |
| Contacts | AppleScript | ✅ Ready |
| Baileys library + SQLite (optional, needs QR) | ✅ Ready |
All operations use the progressive disclosure pattern - one machina tool with dot-notation operations:
// Discover all available operations
machina(action='describe')
// Specific operation details
machina(action='describe', params={operation: 'whatsapp.send'})
// Execute an operation
machina(action='whatsapp.chats', params={limit: 5})
machina(action='messages.send', params={to: 'Mom', body: 'Hi!'})
Architecture
graph TB
AI[Cloud AI Agent<br/>Claude, Carmenta, etc.]
TS[Tailscale Network<br/>Encrypted tunnel]
GW[Machina Gateway<br/>:9900]
subgraph "Your Mac"
GW
AS[AppleScript Engine]
DB[(Messages DB<br/>SQLite)]
WA[WhatsApp Service<br/>:9901]
WADB[(WhatsApp DB<br/>SQLite)]
subgraph "macOS Apps"
MSG[Messages]
NOTES[Notes]
REM[Reminders]
CONT[Contacts]
end
end
AI -->|MCP over HTTPS<br/>Bearer token| TS
TS -->|Port 9900| GW
GW -->|Direct SQLite| DB
GW -->|AppleScript| AS
GW -->|HTTP/SQLite| WA
WA -->|Baileys| WADB
AS --> MSG
AS --> NOTES
AS --> REM
AS --> CONT
style AI fill:#e1f5ff
style TS fill:#fff3cd
style GW fill:#d4edda
style AS fill:#f8d7da
style WA fill:#dcf8c6
Key points:
- Progressive disclosure: One
machinatool, operations discovered on-demand - Direct access: SQLite for Messages/WhatsApp (faster), AppleScript for others
- Secure: Tailscale encrypted tunnel + bearer token auth
- Simple: Single Node.js process + optional WhatsApp service
Updates
cd ~/machina && claude --permission-mode=bypassPermissions
Run: /machina (same command - it detects you're already installed and checks for updates)
Or trigger remotely via the system_update MCP operation.
Requirements
- macOS (Apple Silicon or Intel)
- Claude Code
- Tailscale (for remote access)
- Willingness to grant Automation permissions
Philosophy
The knowledge folder IS the installer.
Machina embodies a new paradigm: AI-native software. Instead of writing bash scripts that break, we write knowledge that Claude reads and executes. Claude adapts, debugs, and verifies. Humans approve and oversee.
This pattern should spread. Fork this. Learn from it. Apply it to your own projects.
License
MIT
Built for Carmenta - AI that actually cares.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。