Surfski

Official registry Search and web

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

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

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 configuration (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"
            }
        }
    }
}

Environment variables

  • BASE_URL required Public HTTPS URL the server is reached at, behind a TLS reverse proxy (e.g. https://mcp.example.com)
  • GOOGLE_CLIENT_ID required OAuth client ID of your own Google Cloud project
  • GOOGLE_CLIENT_SECRET required 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 required secret Generate with scripts/gen_secrets.py
  • STORAGE_ENCRYPTION_KEY required secret Generate with scripts/gen_secrets.py
  • TOKEN_ENCRYPTION_KEY required secret Generate with scripts/gen_secrets.py
  • STATE_SECRET required secret Generate with scripts/gen_secrets.py
  • PORT Port the server listens on inside the container

Frequently asked questions

What is Surfski?

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

How do I install Surfski?

It runs on your machine. In 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. For other clients, paste the JSON configuration from this page into their MCP settings.

Does Surfski need an API key?

Yes. It expects BASE_URL, GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, JWT_SIGNING_KEY, STORAGE_ENCRYPTION_KEY, TOKEN_ENCRYPTION_KEY, STATE_SECRET, which you set in its configuration.

Is Surfski open source?

Its code is public on GitHub, but the repository does not declare a standard license.

Who maintains Surfski?

It is published by rayhu. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.