The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the MCP Gateway listing page.
Connecting AI Agents to tools and data via the Civic MCP Gateway gives builders access to guardrails, scoped permissions, audit trails, and revocable access when calling MCP tools. Civic separates the permission layer from the AI agent so they can't get around restrictions.
This repository contains integration metadata, configuration files, and client examples. The gateway itself runs at app.civic.com.
Without an identity layer, any AI agent can call any MCP tool with no record of who authorized it, what it accessed, or how to revoke its access. Civic fixes that:
Transport: Streamable HTTP Auth: Bearer token (generated at app.civic.com)
Sign in at app.civic.com and generate a bearer token from the onboarding flow.
Claude Desktop — native Streamable HTTP:
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Claude Code — native HTTP transport (no bridge needed):
Or for stdio via Hub Bridge:
Cursor — native Streamable HTTP:
Add to your Cursor MCP config:
Cline (VS Code) — add to cline_mcp_settings.json:
Windsurf — native Streamable HTTP, no bridge required:
Add to ~/.codeium/windsurf/mcp_config.json:
Windsurf handles OAuth automatically on first connection.
Append ?profile=your-toolkit to scope the gateway to a specific configuration:
For non-interactive agents that can't complete an OAuth flow, generate a bearer token at app.civic.com and pass it directly:
| Registry | Link |
|---|---|
| Smithery | smithery.ai/servers/@civic/civic-mcp-gateway |
| ClawHub | clawhub.ai/civictechuser/openclaw-civic-skill |
| Use case | What Civic adds |
|---|---|
| Gmail guardrails & audit | Block outbound sends with secrets, redact PII from email content, log every send |
| Google Calendar guardrails & audit | Prevent event deletion, restrict to business hours, block external attendees |
| PostgreSQL guardrails & audit | Block destructive queries, enforce read-only access, redact sensitive columns |
Full documentation at docs.civic.com
See civicteam/nexus-demo for a full client integration using Next.js, federated auth, and MCP tool visualization.
MIT