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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.