Prerequisites
- A Dify account (cloud at dify.ai or self-hosted)
- A Civic account at nexus.civic.com with a configured toolkit
- A Civic token
Get Your Credentials
You need your Civic MCP URL and a Civic token before configuring Dify.Get Your Credentials
How to generate a Civic token and configure toolkit URL parameters
Connect Civic to Dify
Open Tool Settings
In Dify, go to Tools in the top navigation, then click Custom Tools → Create Custom Tool.
Configure the MCP server
Select MCP as the tool type and enter your Civic MCP URL:Set the authentication header:
Import tools
Dify will connect to Civic and list the available tools. Select the tools you want to enable in your workflows.
Add tools to your app
Open your Dify app (chatbot, workflow, or agent). In the Tools section, add the Civic tools you imported.
Locking to a Toolkit
For production apps, lock to a specific toolkit by adding theprofile parameter to your MCP URL:
Next Steps
Agent Deployment
Profile locking, URL params, and production agent configuration
Guardrails
Constrain what tools your Dify app can call
Audit Trail
Query what your app did via Civic Chat
Get Credentials
Token generation and URL parameter reference

