Surfski

السجل الرسمي البحث والويب

Self-hosted remote MCP server: search, read and draft across many Gmail / Workspace mailboxes

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

OCI package ghcr.io/rayhu/surfski:v0.1.1
Claude Code
claude mcp add surfski -e 'BASE_URL=<BASE_URL>' -e 'GOOGLE_CLIENT_ID=<GOOGLE_CLIENT_ID>' -e 'GOOGLE_CLIENT_SECRET=<your google_client_secret>' -e 'ALLOWED_USERS=<ALLOWED_USERS>' -e 'ALLOWED_DOMAINS=<ALLOWED_DOMAINS>' -e 'JWT_SIGNING_KEY=<your jwt_signing_key>' -e 'STORAGE_ENCRYPTION_KEY=<your storage_encryption_key>' -e 'TOKEN_ENCRYPTION_KEY=<your token_encryption_key>' -e 'STATE_SECRET=<your state_secret>' -e 'PORT=8000' -- docker run -i --rm ghcr.io/rayhu/surfski:v0.1.1
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "surfski": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "ghcr.io/rayhu/surfski:v0.1.1"
            ],
            "env": {
                "BASE_URL": "<BASE_URL>",
                "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
                "GOOGLE_CLIENT_SECRET": "<your google_client_secret>",
                "ALLOWED_USERS": "<ALLOWED_USERS>",
                "ALLOWED_DOMAINS": "<ALLOWED_DOMAINS>",
                "JWT_SIGNING_KEY": "<your jwt_signing_key>",
                "STORAGE_ENCRYPTION_KEY": "<your storage_encryption_key>",
                "TOKEN_ENCRYPTION_KEY": "<your token_encryption_key>",
                "STATE_SECRET": "<your state_secret>",
                "PORT": "8000"
            }
        }
    }
}

متغيرات البيئة

  • BASE_URL إلزامي Public HTTPS URL the server is reached at, behind a TLS reverse proxy (e.g. https://mcp.example.com)
  • GOOGLE_CLIENT_ID إلزامي OAuth client ID of your own Google Cloud project
  • GOOGLE_CLIENT_SECRET إلزامي سري OAuth client secret of your own Google Cloud project
  • ALLOWED_USERS Comma-separated Google primary addresses allowed to sign in (or set ALLOWED_DOMAINS)
  • ALLOWED_DOMAINS Comma-separated Workspace domains allowed to sign in (or set ALLOWED_USERS)
  • JWT_SIGNING_KEY إلزامي سري Generate with scripts/gen_secrets.py
  • STORAGE_ENCRYPTION_KEY إلزامي سري Generate with scripts/gen_secrets.py
  • TOKEN_ENCRYPTION_KEY إلزامي سري Generate with scripts/gen_secrets.py
  • STATE_SECRET إلزامي سري Generate with scripts/gen_secrets.py
  • PORT Port the server listens on inside the container

الأسئلة الشائعة

ما هو Surfski؟

Self-hosted remote MCP server: search, read and draft across many Gmail / Workspace mailboxes

كيف أثبّت Surfski؟

يعمل على جهازك. في Claude Code: claude mcp add surfski -e 'BASE_URL=<BASE_URL>' -e 'GOOGLE_CLIENT_ID=<GOOGLE_CLIENT_ID>' -e 'GOOGLE_CLIENT_SECRET=<your google_client_secret>' -e 'ALLOWED_USERS=<ALLOWED_USERS>' -e 'ALLOWED_DOMAINS=<ALLOWED_DOMAINS>' -e 'JWT_SIGNING_KEY=<your jwt_signing_key>' -e 'STORAGE_ENCRYPTION_KEY=<your storage_encryption_key>' -e 'TOKEN_ENCRYPTION_KEY=<your token_encryption_key>' -e 'STATE_SECRET=<your state_secret>' -e 'PORT=8000' -- docker run -i --rm ghcr.io/rayhu/surfski:v0.1.1. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج Surfski إلى مفتاح API؟

نعم. يتطلب BASE_URL, GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, JWT_SIGNING_KEY, STORAGE_ENCRYPTION_KEY, TOKEN_ENCRYPTION_KEY, STATE_SECRET، وتضبطها في إعداداته.

هل Surfski مفتوح المصدر؟

شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.

من يصون Surfski؟

ينشره rayhu. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.