Skip to main content
Glama

Gmail MCP Server

by meyannis
quick_tunnel.py•1.89 kB
#!/usr/bin/env python3 """ Quick tunnel using a simple approach """ import subprocess import time import sys def main(): print("šŸš€ Creating public tunnel for Gmail MCP Server...") print("šŸ“ Local server: http://localhost:8000/sse") # Try using localtunnel with a simple approach try: print("\nšŸ”— Starting localtunnel...") print("ā³ This may take a moment...") # Run localtunnel and capture output result = subprocess.run( ['npx', 'localtunnel', '--port', '8000'], capture_output=True, text=True, timeout=30 ) # Look for the URL in the output output = result.stdout + result.stderr print(f"šŸ“ Output: {output}") # Extract URL from output lines = output.split('\n') for line in lines: if 'https://' in line and 'loca.lt' in line: url = line.strip() if url.startswith('https://'): print(f"\nāœ… SUCCESS! Your Gmail MCP Server is now public!") print(f"🌐 Public URL: {url}/sse") print(f"šŸ”— Full endpoint: {url}/sse") print("\nšŸ“‹ Usage:") print(f" - For MCP clients: {url}/sse") print(f" - For testing: Visit {url}/sse in browser") return url print("āŒ Could not extract URL from localtunnel output") print("šŸ’” Try running manually: npx localtunnel --port 8000") except subprocess.TimeoutExpired: print("ā° Timeout waiting for localtunnel") except Exception as e: print(f"āŒ Error: {e}") print("\nšŸ’” Alternative: You can manually run:") print(" npx localtunnel --port 8000") if __name__ == "__main__": main()

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/meyannis/mcpgmail'

If you have feedback or need assistance with the MCP directory API, please join our Discord server