Surfski
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).
ghcr.io/rayhu/surfski:v0.1.1claude 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
{
"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_URLrequired Public HTTPS URL the server is reached at, behind a TLS reverse proxy (e.g. https://mcp.example.com)GOOGLE_CLIENT_IDrequired OAuth client ID of your own Google Cloud projectGOOGLE_CLIENT_SECRETrequired secret OAuth client secret of your own Google Cloud projectALLOWED_USERSComma-separated Google primary addresses allowed to sign in (or set ALLOWED_DOMAINS)ALLOWED_DOMAINSComma-separated Workspace domains allowed to sign in (or set ALLOWED_USERS)JWT_SIGNING_KEYrequired secret Generate with scripts/gen_secrets.pySTORAGE_ENCRYPTION_KEYrequired secret Generate with scripts/gen_secrets.pyTOKEN_ENCRYPTION_KEYrequired secret Generate with scripts/gen_secrets.pySTATE_SECRETrequired secret Generate with scripts/gen_secrets.pyPORTPort 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.