cherwell-mcp
This MCP server lets MCP clients create, read, update, delete, and search Cherwell CSM business objects via the Cherwell REST API.
Discover business objects and their busObIds by category (All, Major, Supporting, Lookup, Groups).
Fetch object field schemas/templates, including required-only fields, before creating, updating, or searching.
Read one record by internal record ID (busObRecId) or public ID (e.g., incident number).
Create records from field-name/value maps, update selected fields, and permanently delete records.
Search records with filters (eq, gt, lt, contains, startswith), paging, and optional field selection.
Use object names or 32-character busObIds and field names or display names; get compact or raw responses.
Authenticate via environment-configured OAuth password grant (base URL, client key, username, password, auth mode, timeout).
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cherwell-mcp list all open Priority 1 incidents assigned to me"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
cherwell-mcp
A Model Context Protocol server (stdio) for the Cherwell CSM REST API. It lets MCP clients (Claude Code, Claude Desktop, etc.) create, read, update, delete and search Cherwell business objects — Incidents, Problems, Changes, or any custom object.
Requirements
Node.js ≥ 20
A Cherwell REST API client key (created in CSM Administrator → Security → Edit REST API client settings)
A Cherwell user account the server will act as
Related MCP server: Azure DevOps MCP Server
Configuration
All configuration is provided via environment variables — no config files, no CLI flags:
Variable | Required | Description |
| yes | CSM host root, e.g. |
| yes | REST API client key |
| yes | Cherwell user login |
| yes | Cherwell user password |
| no |
|
| no | Per-request timeout in milliseconds, default |
The server exits with a descriptive error at startup if a required variable is missing.
Usage
Claude Code
claude mcp add cherwell \
--env CHERWELL_BASE_URL=https://csm.example.com \
--env CHERWELL_CLIENT_ID=<client-key> \
--env CHERWELL_USERNAME=<user> \
--env CHERWELL_PASSWORD=<password> \
-- npx -y cherwell-mcpClaude Desktop / generic MCP client
{
"mcpServers": {
"cherwell": {
"command": "npx",
"args": ["-y", "cherwell-mcp"],
"env": {
"CHERWELL_BASE_URL": "https://csm.example.com",
"CHERWELL_CLIENT_ID": "<client-key>",
"CHERWELL_USERNAME": "<user>",
"CHERWELL_PASSWORD": "<password>"
}
}
}
}Tools
Tool | Purpose |
| Discover business objects and their IDs ( |
| Field schema of an object (names, IDs, required flags) |
| Read one record by record ID or public ID |
| Create a record from a |
| Update selected fields of an existing record |
| Permanently delete a record |
| Filtered search with paging and field selection |
Everywhere a business object is expected, tools accept either its name (Incident) or its
32-character busObId. Fields are addressed by name or display name; the server resolves
them to Cherwell field IDs internally.
Response size
Cherwell wraps every field in seven keys of metadata, so one raw Incident is ~110 KB — far more
than an LLM context can afford. The read tools therefore return a compact form by default: a flat
{fieldName: value} map alongside the record identifiers. Measured against a live instance:
Call | Compact | Raw ( |
| 13.8 KB | 111 KB |
| 260 B | — |
| 20 KB | 61 KB |
| 35 KB | 93 KB |
Pass fields on get_business_object / search_business_objects to request only what you need,
and raw: true when you genuinely need Cherwell's original payload (field IDs, HTML, dirty flags).
Example workflow
list_business_object_summaries→ findIncidentget_business_object_template(requiredOnly: true) → see mandatory fieldscreate_business_objectwith{"Description": "...", "Priority": "3", ...}search_business_objectswith[{"fieldName": "Status", "operator": "eq", "value": "New"}]update_business_object/delete_business_objectby the returnedbusObRecId
How it works
Authenticates with the OAuth password grant against
POST /CherwellAPI/token(auth_modeconfigurable). The token is cached and refreshed 10 minutes before expiry; a401triggers one automatic re-login + retry.Cherwell's in-band errors (HTTP 200 with
hasError: true) are surfaced as tool errors.Templates are cached per business object, so repeated saves/searches don't re-fetch schemas.
See ARCHITECTURE.md for the full design.
Development
npm install
npm run build # compile to dist/
npm start # run the compiled server (needs CHERWELL_* env vars)Security notes
Credentials live only in environment variables and are never included in tool output or logs.
The account's Cherwell permissions bound what the tools can do — use a least-privilege account.
delete_business_objectis irreversible; grant it deliberately.
License
MIT
Available Tools
7 toolscreate_business_objectA
Create a new business object record. Pass field values as a map of field name (or display name) to value. Use get_business_object_template with requiredOnly=true to see which fields are mandatory. Returns the new record's busObRecId and public ID.
Inputs: fields (required), businessObject (required).
delete_business_objectA
Permanently delete a business object record by its record ID (busObRecId). This cannot be undone.
Inputs: recId (required), businessObject (required).
get_business_objectA
Read a single business object record with all its field values, addressed by record ID (busObRecId) or public ID (e.g. incident number). Provide exactly one of recId / publicId.
Inputs: businessObject (required), recId, publicId.
get_business_object_templateA
Get the field schema (template) of a business object: field IDs, names, display names and required flags. Use this to learn which fields exist before creating, updating or searching records.
Inputs: businessObject (required), requiredOnly.
list_business_object_summariesA
List Cherwell business objects (names and busObIds). Use this to discover which objects exist and to find the busObId or exact name needed by the other tools.
Inputs: type.
search_business_objectsA
Search business object records with field filters. Filters on the SAME field are OR-ed together; filters on DIFFERENT fields are AND-ed (Cherwell semantics). Supports paging and an optional list of fields to return (defaults to all fields).
Inputs: filters (required), businessObject (required), fields, pageSize, +1 more.
update_business_objectB
Update fields of an existing business object record, addressed by record ID (busObRecId) or public ID. Only the provided fields are changed. Provide exactly one of recId / publicId.
Inputs: fields (required), businessObject (required), recId, publicId.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a clearly distinct action: listing object types, reading one record, creating, deleting, getting schema, updating, and searching. The descriptions explicitly clarify boundaries, such as get_business_object_template for schema versus get_business_object for record data. No two tools appear interchangeable.
All tool names use snake_case and a consistent verb_noun pattern: list_, get_, create_, delete_, update_, search_. The minor extra suffixes (summaries, template) still follow the same predictable style.
Seven tools is well-scoped for a Cherwell business-object CRUD surface. Each tool covers a necessary operation without redundancy or bloat.
The set provides full lifecycle coverage for business object records: discovery, schema inspection, create, read, update, delete, and search. No obvious operational gap exists for the stated domain.
Maintenance
Related MCP Connectors
Query, browse, and automate OmegaAI workspaces from any MCP client. Streamable HTTP with OAuth 2.0.
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Remote MCP for 1,500+ APIs. Vault-managed credentials; OAuth or API key. Search, load, and execute.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Related MCP Servers
- AlicenseBqualityNot gradedmaintenanceEnables MCP clients to interact with Microsoft Dynamics 365 Business Central entities, providing tools to get schemas, list, create, update, and delete records.6MIT
- FlicenseNot gradedqualityDmaintenanceEnables reading and updating Azure DevOps work items, comments, metadata, and relations from an MCP-compatible client.-
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to access and manage Microsoft Dynamics 365 Business Central entities, such as creating sales orders, via a modern async MCP server.MIT
- AlicenseAqualityCmaintenanceEnables MCP clients to manage Snipe-IT assets with full CRUD, checkout/checkin, audit, restore, and lookup operations across all supported resource types.11AGPL 3.0