#!/usr/bin/env python3
"""
Google Sheets MCP Server - Direct Execution Entry Point
This allows one-line execution: uvx google-sheets-mcp@latest
Environment variables are provided by the MCP client configuration.
"""
import os
import sys
def main():
"""Main entry point for direct execution."""
print("š Google Sheets MCP Server")
print("š¦ Package: google-sheets-mcp")
print("š ļø Powerful tools for Google Sheets automation")
print("š” Environment Variables from MCP Config")
print("=" * 50)
print("\nā Starting MCP server...")
print("š Ready to connect with MCP clients!")
print("š Available tools: Google Sheets operations")
print("š” Environment variables provided by MCP client configuration")
print("=" * 50)
# Import and run the MCP server
try:
from gsheet_mcp_server.server import mcp
mcp.run()
except ImportError as e:
print("ā Error: Could not import MCP server")
print(f"š” Error details: {e}")
print("š” This package is designed to be used with MCP clients")
print("š” Configure your MCP client to use this package")
sys.exit(1)
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/henilcalagiya/google-sheets-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server