{"endpoint":"https://dbqueryguard.clauxel.com/mcp","protocol":"jsonrpc-http-post","protocolVersion":"2025-06-18","serverInfo":{"name":"dbqueryguard-mcp","title":"DB Query Guard","version":"0.1.0"},"description":"Hosted remote MCP query guard for database agents. It classifies schemas, blocks risky SQL, routes sensitive reads to approval, redacts previews, and exports query audit evidence.","auth":{"required":true,"type":"bearer","header":"Authorization: Bearer <token>"},"authentication":{"required":true,"schemes":["bearer"]},"paidAccess":{"required":true,"model":"paid_mcp_bearer_token","defaultPlan":{"planId":"team","billing":"monthly","amountCents":21900,"currency":"USD","payCurrency":"USDCMATIC"},"pricing":[{"id":"analyst","name":"Analyst","monthlyAmountCents":6900,"currency":"USD","summary":"One analyst workspace, policy simulation, redacted previews, and paid MCP access."},{"id":"team","name":"Team","monthlyAmountCents":21900,"currency":"USD","summary":"Shared approval queue, query audit exports, row-limit policies, and endpoint access."},{"id":"regulated","name":"Regulated","monthlyAmountCents":69900,"currency":"USD","summary":"Evidence exports, stricter retention controls, reviewer roles, and compliance-ready reports."}],"checkout":{"agentUrl":"https://dbqueryguard.clauxel.com/api/agent-checkout","humanUrl":"https://dbqueryguard.clauxel.com/api/checkout","method":"POST","contentType":"application/json","requestExample":{"planId":"team:monthly","clientType":"agent","source":"agent_mcp_client"},"responseFields":["checkoutUrl","orderId","claimCode","statusUrl","claimUrl","mcpEndpoint","authorization"]},"tokenClaim":{"statusUrl":"https://dbqueryguard.clauxel.com/api/mcp-token/status","claimUrl":"https://dbqueryguard.clauxel.com/api/mcp-token/claim","statusMethod":"POST","claimMethod":"POST","requestBody":{"orderId":"<orderId>","claimCode":"<claimCode>"},"shownOnce":true},"token":{"statusUrl":"https://dbqueryguard.clauxel.com/api/mcp-token/status","claimUrl":"https://dbqueryguard.clauxel.com/api/mcp-token/claim","statusMethod":"POST","claimMethod":"POST","requestBody":{"orderId":"<orderId>","claimCode":"<claimCode>"},"authorizationHeader":"Authorization: Bearer <token>","shownOnce":true},"flow":["POST /api/agent-checkout to create a hosted invoice and one-time MCP claim code.","Open checkoutUrl and complete payment.","Poll statusUrl with orderId and claimCode until paid_ready_to_claim.","POST orderId and claimCode to claimUrl to receive a one-time bearer token.","Call /mcp with Authorization: Bearer <token>."]},"tools":[{"name":"inspect_schema","title":"Inspect Schema","description":"Summarize tables, columns, joins, and sensitivity from a database schema sample.","inputSchema":{"type":"object","properties":{"schemaSample":{"type":"string","description":"DDL, table list, or schema sample to inspect."},"databaseType":{"type":"string","description":"Postgres, Supabase, MongoDB, Azure SQL, Dataverse, or another source."},"workspaceId":{"type":"string"}},"additionalProperties":true},"outputSchema":{"type":"object","required":["ok","workspaceId","source","verdict","queryHash","sensitiveColumns","policy","audit","nextActions"],"properties":{"ok":{"type":"boolean"},"workspaceId":{"type":"string"},"source":{"type":"object","additionalProperties":true},"verdict":{"type":"object","additionalProperties":true},"queryHash":{"type":"string"},"generatedSql":{"type":"string"},"sensitiveColumns":{"type":"array","items":{"type":"object","additionalProperties":true}},"redactedPreview":{"type":"array","items":{"type":"object","additionalProperties":true}},"policy":{"type":"object","additionalProperties":true},"audit":{"type":"object","additionalProperties":true},"nextActions":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"classify_columns","title":"Classify Columns","description":"Detect PII, payment, health, and confidential database columns.","inputSchema":{"type":"object","properties":{"schemaSample":{"type":"string"},"columns":{"type":"array","items":{"type":"object","additionalProperties":true}},"workspaceId":{"type":"string"}},"additionalProperties":true},"outputSchema":{"type":"object","required":["ok","workspaceId","source","verdict","queryHash","sensitiveColumns","policy","audit","nextActions"],"properties":{"ok":{"type":"boolean"},"workspaceId":{"type":"string"},"source":{"type":"object","additionalProperties":true},"verdict":{"type":"object","additionalProperties":true},"queryHash":{"type":"string"},"generatedSql":{"type":"string"},"sensitiveColumns":{"type":"array","items":{"type":"object","additionalProperties":true}},"redactedPreview":{"type":"array","items":{"type":"object","additionalProperties":true}},"policy":{"type":"object","additionalProperties":true},"audit":{"type":"object","additionalProperties":true},"nextActions":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"simulate_query","title":"Simulate Query","description":"Return allowed, blocked, or approval-required before any read-only query runs.","inputSchema":{"type":"object","properties":{"naturalLanguageQuestion":{"type":"string","description":"Business question from an agent or analyst."},"schemaSample":{"type":"string"},"sql":{"type":"string","description":"Optional SQL generated by the caller."},"rowLimit":{"type":"integer"},"workspaceId":{"type":"string"}},"additionalProperties":true},"outputSchema":{"type":"object","required":["ok","workspaceId","source","verdict","queryHash","sensitiveColumns","policy","audit","nextActions"],"properties":{"ok":{"type":"boolean"},"workspaceId":{"type":"string"},"source":{"type":"object","additionalProperties":true},"verdict":{"type":"object","additionalProperties":true},"queryHash":{"type":"string"},"generatedSql":{"type":"string"},"sensitiveColumns":{"type":"array","items":{"type":"object","additionalProperties":true}},"redactedPreview":{"type":"array","items":{"type":"object","additionalProperties":true}},"policy":{"type":"object","additionalProperties":true},"audit":{"type":"object","additionalProperties":true},"nextActions":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"request_query_approval","title":"Request Query Approval","description":"Create an approval record for an exceptional agent SQL request.","inputSchema":{"type":"object","properties":{"sql":{"type":"string"},"naturalLanguageQuestion":{"type":"string"},"reason":{"type":"string"},"requester":{"type":"string"},"workspaceId":{"type":"string"}},"additionalProperties":true},"outputSchema":{"type":"object","required":["ok","workspaceId","source","verdict","queryHash","sensitiveColumns","policy","audit","nextActions"],"properties":{"ok":{"type":"boolean"},"workspaceId":{"type":"string"},"source":{"type":"object","additionalProperties":true},"verdict":{"type":"object","additionalProperties":true},"queryHash":{"type":"string"},"generatedSql":{"type":"string"},"sensitiveColumns":{"type":"array","items":{"type":"object","additionalProperties":true}},"redactedPreview":{"type":"array","items":{"type":"object","additionalProperties":true}},"policy":{"type":"object","additionalProperties":true},"audit":{"type":"object","additionalProperties":true},"nextActions":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"run_approved_query","title":"Run Approved Query","description":"Return a redacted preview for a pre-approved read-only query.","inputSchema":{"type":"object","properties":{"approvalId":{"type":"string"},"sql":{"type":"string"},"maxRows":{"type":"integer"},"workspaceId":{"type":"string"}},"additionalProperties":true},"outputSchema":{"type":"object","required":["ok","workspaceId","source","verdict","queryHash","sensitiveColumns","policy","audit","nextActions"],"properties":{"ok":{"type":"boolean"},"workspaceId":{"type":"string"},"source":{"type":"object","additionalProperties":true},"verdict":{"type":"object","additionalProperties":true},"queryHash":{"type":"string"},"generatedSql":{"type":"string"},"sensitiveColumns":{"type":"array","items":{"type":"object","additionalProperties":true}},"redactedPreview":{"type":"array","items":{"type":"object","additionalProperties":true}},"policy":{"type":"object","additionalProperties":true},"audit":{"type":"object","additionalProperties":true},"nextActions":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"export_query_audit","title":"Export Query Audit","description":"Generate a structured evidence report for a query hash or approval record.","inputSchema":{"type":"object","properties":{"auditId":{"type":"string"},"queryHash":{"type":"string"},"format":{"type":"string","enum":["json","html","evidence_packet"]},"workspaceId":{"type":"string"}},"additionalProperties":true},"outputSchema":{"type":"object","required":["ok","workspaceId","source","verdict","queryHash","sensitiveColumns","policy","audit","nextActions"],"properties":{"ok":{"type":"boolean"},"workspaceId":{"type":"string"},"source":{"type":"object","additionalProperties":true},"verdict":{"type":"object","additionalProperties":true},"queryHash":{"type":"string"},"generatedSql":{"type":"string"},"sensitiveColumns":{"type":"array","items":{"type":"object","additionalProperties":true}},"redactedPreview":{"type":"array","items":{"type":"object","additionalProperties":true}},"policy":{"type":"object","additionalProperties":true},"audit":{"type":"object","additionalProperties":true},"nextActions":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}],"schemas":{"inspect_schema":{"type":"object","properties":{"schemaSample":{"type":"string","description":"DDL, table list, or schema sample to inspect."},"databaseType":{"type":"string","description":"Postgres, Supabase, MongoDB, Azure SQL, Dataverse, or another source."},"workspaceId":{"type":"string"}},"additionalProperties":true},"classify_columns":{"type":"object","properties":{"schemaSample":{"type":"string"},"columns":{"type":"array","items":{"type":"object","additionalProperties":true}},"workspaceId":{"type":"string"}},"additionalProperties":true},"simulate_query":{"type":"object","properties":{"naturalLanguageQuestion":{"type":"string","description":"Business question from an agent or analyst."},"schemaSample":{"type":"string"},"sql":{"type":"string","description":"Optional SQL generated by the caller."},"rowLimit":{"type":"integer"},"workspaceId":{"type":"string"}},"additionalProperties":true},"request_query_approval":{"type":"object","properties":{"sql":{"type":"string"},"naturalLanguageQuestion":{"type":"string"},"reason":{"type":"string"},"requester":{"type":"string"},"workspaceId":{"type":"string"}},"additionalProperties":true},"run_approved_query":{"type":"object","properties":{"approvalId":{"type":"string"},"sql":{"type":"string"},"maxRows":{"type":"integer"},"workspaceId":{"type":"string"}},"additionalProperties":true},"export_query_audit":{"type":"object","properties":{"auditId":{"type":"string"},"queryHash":{"type":"string"},"format":{"type":"string","enum":["json","html","evidence_packet"]},"workspaceId":{"type":"string"}},"additionalProperties":true}},"resources":[],"prompts":[],"publicPages":{"pricing":"https://dbqueryguard.clauxel.com/pricing/","examples":"https://dbqueryguard.clauxel.com/mcp/examples/","security":"https://dbqueryguard.clauxel.com/mcp/security/","privacy":"https://dbqueryguard.clauxel.com/privacy/","terms":"https://dbqueryguard.clauxel.com/terms/"}}