Logo GroundEffect

GroundEffect

Cộng đồng
jamiequint

Hyper-fast, local Gmail and Google Calendar indexing for Claude Code.

Nhà phát hànhjamiequint
Kho mãgroundeffect
Ngôn ngữRust
Bản fork
0
Sao
15
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    GroundEffect cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    15 sao và 0 bản fork từ kho mã được liên kết.

GroundEffect

Hyper-fast, local Gmail and Google Calendar indexing for Claude Code.

GroundEffect is a local headless IMAP/CalDav client, Claude Code skill, and MCP server built in Rust with LanceDB.

Features

  • Hybrid Search: BM25 full-text + vector semantic search with Reciprocal Rank Fusion
  • Local Embeddings: Runs nomic-embed-text-v1.5 locally via Candle with Metal acceleration
  • Multi-Account: Connect unlimited Gmail/GCal accounts with independent sync
  • MCP Integration: Exposes email and calendar tools directly to Claude Code
  • Real-time Sync: IMAP IDLE for instant email notifications, CalDAV polling for calendar
  • HTML Text Extraction: Automatically converts HTML emails to clean plain text using html2text
  • Pluggable Token Storage: File-based (default) or PostgreSQL with AES-256-GCM encryption

Quick Start

1. Install

bash
brew tap jamiequint/groundeffect
brew install groundeffect

This automatically:

  • Installs the daemon (starts at login)
  • Installs the Claude Code skill
  • Adds permissions to run groundeffect commands

2. Configure OAuth

Create a Google Cloud project with OAuth credentials:

  1. Go to Google Cloud Console
  2. Create a project and enable Gmail API and Google Calendar API
  3. Go to APIs & Services > Credentials
  4. Create OAuth client ID (Desktop app type)
  5. Add your credentials:
bash
echo 'export GROUNDEFFECT_GOOGLE_CLIENT_ID="your-client-id.apps.googleusercontent.com"' >> ~/.zshrc
echo 'export GROUNDEFFECT_GOOGLE_CLIENT_SECRET="your-client-secret"' >> ~/.zshrc
source ~/.zshrc

3. Add an Account

bash
groundeffect account add

This opens a browser for Google OAuth. After authentication, the daemon syncs automatically.

That's it! Ask Claude Code to search your emails and calendar.

CLI Reference

All commands output JSON by default. Add --human for readable output.

Account Commands

CommandDescription
account listList all connected accounts
account show <account>Show account details and sync status
account addAdd new Google account via OAuth
account reauth <account>Re-authenticate an existing account via OAuth
account delete <account>Remove account and all synced data
account configure <account>Update account settings (alias, attachments)

Parameters for add:

ParameterDescriptionDefault
--yearsYears of email history to sync (1-20 or "all")1
--attachmentsEnable automatic attachment downloadoff
--aliasFriendly name for the account-

Email Commands

CommandDescription
email search <query>Hybrid BM25 + semantic search
email listList recent emails
email show <id>Show full email content
email thread <thread_id>Show all emails in a thread
email sendCompose and send email
email attachment <id>Get attachment content
email foldersList IMAP folders

Parameters for search:

ParameterDescriptionDefault
--accountFilter to specific accountall
--limitMax results (max: 100)10
--fromFilter by sender-
--toFilter by recipient-
--date-fromFilter after date (YYYY-MM-DD)-
--date-toFilter before date (YYYY-MM-DD)-
--has-attachmentFilter emails with attachments-

Parameters for send:

ParameterDescription
--fromAccount to send from (required)
--toRecipient(s) (required)
--subjectEmail subject (required)
--bodyEmail body (required)
--ccCC recipients
--bccBCC recipients
--reply-toEmail ID to reply to (for threading)
--htmlForce HTML format (auto-detected from markdown/URLs)
--save-as-draftSave as draft instead of sending
--confirmSend immediately (without: preview only)

Draft Commands

CommandDescription
email draft createCreate a new email draft
email draft listList all drafts for an account
email draft show <id>Show full draft content
email draft update <id>Update an existing draft
email draft send <id>Send a draft
email draft delete <id>Delete a draft

