
Suitecrm Mcp
io.github.Anirudhx7Published by GitHub account Anirudhx7v5.5.0Updated Oct 28, 2026
Open-source MCP gateway for SuiteCRM - 24 CRM tools, OAuth2/OIDC auth, multi-entity, observability.
Overview
Self-hosted MCP gateway that lets an AI assistant read and write SuiteCRM records through 24 prefixed CRM tools over an authenticated SSE connection.
- What you can do
- Search, count and fetch CRM records, including full-text search, bulk ID lookups and recently viewed items
- Create, update, soft-delete and bulk-upsert records, and link or unlink related records
- Inspect modules, field definitions and dropdown values
- Log calls, create tasks and notes, and list upcoming or historical activities
- Upload and download note attachments, and check gateway status and connection info
- When to use it
- Use it when you run SuiteCRM and want an assistant to query and maintain CRM data such as accounts, contacts, leads, opportunities and cases. It suits teams that can host a gateway server and want OAuth2/OIDC logins with per-user, revocable API keys instead of putting CRM credentials on client machines.
- Requirements
- A local gateway process (npm package, Docker image or installer) on Ubuntu/Debian with Python 3.8+, root access, Redis 6.0+ and a SuiteCRM instance with API access enabled. Required environment variables include SUITECRM_ENDPOINT, AUTH0_DOMAIN, AUTH0_AUDIENCE and PORT; the auth service also needs AUTH0_CLIENT_ID, AUTH0_CLIENT_SECRET and GATEWAY_PUBLIC_URL. Clients send an Authorization bearer API key obtained after OAuth login. HTTPS is required in production.
Installation
In SourceWeft
- Open Suitecrm Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
suitecrm-mcp
⚡ Securely connect AI agents to your enterprise CRM in under 5 minutes. Production-ready.
[Live Docs] [License: MIT] [GitHub Release] [CI] [GitHub Stars] [Issues] [LinkedIn]
An open-source MCP (Model Context Protocol) gateway for SuiteCRM. Lets AI assistants like Claude Desktop, Claude Code, and OpenClaw read and write your CRM data via a secure, persistent SSE connection.
Built from a real production deployment. Commercial alternatives are expensive; this one is free and open-source.
Ships with a stateless architecture powered by Redis for horizontal scaling, and a full observability stack: Prometheus metrics, Grafana dashboards (33 panels), and Loki log aggregation.
🚀 Why SuiteCRM-MCP?
🛡️ Enterprise Trust & Security
Built for production environments where data integrity and privacy are non-negotiable.
- Zero-Trust for Credentials: CRM passwords never leave the gateway server. MCP clients (like Claude) hold only an opaque, revocable API key.
- Identity First: Seamlessly integrates with Auth0, Azure AD, or any OIDC provider.
- Audit Ready: Every tool call is logged with structured JSON (Loki), allowing you to see exactly what your AI agents are doing in real-time.
- Circuit Breaker Protection: Automatically shields your CRM from cascading failures if the backend becomes unresponsive.
Table of Contents
✨ Features
- 24 tools covering full CRUD, activity logging (calls, tasks, notes), bulk operations, file attachments, dropdown introspection, and more
- SSE transport - compatible with Claude Desktop, Claude Code, OpenClaw, and any MCP client that supports HTTP+SSE
- OAuth2/OIDC authentication - users log in via Auth0, Azure AD, or any OIDC provider; the gateway issues personal, revocable API keys
- No credentials on client machines - MCP clients hold only an opaque API key; CRM passwords live on the gateway
- Group-based entity access - JWT group claims gate which CRM instances each user can reach
- Session auto-renewal - CRM sessions re-authenticate transparently on expiry
- Stateless & Scalable - auth sessions and profiles cached in Redis, enabling zero-downtime restarts and horizontal scaling behind a load balancer with sticky session routing (SSE connections are per-process; the
/messagesendpoint must reach the same process that owns the SSE transport) - Unified installer - one script handles single CRM (no nginx) or N CRMs behind nginx, with interactive OAuth setup
- Entity-prefixed tools - run multiple CRM instances side-by-side without name collisions
- Admin reporting -
mcp-admin reportgenerates browsable HTML activity reports from Loki and SQLite, with per-user drill-down showing call history, dry runs, and errors with module and field detail
🛠️ Tools
Replace {prefix} with your configured SUITECRM_PREFIX (default: suitecrm).
Supported modules include: Accounts, Contacts, Leads, Opportunities, Cases, Calls, Meetings, Tasks, Notes, Emails, Documents, Campaigns, AOS_Quotes, AOS_Invoices, AOS_Products, AOS_Contracts, AOR_Reports, AOW_WorkFlow, SecurityGroups - and any custom modules in your instance.
🏗️ Architecture
Users log in once via Auth0 or Azure AD; the gateway issues a personal API key. MCP clients attach it as Authorization: Bearer <key> on every request. CRM credentials never leave the gateway. Multiple CRM instances are supported - each gets its own port and tool namespace (suitecrm_crm1_*, suitecrm_crm2_*).
Smart Hybrid Routing: The gateway automatically routes basic CRUD operations and record fetching through the blazing-fast SuiteCRM 8 GraphQL API. If an AI requests a complex search requiring raw SQL filters (which GraphQL does not support), the gateway intercepts it and transparently fails over to the legacy v4.1 REST API-ensuring absolute 100% feature parity with no manual intervention.
Stateless Persistence: By moving auth sessions and user profiles from local memory/files to Redis, the gateway is completely stateless. This allows for horizontal scaling (running multiple gateway instances behind a load balancer), global rate limiting, and seamless restarts without dropping active AI connections. When running multiple instances behind a load balancer, sticky session routing is required: SSE transports and their /messages endpoint must land on the same process.
📊 Observability
Ships with a complete observability stack in docker-compose.yml - one command starts everything alongside the gateway.
Alerting rules included for: circuit breaker open, high auth failure rate, latency SLO breach, session expiry storms.
mcp-admin report generates an HTML activity report from both sources - Loki supplies historical calls, SQLite covers the current period, and the two are merged automatically. Default period is daily; --period weekly and --period monthly are also supported. --serve publishes the report at /report via nginx. --user <email> drills down to a single user's calls, dry runs, and errors with module and field detail.
📋 Prerequisites
- Ubuntu 20.04+ or Debian 11+ (the installers use
apt,systemd, andnginx) - Python 3.8+
- Root / sudo access
- Node.js is installed automatically if missing
- Redis 6.0+ (required for session and profile persistence)
🔑 SuiteCRM API User Setup
Before connecting, make sure your CRM user has API access enabled:
- Log into SuiteCRM as admin
- Go to Admin → User Management → open the user you'll authenticate with
- Check "Is Admin" OR set "API User" to Yes (the field name varies by SuiteCRM version)
- Save
If API access isn't enabled, the gateway returns HTTP 401 with CRM authentication failed: Invalid Login immediately on connection - this is the most common first-run failure.
For production: create a dedicated API user with only the module permissions your AI assistant needs. Don't use the admin account.
⚡ Quick Start - Single CRM
For one CRM with automatic HTTPS and OAuth login.
Requirements: Ubuntu/Debian, Python 3.8+, root access, a domain pointing to this server, OAuth app credentials (see docs/auth0-setup.md)
The installer will prompt for OAuth configuration (issuer, client ID/secret, audience, gateway URL), then set up nginx, certbot, and systemd automatically.
After install, users authenticate at https://mcp.yourserver.com/auth/login to get their API key.
Test gateway health:
Verify it's working in Claude Desktop:
After adding the MCP server config (see docs/connect-claude-desktop.md) and restarting Claude Desktop, click the hammer icon. You should see 24 tools: suitecrm_search, suitecrm_get, etc.
Try a test prompt: "List the first 5 accounts in the CRM" - Claude should call suitecrm_search automatically.
🌐 Multi-Entity Install
For N CRM instances behind nginx - each gets its own port and path.
1. Copy and fill in the config:
2. Run the installer:
3. Enable HTTPS (recommended for production):
Pass --domain and --email. The installer updates the nginx config with your domain and runs certbot automatically.
The domain must already point to this server's public IP, and ports 80 and 443 must be open. After this step the gateway is available at https://mcp.yourserver.com/<code>/sse.
Once configured, the domain is saved automatically. Later --add and --remove runs preserve HTTPS without needing --domain again.
4. Open the nginx port (if using ufw, HTTP-only installs only):
5. Test a specific entity:
After authenticating at /auth/login and getting an API key:
6. Connect at: http://YOUR_SERVER:8080/<code>/sse (or https://your-domain/<code>/sse if HTTPS is enabled)
Verify it's working in Claude Desktop: After restarting Claude Desktop, click the hammer icon. You should see 24 tools per entity: suitecrm_crm1_search, suitecrm_crm2_search, etc.
Add entities later (no downtime on existing):
Remove an entity:
🐳 Docker
The fastest way to run the gateway without touching Node.js or system packages. A pre-built image is published to GitHub Container Registry on every push to main.
For production, pin to a release tag such as v5.4.0 instead of floating on latest.
Create your entity config (the auth service reads this to build MCP client commands):
Edit docker-compose.yml and fill in SUITECRM_ENDPOINT, AUTH0_* vars, and GATEWAY_PUBLIC_URL, then:
The gateway runs at http://localhost:3101. Visit /auth/login to authenticate and get an API key.
To update to a newer pinned release, change the image tag in docker-compose.yml and redeploy:
Upgrading from pre-v5.0.0: v5.0.0 introduced a stateless Redis architecture. If you have an existing
suitecrm-statenamed volume created by an older image, it is no longer used for SQLite. A new Redis container and volume will be provisioned automatically.All persistent state (sessions, profiles) lives in this volume. Recreating it clears those files - users will need to log in again.
For self-signed CRM certificates, add NODE_TLS_REJECT_UNAUTHORIZED: "0" to the environment block. For HTTPS termination (required for OAuth in production), put a reverse proxy (nginx, Caddy) in front.
Test gateway health:
Multi-entity with Docker
Each container handles exactly one CRM entity. For N entities, add N service blocks to docker-compose.yml, each on its own port.
Full multi-entity compose example (two entities)
What changes per entity:
- Service name (
suitecrm-mcp-crm1,suitecrm-mcp-crm2, ...) SUITECRM_ENDPOINT- the REST API URL for that specific CRM (the path after the domain varies by SuiteCRM installation)SUITECRM_CODE- short identifier used in tool names and URL routing (e.g.crm1gives tools namedsuitecrm_crm1_search,suitecrm_crm1_get, etc.)PORTand the host port mapping - each entity needs its own port (3101, 3102, ...)
What stays the same across all entities:
AUTH0_DOMAINandAUTH0_AUDIENCE- one Auth0 app handles all entities- The auth service (
suitecrm-mcp-auth) is shared; entity containers depend on it
Put a reverse proxy (nginx, Caddy) in front to route /crm1/ to port 3101, /crm2/ to port 3102, and /auth/ to any one instance. For production use with multiple CRMs, install.py --config entities.json handles all of this automatically on a Linux host.
⚙️ Configuration
Single entity - environment variables
Multi-entity - entities.json
Keys become the entity code (nginx path prefix, tool prefix suffix, service name). Ports must be unique.
🔒 TLS
Gateway HTTPS (Let's Encrypt)
Pass --domain and --email to the installer to enable HTTPS on the gateway itself. The installer sets up nginx as a TLS-terminating reverse proxy and runs certbot to obtain and auto-renew a certificate.
Requirements:
- Domain must already point to this server's public IP
- Ports 80 (ACME challenge) and 443 (HTTPS) must be open
If certbot fails during install, the gateway still runs over HTTP. Fix DNS/firewall and re-run:
Self-Signed CRM Certificates
If your SuiteCRM uses a self-signed certificate, add "tls_skip": true to the entity config (multi) or pass --tls-skip (single). This sets NODE_TLS_REJECT_UNAUTHORIZED=0.
Only use this on trusted internal networks. Never expose a TLS-skipping gateway to the public internet.
🔌 Connecting a Client
Any MCP client that supports SSE transport with custom request headers will work. Each client has a different setup process - see the dedicated guide for your client:
Claude Desktop and Claude Code connect directly to the gateway URL over SSE. After installing the gateway, add the SSE endpoint and your CRM credentials to your client config. Full steps including single/multi entity configs, HTTPS variants, and verification are in the guides above.
OpenClaw uses a two-component setup: the gateway runs on a remote server
(installed via install.py) and a bridge plugin runs locally on the OpenClaw
machine (installed via install-bridge.py). The bridge proxies all 24 SuiteCRM
tools through to the gateway. The OpenClaw guide covers both components end to end.
📊 Health Checks and Monitoring
Health endpoints
/health/deep returns HTTP 200 when healthy, 503 when the CRM is unreachable. Rate-limited to 10 requests/minute.
Prometheus metrics
Two components expose Prometheus metrics on separate ports (localhost only).
Gateway entity metrics (default port 9090)
Auth service metrics (default port 9091)
The included docker-compose.yml starts a Prometheus + Grafana + Loki stack that scrapes both services automatically. Set GRAFANA_PASSWORD in your environment and visit http://localhost:3000.
Two dashboards are provisioned automatically:
- suitecrm-mcp - per-entity view: 33 panels across system health, users/sessions, CRM backend, security, and tool breakdown rows
- suitecrm-mcp-fleet - multi-entity overview: all entities at a glance (circuit breaker state, connection counts, error rates, latency)
For systemd installs, add scrape targets to monitoring/prometheus.yml:
Circuit breaker
The gateway tracks consecutive CRM REST API failures per entity. When the failure count reaches CIRCUIT_BREAKER_THRESHOLD (default 5), the circuit opens and all tool calls immediately return an error without hitting the CRM. After CIRCUIT_BREAKER_RESET_MS (default 60 seconds), the circuit moves to half-open and allows one probe call through. A successful probe closes the circuit; a failed probe keeps it open.
This prevents a slow or unresponsive CRM from tying up connections and causing cascading timeouts in the MCP client.
The current state appears in both /health and {prefix}_server_info tool responses.
🔧 Troubleshooting
Check service status:
View logs:
Test gateway health:
Common issues:
HTTP 401on SSE - API key invalid or expired; re-authenticate at/auth/loginHTTP 403on SSE - user not in the required group for this entity; check identity provider group membership- OAuth callback error - verify
OAUTH_REDIRECT_URImatches exactly what is registered in your identity provider CRM login failedafter OAuth - CRM user not found or API access not enabled; runmcp-admin listto verify the user has a profile in RedisNon-JSON response- wrong CRM endpoint URL; check it ends in/service/v4_1/rest.phpECONNREFUSED- service isn't running;journalctl -u suitecrm-mcp- SSE connection drops - normal for long idle periods; clients reconnect automatically
✅ Supported SuiteCRM Versions
Tested on SuiteCRM 8.8.x. Should work on any SuiteCRM version that exposes the v4_1 REST API - this has been present since early SuiteCRM releases.
Does not support SugarCRM - the APIs diverged significantly after the SuiteCRM fork.
Finding your endpoint URL
The path to the REST API varies depending on how SuiteCRM was installed. Common patterns:
To find yours: log into SuiteCRM, go to Admin → Diagnostic Tool and look at the site URL, or check with whoever manages your server. The endpoint always ends in /service/v4_1/rest.php - only the prefix before it varies. Test it with:
⚠️ Known Limitations
LDAP / SSO users cannot authenticate via the REST API
SuiteCRM's v4_1 REST API only authenticates against local database passwords. If your organisation uses LDAP, Active Directory, or SSO, users who log into the CRM web UI via those providers will not have a local password set - and the gateway will return Invalid Login for them even with correct credentials.
Workaround: Use crm-provision-user on the CRM VM (deployed by --setup-crm-host) to set a local API password for any existing LDAP/SSO user without touching their web login. Supports single user and bulk mode via CSV.
This is a SuiteCRM REST API limitation, not specific to this gateway.
🛡️ Security Notes
- HTTPS is required for production. OAuth flows and API keys must not travel over plain HTTP. Use
--domainto enable Let's Encrypt, or put the gateway behind a TLS-terminating proxy. - API keys are personal and revocable. Each user gets their own key tied to their identity. Admins can revoke a key instantly with
mcp-admin revoke <sub>. Compromised keys do not expose other users. - CRM passwords never leave the gateway. Client machines (Claude Desktop, Claude Code, OpenClaw) hold only an opaque API key. CRM credentials are stored in Redis under the
crm:profileshash on the gateway (access-controlled by Redis auth and network binding). - Keep
AUTH0_CLIENT_SECRETsecret. It is stored in/etc/suitecrm-mcp/auth.env(mode 600) and only read by the auth service. - Env files are written with mode
600and the env directory with700 entities.jsonis in.gitignore- never commit it (it contains CRM endpoints and group names)
See SECURITY.md for full details on controls and known limitations.
📄 License
Built by Anirudhx7
Source: README.md at commit 14027f0
Tools
0Version history
1- v5.5.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts