From spanner
Connects Claude to Google Cloud Spanner to manage databases, execute queries, explore schemas, and troubleshoot using natural language. Runs locally via npx and needs GCP Application Default Credentials.
Ships in spanner. Installing the plugin adds it to Claude Code.
Copy this JSON into your .mcp.json to enable this server
Add to your .mcp.json:
{
"mcpServers": {
"spanner": {
"command": "npx",
"args": [
"-y",
"@toolbox-sdk/[email protected]",
"--prebuilt",
"spanner",
"--stdio"
],
"env": {
"SPANNER_DIALECT": "${user_config.spanner_dialect}",
"SPANNER_PROJECT": "${user_config.spanner_project}",
"SPANNER_DATABASE": "${user_config.spanner_database}",
"SPANNER_INSTANCE": "${user_config.spanner_instance}"
}
}
}
}Environment variables set when the server starts
SPANNER_DIALECT=${user_config.spanner_dialect}SPANNER_PROJECT=${user_config.spanner_project}SPANNER_DATABASE=${user_config.spanner_database}SPANNER_INSTANCE=${user_config.spanner_instance}Command-line arguments passed to the server process
Server configuration and connection parameters
npxnpx claudepluginhub googlecloudplatform/spanner-plugin --plugin spanner