A simple Streamable HTTP MCP server that indexes Google Sheets and provides grep search functionality.
- Install dependencies:
bun install- Set the Google Sheet ID environment variable by putting it in
.env, or alternatively:
export SHEET_ID="your_google_sheet_id_here"- Run the server:
bun run startThe server will automatically index all tabs in the Google Sheet on startup and provide MCP tools for searching and retrieving data.
grep: Search across all indexed tables using regexlist_tables: List all indexed table namesget_table: Retrieve the full contents of a specific tableindex_sheets: Re-index all sheets from the Google Sheet
Add to your MCP client configuration:
{
"mcpServers": {
"sheets": {
"command": "bun",
"args": ["run", "/path/to/sheets-mcp/index.ts"],
"env": {
"SHEET_ID": "your_sheet_id"
}
}
}
}