Parameters for draft create:

ParameterDescription
--fromAccount to create draft in (required)
--toRecipient(s)
--subjectEmail subject
--bodyEmail body
--ccCC recipients
--bccBCC recipients
--htmlForce HTML format
--reply-toEmail ID to reply to (for threading)

Calendar Commands

CommandDescription
calendar eventsList events in a date range (no query required)
calendar search <query>Search events with semantic search
calendar show <id>Show event details
calendar createCreate new event

Parameters for events:

ParameterDescriptionDefault
--fromStart date (YYYY-MM-DD)today
--toEnd date (YYYY-MM-DD)7 days from start
--accountFilter to specific account(s)all
--limitMax results (max: 200)50
--humanHuman-readable output grouped by date-

Use calendar events to answer questions like "what's on my calendar tomorrow" or "show me my meetings next week" without requiring a search query.

Parameters for create:

ParameterDescriptionDefault
--accountAccount to create event in (required)-
--summaryEvent title (required)-
--startStart time (ISO 8601) (required)-
--endEnd time (ISO 8601) (required)-
--descriptionEvent description-
--locationEvent location-
--attendeesAttendee emails (repeatable)-
--calendarCalendar IDprimary

Sync Commands

CommandDescription
sync statusShow sync status for all accounts
sync reset --account <a> --confirmClear all synced data
sync extend --account <a> --target-date <d>Sync older emails back to date
sync resume-from --account <a> --target-date <d>Force sync to resume from date
sync download-attachments --account <a>Download pending attachments

Daemon Commands

CommandDescription
daemon installInstall launchd agent (auto-start at login)
daemon uninstallRemove launchd agent
daemon statusCheck if daemon is running
daemon restartRestart the daemon

Config Commands

CommandDescription
config settingsView/modify daemon settings
config add-permissionsAdd to Claude Code allowlist
config remove-permissionsRemove from Claude Code allowlist

Parameters for settings:

ParameterDescriptionDefault
--loggingEnable/disable file loggingoff
--email-intervalEmail poll interval in seconds (60-3600)300
--calendar-intervalCalendar poll interval in seconds (60-3600)300
--max-fetchesMax concurrent fetches (1-50)10
--timezoneUser timezone for date parsing (e.g., America/Los_Angeles)UTC
--embedding-providerEmbedding backend: local, openrouter, remotelocal
--embedding-batch-sizeEmbedding + IMAP fetch batch size (1-1024)128
--openrouter-modelOpenRouter embedding model IDopenai/text-embedding-3-small
--openrouter-api-key-envEnv var name with OpenRouter API keyOPENROUTER_API_KEY

Embeddings backend examples:

bash
# Use local embeddings (default)
groundeffect config settings --embedding-provider local

# Use OpenRouter embeddings
export OPENROUTER_API_KEY="your-key"
groundeffect config settings --embedding-provider openrouter

# Set embedding + IMAP fetch batch size (128 recommended for Gmail/OpenRouter stability)
groundeffect config settings --embedding-batch-size 128

# Optional: set a different OpenRouter model
groundeffect config settings --openrouter-model "openai/text-embedding-3-large"

MCP Integration (Alternative)

If you prefer MCP over the CLI skill, add to ~/.claude.json:

json
{
  "mcpServers": {
    "groundeffect": {
      "type": "stdio",
      "command": "groundeffect-mcp",
      "env": {
        "GROUNDEFFECT_GOOGLE_CLIENT_ID": "${GROUNDEFFECT_GOOGLE_CLIENT_ID}",
        "GROUNDEFFECT_GOOGLE_CLIENT_SECRET": "${GROUNDEFFECT_GOOGLE_CLIENT_SECRET}"
      }
    }
  }
}

The skill is faster (direct CLI calls vs MCP JSON-RPC overhead) but MCP works with other MCP-compatible clients.

Build from Source

bash
git clone https://github.com/jamiequint/groundeffect.git
cd groundeffect
cargo build --release

Binaries:

  • target/release/groundeffect - CLI
  • target/release/groundeffect-daemon - Background sync daemon
  • target/release/groundeffect-mcp - MCP server

Install manually:

bash
# Install binaries
sudo cp target/release/groundeffect* /usr/local/bin/

# Install skill
cp -r skill ~/.claude/skills/groundeffect

# Install daemon
groundeffect daemon install

# Add permissions
groundeffect config add-permissions

Data Storage

~/.config/groundeffect/
├── config.toml            # Main configuration
├── daemon.toml            # Daemon configuration
└── tokens/                # OAuth tokens (file provider)

~/.local/share/groundeffect/
├── lancedb/               # LanceDB database
├── attachments/           # Downloaded attachments
├── models/                # Embedding model files
├── logs/                  # Log files
└── cache/
    └── sync_state/        # Sync state

~/.claude/skills/groundeffect/   # Claude Code skill

Token Storage

By default, OAuth tokens are stored in ~/.config/groundeffect/tokens/ as encrypted JSON files.

For server deployments or ephemeral containers, you can store tokens in PostgreSQL instead. This requires the postgres feature.

PostgreSQL Token Storage

  1. Build with the postgres feature:

    bash
    cargo build --release --features postgres
  2. Create the tokens table:

    sql
    CREATE TABLE IF NOT EXISTS groundeffect_tokens (
        email VARCHAR(255) PRIMARY KEY,
        encrypted_tokens BYTEA NOT NULL,
        created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
        updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
    );
  3. Configure in ~/.config/groundeffect/config.toml:

    toml
    [tokens]
    provider = "postgres"
    database_url_env = "DATABASE_URL"
    encryption_key_env = "GE_TOKEN_ENCRYPTION_KEY"
    # table_name = "groundeffect_tokens"  # optional
  4. Set environment variables:

    bash
    export DATABASE_URL="postgres://user:pass@localhost/mydb"
    export GE_TOKEN_ENCRYPTION_KEY="your-secret-key-here"

Tokens are encrypted at rest using AES-256-GCM with a key derived from your encryption key via HKDF-SHA256.

Troubleshooting

"OAuth token expired"

Re-authenticate:

bash
groundeffect account reauth <email-or-alias>

Daemon not running

Check status and restart:

bash
groundeffect daemon status
groundeffect daemon restart

Or check launchd:

bash
launchctl list | grep groundeffect

View logs

bash
tail -f ~/.local/share/groundeffect/logs/daemon.log

Enable logging if disabled:

bash
groundeffect config settings --logging true
groundeffect daemon restart

High memory usage

Embedding model uses ~500MB-1GB during active embedding. Normal when idle.

Architecture

┌──────────────┐      ┌──────────────────┐
│ Claude Code  │─────►│ groundeffect-mcp │────────┐
│ (MCP Host)   │stdio │                  │        │
└──────────────┘      └──────────────────┘        │
                                                  ▼
┌──────────────┐      ┌──────────────────┐    ┌─────────┐
│ Claude Code  │─────►│ groundeffect     │───►│ LanceDB │
│ (Skill/Bash) │      │ (CLI)            │    └─────────┘
└──────────────┘      └──────────────────┘         ▲
                                                   │
                      ┌──────────────────┐         │
                      │ groundeffect-    │─────────┘
                      │ daemon           │◄──── IMAP/CalDAV
                      └──────────────────┘

License

MIT

Dùng MCP GroundEffect với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối GroundEffect, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm GroundEffect làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của GroundEffect.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "groundeffect": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của GroundEffect, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của GroundEffect.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng GroundEffect giúp tôi làm việc này không?
GroundEffect
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng GroundEffect.

Câu hỏi thường gặp

Máy chủ MCP GroundEffect dùng để làm gì?

GroundEffect là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP GroundEffect với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng GroundEffect với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP GroundEffect với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối GroundEffect, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP GroundEffect với TypingMind?

GroundEffect hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP GroundEffect cung cấp những công cụ nào trong TypingMind?

GroundEffect cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP GroundEffect không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu GroundEffect yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