io.github.YogiAdhik/civicrm-mcp
Model Context Protocol server for CiviCRM — AuthX-first, schema-introspected, write-gated.
{
"mcpServers": {
"civicrm-mcp": {
"command": "npx",
"args": [
"-y",
"civicrm-mcp"
],
"env": {
"CIVICRM_BASE_URL": "<civicrm_base_url>",
"CIVICRM_API_KEY": "<your-civicrm_api_key>",
"CIVICRM_CMS": "drupal",
"CIVICRM_SITE_KEY": "<your-civicrm_site_key>",
"CIVICRM_AUTH_MODE": "authx",
"CIVICRM_ALLOW_WRITES": "false",
"CIVICRM_ALLOW_DELETES": "false"
}
}
}
}{
"mcpServers": {
"civicrm-mcp": {
"command": "npx",
"args": [
"-y",
"civicrm-mcp"
],
"env": {
"CIVICRM_BASE_URL": "<civicrm_base_url>",
"CIVICRM_API_KEY": "<your-civicrm_api_key>",
"CIVICRM_CMS": "drupal",
"CIVICRM_SITE_KEY": "<your-civicrm_site_key>",
"CIVICRM_AUTH_MODE": "authx",
"CIVICRM_ALLOW_WRITES": "false",
"CIVICRM_ALLOW_DELETES": "false"
}
}
}
}npx -y civicrm-mcpCIVICRM_BASE_URLBase URL of the CiviCRM install, e.g. https://crm.example.org. No trailing slash.
CIVICRM_API_KEYAPI key of the contact the server authenticates as. Keep it on a dedicated 'MCP Bot' contact with minimum permissions.
CIVICRM_CMSCMS host: drupal, wordpress, standalone, or backdrop.
CIVICRM_SITE_KEYOptional — only needed if the site enables the AuthX site-key guard.
CIVICRM_AUTH_MODEauthx (default, recommended) or legacy for pre-5.36 installs.
CIVICRM_ALLOW_WRITESSet to 'true' to enable create / update / save / submit actions. Off by default.
CIVICRM_ALLOW_DELETESSet to 'true' to enable delete / replace actions. Off by default.
AI-powered trading strategy development: backtesting, market data, and portfolio analysis
Feature flagging and A/B testing platform with AI-first experimentation workflows.
Query Meta Ads performance data — accounts, campaigns, ad sets, ads, metrics & settings.