• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
jeffreyyoung

jeffreyyoung

MCP_Proxy

Public
Like
MCP_Proxy
Home
Code
4
backend
4
frontend
1
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
index.ts
https://jeffreyyoung--89408cb4ac0111f081210224a6c84d84.web.val.run
README.md

MCP Gmail Proxy

An MCP (Model Context Protocol) proxy server that provides authenticated Gmail access through OAuth.

Features

  • OAuth 2.0 authentication with Google
  • MCP server implementation for Gmail operations
  • Session management and token refresh
  • Secure proxy for Gmail API access

Architecture

  • backend/index.ts - Main HTTP server and MCP endpoint
  • backend/auth/ - OAuth flow and session management
  • backend/mcp/ - MCP protocol implementation
  • backend/gmail/ - Gmail API integration
  • frontend/ - OAuth callback and admin interface

Environment Variables

Required:

  • GOOGLE_CLIENT_ID - Google OAuth client ID
  • GOOGLE_CLIENT_SECRET - Google OAuth client secret
  • JWT_SECRET - Secret for signing session tokens

Usage

  1. Start OAuth flow: GET /auth/google
  2. Handle callback: GET /auth/callback
  3. Connect MCP client to: POST /mcp (with Authorization header)

MCP Tools

  • gmail_list_messages - List Gmail messages
  • gmail_get_message - Get specific message content
  • gmail_send_message - Send email
  • gmail_search_messages - Search messages with query
HTTP
  • index.ts
    jeffreyyoung--89…84.web.val.run
Code
backendfrontendsharedREADME.md
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.