Cued MCP Server
Enables Claude to access and search local messages and contacts across multiple platforms (iMessage, Discord, Gmail, Slack) via a local-first datastore, ensuring data never leaves the Mac.
README
Cued MCP Server
MCP server for Cued — Enable Claude to access your local messages and contacts via Model Context Protocol.
Cued is a local-first message and contact datastore for AI agents. This MCP server bridges Cued and Claude, letting you:
- 🔍 Search messages across all platforms (iMessage, Discord, Gmail, Slack, etc.)
- 📋 Query contacts from your synchronized address book
- 🔄 Trigger platform syncs on-demand
- 📊 Get message statistics by platform
- 💾 Export conversations to JSON or CSV
- 🏥 Run diagnostics to verify installation and permissions
Everything stays local and private — data never leaves your Mac.
Installation
Via npm (Recommended)
npm install -g @cued/mcp
From Source
git clone https://github.com/Cue-d/mcp.git
cd mcp
npm install
npm run build
Quick Start
1. Start the MCP Server
# Via CLI
cued-mcp start
# Or via Node.js
node /path/to/cued-mcp/dist/index.js
2. Configure Claude Code
Add to .claude/mcp.json:
{
"mcpServers": {
"cued": {
"command": "node",
"args": ["/path/to/cued-mcp/dist/cli.js"]
}
}
}
Replace /path/to/cued-mcp with your actual installation path. Find it with:
npm list -g @cued/mcp
3. Use in Claude
You: "Search my messages for 'project update' from the last week"
Claude: [Uses cued_search_messages tool]
→ Returns matching messages with context
CLI Usage
Start MCP Server
cued-mcp start
# or
cued-mcp server
Daemon Mode
Start Background Daemon
# Both PID-based and macOS launchd
cued-mcp daemon start both
# PID-based only (cross-platform)
cued-mcp daemon start pid
# macOS launchd only (native integration, auto-start)
cued-mcp daemon start launchd
Check Status
cued-mcp daemon status
# Output:
# [cued-mcp] PID daemon: running (PID: 12345)
# [cued-mcp] Launchd daemon: running
Stop Daemon
cued-mcp daemon stop both
View Logs
# Last 50 lines
cued-mcp daemon logs
# Last 100 lines
cued-mcp daemon logs 100
Available Tools
cued_status
Get current system status and health.
Claude: "Check my Cued status"
→ {healthy: true, database_path: "~/.cued/local.db", ...}
cued_integrations_status
View connected integrations and their sync status.
Claude: "What integrations do I have connected?"
→ {integrations: [{platform: "imessage", status: "idle", ...}, ...]}
cued_sync_run
Trigger a sync for a specific platform.
Claude: "Sync my Gmail"
→ Starts sync, returns status
Supported platforms: imessage, contacts, discord, gmail, slack, signal, whatsapp, linkedin
cued_search_messages
Search messages by text, platform, or date range.
Claude: "Find messages about 'quarterly review' from June"
→ [{id: "msg_123", from: "alice@...", body: "quarterly review...", ...}]
Parameters:
query(required) — Search termplatform— Filter by platform (e.g., "discord", "imessage")from— Unix timestamp (earliest date)to— Unix timestamp (latest date)limit— Max results (default: 10, max: 100)offset— Pagination offset
cued_get_contacts
Get contacts with pagination.
Claude: "Show me my top 20 contacts"
→ [{id: "...", name: "Alice", email: "alice@...", ...}]
Parameters:
limit— Max results (default: 20, max: 100)offset— Pagination offset (default: 0)
cued_get_contacts_by_platform
Filter contacts by platform.
Claude: "Who are my Discord contacts?"
→ [{id: "...", name: "Bob", platform: "discord", ...}]
cued_message_stats
Get message count by platform.
Claude: "How many messages do I have per platform?"
→ {total: 12345, by_platform: {imessage: 5000, discord: 4000, ...}}
cued_get_thread
Get all messages in a conversation thread.
Claude: "Show me the full conversation thread with Alice"
→ [{id: "msg_1", from: "alice", ...}, {id: "msg_2", from: "me", ...}, ...]
cued_export_messages
Export messages to JSON or CSV format.
Claude: "Export my Discord messages as CSV"
→ Returns CSV file content as string
Formats: json, csv
cued_doctor
Run diagnostics and check system health.
Claude: "Run Cued diagnostics"
→ Detailed diagnostic report
Configuration
Environment Variables
# Optional: Require token for API access
export CUED_MCP_TOKEN="your-secret-token"
# Set to production for deployments
export NODE_ENV="production"
Programmatic Usage
import { startServer } from "@cued/mcp";
// Start the MCP server
await startServer();
Daemon Configuration
The daemon stores state in ~/.cued/:
~/.cued/mcp.pid— PID-based daemon process ID~/.cued/mcp.log— Combined stdout/stderr logs~/Library/LaunchAgents/com.cued.mcp.plist— macOS launchd configuration (macOS only)
Security & Privacy
✅ Local-first — All data stays in ~/.cued/local.db
✅ No cloud sync — Your messages never leave your Mac
✅ No external APIs — MCP server doesn't call third-party services
✅ User auth — Uses Cued's existing authentication and permissions
✅ Optional token auth — Add CUED_MCP_TOKEN for extra security
Requirements
- Node.js 18+
- Cued installed and configured
- Check:
cued doctor
- Check:
- macOS (Cued is macOS-only for now)
Troubleshooting
"Command 'cued' not found"
Ensure Cued is installed:
cued doctor
which cued
If not installed, install Cued:
# Visit https://github.com/Cue-d/cued for installation instructions
Database query failed
Check database exists:
ls -la ~/.cued/local.db
Run Cued setup:
cued setup
MCP Server won't start
Check Node.js version:
node --version # Need 18+
Check logs:
cued-mcp daemon logs 50
Permission denied errors
Ensure file permissions:
chmod 600 ~/.cued/local.db
Daemon won't stop
Kill manually:
# Find process
ps aux | grep cued-mcp
# Kill by PID
kill -9 <PID>
# Remove stale PID file
rm ~/.cued/mcp.pid
Development
Setup
git clone https://github.com/Cue-d/mcp.git
cd mcp
npm install
Build
npm run build # Compile TypeScript
npm run dev # Watch mode
npm run lint # Run ESLint
npm run lint:fix # Auto-fix linting issues
Test
npm test # Run all tests
npm run test:watch # Watch mode
Local Development
# Start in watch mode
npm run dev
# In another terminal, test with Claude
claude mcp test cued
Contributing
Contributions welcome! Please see CONTRIBUTING.md for guidelines.
Areas for Contribution
- 🧪 Additional test coverage
- 📚 Documentation improvements
- ✨ New tools (e.g., message summarization, smart search)
- 🐛 Bug fixes
- ⚡ Performance improvements
Architecture
For technical details, see ARCHITECTURE.md.
High-Level Data Flow
Claude AI
↓
MCP Server (Node.js)
↓
├─→ Cued CLI (status, sync)
└─→ SQLite DB (~/.cued/local.db)
↓
Local Message/Contact Store (Private)
License
MIT — See LICENSE for details.
Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Cued Project: https://github.com/Cue-d/cued
Related
- Cued — Local-first message/contact datastore
- Model Context Protocol — MCP spec
- Claude API — Claude documentation
- Anthropic — Creator of Claude
Made with ❤️ for AI agents that respect your privacy.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。