Remote MCP connector wrapping gcal-mcp with Google OAuth 2.0 over Streamable HTTP
Project description
gcal-mcp-remote
Remote MCP server wrapping gcal-mcp with Google OAuth 2.0 and Streamable HTTP transport — designed for Claude.ai connectors.
How it works
Claude.ai ──HTTP+Bearer──> gcal-mcp-remote ──Google API──> Google Calendar
│
imports gcal-mcp's FastMCP (all 14 tools)
patches get_client() with per-request ContextVar
adds Google OAuth + /health + /oauth/callback
Three-party OAuth: Claude ↔ this server ↔ Google. Each user authorizes their own Google Calendar via OAuth. The server stores per-user Google refresh tokens (encrypted at rest).
Prerequisites
- A Web application OAuth client in Google Cloud Console:
- Create Credentials → OAuth client ID → Type: Web application
- Add authorized redirect URI:
{BASE_URL}/oauth/callback - Note the Client ID and Client Secret
- Google Calendar API enabled in the same project
Setup
git clone https://github.com/ldraney/gcal-mcp-remote.git
cd gcal-mcp-remote
cp .env.example .env
# Edit .env with your Google OAuth credentials, BASE_URL, and SESSION_SECRET
make install
make run
Environment Variables
| Variable | Description |
|---|---|
GCAL_OAUTH_CLIENT_ID |
Google OAuth Web application client ID |
GCAL_OAUTH_CLIENT_SECRET |
Google OAuth Web application client secret |
SESSION_SECRET |
Random secret for encrypting token store |
BASE_URL |
Public HTTPS URL where this server is reachable |
HOST |
Bind address (default: 127.0.0.1) |
PORT |
Listen port (default: 8001) |
Verification
curl http://127.0.0.1:8001/health # {"status": "ok"}
curl http://127.0.0.1:8001/.well-known/oauth-authorization-server # OAuth metadata
curl -X POST http://127.0.0.1:8001/mcp # 401 (auth required)
Deploying
Standalone
Use any HTTPS tunnel (Tailscale Funnel, ngrok, Cloudflare Tunnel) to expose the server publicly, then add the URL as a Claude.ai connector.
A systemd service file is provided in systemd/gcal-mcp-remote.service.
Kubernetes (production)
Production deployment is managed by mcp-gateway-k8s, which runs this server as a pod with Tailscale Funnel ingress. That repo contains the Dockerfile, K8s manifests, and secrets management.
Full integration testing (Claude.ai connector → OAuth → Google Calendar) is tracked in mcp-gateway-k8s#12 and #6.
Privacy
See PRIVACY.md for our privacy policy.
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gcal_mcp_remote_ldraney-0.2.0.tar.gz.
File metadata
- Download URL: gcal_mcp_remote_ldraney-0.2.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b542b01be3b1e71b67e7ab8ea7d53a1349aa6b9c58558abf24f090e251dda32
|
|
| MD5 |
b081aad04f48368da6d89367d919eefa
|
|
| BLAKE2b-256 |
cffd948807068d0b66470d666c18a3789a59fffec01a50f7d9e3a0d60f667d77
|
Provenance
The following attestation bundles were made for gcal_mcp_remote_ldraney-0.2.0.tar.gz:
Publisher:
publish.yml on ldraney/gcal-mcp-remote
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gcal_mcp_remote_ldraney-0.2.0.tar.gz -
Subject digest:
3b542b01be3b1e71b67e7ab8ea7d53a1349aa6b9c58558abf24f090e251dda32 - Sigstore transparency entry: 974883523
- Sigstore integration time:
-
Permalink:
ldraney/gcal-mcp-remote@857401b89020284a4f351f22da5da8f54865fd85 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ldraney
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@857401b89020284a4f351f22da5da8f54865fd85 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gcal_mcp_remote_ldraney-0.2.0-py3-none-any.whl.
File metadata
- Download URL: gcal_mcp_remote_ldraney-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c54cc5fa714572ea5b53c440b500f2319fc47d9c3403db97cbb6c687e90268b9
|
|
| MD5 |
3de9b6078abb9b8d5baff8be81e0a740
|
|
| BLAKE2b-256 |
39bf7300d2bfa457496e230e64147aaf29efca7c8626ece5b425bfe9e09b5d96
|
Provenance
The following attestation bundles were made for gcal_mcp_remote_ldraney-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on ldraney/gcal-mcp-remote
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gcal_mcp_remote_ldraney-0.2.0-py3-none-any.whl -
Subject digest:
c54cc5fa714572ea5b53c440b500f2319fc47d9c3403db97cbb6c687e90268b9 - Sigstore transparency entry: 974883570
- Sigstore integration time:
-
Permalink:
ldraney/gcal-mcp-remote@857401b89020284a4f351f22da5da8f54865fd85 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ldraney
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@857401b89020284a4f351f22da5da8f54865fd85 -
Trigger Event:
push
-
Statement type: