Connect Google Sheets to VS Code, Cursor, and Windsurf via MCP Protocol
Developers who frequently need spreadsheet data while coding can now connect Google Sheets directly to their AI-enabled editors using the Model Context Protocol (MCP). A tool called PasteSheet converts any publicly shared Google Sheet into a dedicated MCP endpoint URL, requiring no OAuth setup, Google Cloud project, or local installation. VS Code, Cursor, and Windsurf all support MCP natively, each requiring a small configuration file with slightly different syntax to point at the endpoint. Once connected, the AI agent gains three read-only tools to list tabs, inspect column schemas, and query rows with filters and sorting. The approach limits agent access to a single published sheet rather than an entire Google Drive account, reducing both security exposure and setup complexity.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in