spanner Claude Code Plugin
Claude Code PluginClaude CodeDatabaseDatabases & StorageAI Agents & AI App DevelopmentCloud, Deployment & CI/CDThe explanation below is AI-generated. Please verify it against the sources.
This plugin adds an MCP-based tool set that lets an AI agent such as Claude Code, Antigravity, or Codex interact with Google Cloud Spanner databases using plain-language requests. It wraps the prebuilt spanner server from MCP Toolbox, allowing the agent to inspect schemas, list tables, run SQL queries, and generate code such as data classes from table structures. Configuration happens through environment variables that identify the Google Cloud project, Spanner instance, database, and SQL dialect. According to the README, the project is still in a pre-1.0 beta stage and may change before a stable release. It requires Node.js, Application Default Credentials, and specific Spanner IAM roles to operate.
About the service
Spanner is a Google Cloud managed database service offering horizontally scalable, strongly consistent storage that supports relational, key-value, graph, and search/vector data models with high availability across regions.
What you can do with spanner
- Ask natural-language questions to list tables and inspect database schemas
- Run custom SQL queries against a Spanner database (GoogleSQL or PostgreSQL dialect)
- Generate code such as Python data classes based on table structures
- Troubleshoot connection and credential issues using agent debug modes
- Configure the connection via environment variables for project, instance, database, and dialect
- Install the plugin into Claude Code, Antigravity, Codex, or other Agent Plugins-compatible clients