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
- Civic account at app.civic.com with at least one MCP server connected
- Anthropic API key from console.anthropic.com
Installation
Authentication
Choose the path that matches your use case:- Backend / Script (Civic Token)
- Next.js App (Civic Auth)
For autonomous agents, scripts, and server-side code that runs without a user browser session — use a Civic token directly.For production agents, lock to a specific toolkit by appending a
Generate a Civic Token
- Log in to app.civic.com
- Click your account name in the bottom left
- Go to Install → MCP URL
- Click Generate Token and copy it immediately — it won’t be shown again
Set Environment Variables
profile parameter:Use the Token
Pass the token as a Bearer token in theAuthorization header:Full credentials guide
Token generation, URL parameters, OAuth vs token comparison
Basic Example
- Backend / Script
- Next.js API Route
- Add
mcp_serversto yourmessages.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
Comparison
Next Steps
Anthropic MCP Docs
Official Anthropic MCP connector reference
Get Help
Developer Slack

