Skip to main content

Overview

Integrate Civic with Anthropic’s Messages API using the native MCP connector — built directly into the API, no separate MCP client needed.
Native MCP Support: Add a mcp_servers parameter to your messages.create() call. Claude discovers and calls tools automatically — no tool looping required.

Prerequisites

Installation

No MCP SDK required — the connector is built into the Anthropic SDK.

Authentication

Choose the path that matches your use case:
For autonomous agents, scripts, and server-side code that runs without a user browser session — use a Civic token directly.

Generate a Civic Token

  1. Log in to app.civic.com
  2. Click your account name in the bottom left
  3. Go to Install → MCP URL
  4. Click Generate Token and copy it immediately — it won’t be shown again
Never commit your token to source control. Store it in environment variables or a secrets manager. Tokens expire after 30 days.

Set Environment Variables

For production agents, lock to a specific toolkit by appending a profile parameter:

Use the Token

Pass the token as a Bearer token in the Authorization header:

Full credentials guide

Token generation, URL parameters, OAuth vs token comparison

Basic Example

Key points:
  • Add mcp_servers to your messages.create() call
  • Include the beta header: "anthropic-beta": "mcp-client-2025-11-20" (required)
  • Pass your token as authorization_token
  • Claude handles tool selection and execution automatically

Streaming

Tool Configuration (Optional)

Restrict which tools Claude can use:

Current Limitations

The MCP connector currently only supports:
  • Tool calls (not MCP resources or prompts)
  • HTTP servers (not STDIO servers)
  • SSE and Streamable HTTP transports
Amazon Bedrock and Google Vertex integrations are not yet supported.

Comparison

Next Steps

Anthropic MCP Docs

Official Anthropic MCP connector reference

Get Help

Developer Slack