Skip to main content

Civicrm MCP

io.github.YogiAdhik/civicrm-mcp

v0.1.2Updated Apr 24, 2026stdio · npm

Model Context Protocol server for CiviCRM — AuthX-first, schema-introspected, write-gated.

Install

Needs 1 secret. Replace 2 placeholders with your own values.

Run in your terminal. Replace 2 placeholders.

claude mcp add civicrm-mcp -e 'CIVICRM_BASE_URL=<your-civicrm-base-url>' -e 'CIVICRM_API_KEY=<your-civicrm-api-key>' -e CIVICRM_CMS=drupal -e CIVICRM_AUTH_MODE=authx -e CIVICRM_ALLOW_WRITES=false -e CIVICRM_ALLOW_DELETES=false -- npx -y [email protected]

Configuration

7 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • CIVICRM_API_KEY
    Env var· required· secret
    API key of the contact the server authenticates as. Keep it on a dedicated 'MCP Bot' contact with minimum permissions.
  • CIVICRM_BASE_URL
    Env var· required
    Base URL of the CiviCRM install, e.g. https://crm.example.org. No trailing slash.
  • CIVICRM_SITE_KEY
    Env var· optional· secret
    Optional — only needed if the site enables the AuthX site-key guard.
  • CIVICRM_CMS
    Env var· optional
    CMS host: drupal, wordpress, standalone, or backdrop.Default: drupal
  • CIVICRM_AUTH_MODE
    Env var· optional
    authx (default, recommended) or legacy for pre-5.36 installs.Default: authx
  • CIVICRM_ALLOW_WRITES
    Env var· optional
    Set to 'true' to enable create / update / save / submit actions. Off by default.Default: false
Show 1 more
  • CIVICRM_ALLOW_DELETES
    Env var· optional
    Set to 'true' to enable delete / replace actions. Off by default.Default: false

Listed in the official MCP Registry since Apr 24, 2026. Mirrored daily; last checked Nov 26, 2026.