Spanner Schema Explorer

general MCP Server

Google Cloud Spanner Read-Only MCP Server 2026 - Safe Schema Inspect & SELECT Queries

Verified
generalgeneralgcp
3 views0 stars0 forks

Why This Matters

Discovered via github-topic:mcp and last synced 3mo ago.

Verified
Source
github-topic:mcp
Stars
0
Last synced
3mo ago
Install
Check source

Install

Install instructions not detected yet

Check the source repository for the latest setup steps.

View source instructions
3
Tools
0
Resources
0
Prompts
Standard I/O
Transport

Available Tools (3)

Feature

Description

Status

Emoji

Alerts

F[24/7 Support Team] subgraph "Security Layer" G[Read-Only Enforcer] H[Query Validator] I[Row Limiter] end B --> G --> H --> I --> C ``` ## 💻 Example Profile Configuration Create a `.env` file or use environment variables: ```bash # Spanner Query AI Gateway Configuration SPANNER_PROJECT_ID=your-project-id SPANNER_INSTANCE_ID=your-instance SPANNER_DATABASE_ID=your-database SPANNER_CREDENTIALS_PATH=/path/to/service-account-key.json # Server Configuration MCP_HOST=0.0.0.0 MCP_PORT=8080 MCP_READ_ONLY=true # Security MAX_ROWS=1000 QUERY_TIMEOUT_SECONDS=30 ALLOWED_QUERY_TYPES=SELECT,SHOW,DESCRIBE,EXPLAIN SENSITIVE_COLUMNS=email,password,ssn # AI Integration OPENAI_API_KEY=sk-your-key-here ANTHROPIC_API_KEY=sk-ant-your-key-here ``` ## 🚀 Example Console Invocation Start the MCP server: ```bash python spanner_query_ai_gateway.py \ --project my-project \ --instance my-spanner-instance \ --database my-db \ --port 8080 \ --read-only ``` Then send queries via MCP protocol: ```python # Example MCP client request import requests payload = { "action": "query", "sql": "SELECT table_name, table_type FROM information_schema.tables WHERE table_catalog = ' '", "parameters": {} } response = requests.post("http://localhost:8080/mcp", json=payload) print(response.json()) ``` ## 🖥️ OS Compatibility Table