SugarCRM MCP by usefulapi
List, filter and count records, read dropdown values, and create or update records in SugarCRM.
¿Debería usar esto?
Calidad y seguridad
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"sugarcrm": {
"url": "https://sugarcrm.usefulapi.io/mcp"
}
}
}Puntos de conexión remotos
https://sugarcrm.usefulapi.io/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (7)
🟢sugarcrm_list_records(module, fields, max_num, offset, order_by)
List records of one module (Accounts, Contacts, Leads, Opportunities, Cases, or a custom module), newest page first by the sort you set. Returns records and next_offset (-1 when no more). SugarCRM API: GET /rest/v11_21/:module.
Esquema de entrada
{
"type": "object",
"properties": {
"module": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,99}$"
},
"fields": {
"description": "Comma-separated field names to return, e.g. id,name,date_entered.",
"type": "string",
"pattern": "^[A-Za-z0-9_,]{1,1000}$"
},
"max_num": {
"description": "Records per page (1-100, default 20).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"offset": {
"description": "Offset for paging. Use the next_offset from the last reply.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"order_by": {
"description": "Sort, e.g. date_entered:DESC.",
"type": "string",
"pattern": "^[A-Za-z0-9_]{1,64}(:(ASC|DESC))?$"
}
},
"required": [
"module"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢sugarcrm_get_record(module, id, fields)
Get one record by id, with the fields you ask for. SugarCRM API: GET /rest/v11_21/:module/:id.
Esquema de entrada
{
"type": "object",
"properties": {
"module": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,99}$"
},
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$"
},
"fields": {
"description": "Comma-separated field names to return, e.g. id,name,date_entered.",
"type": "string",
"pattern": "^[A-Za-z0-9_,]{1,1000}$"
}
},
"required": [
"module",
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢sugarcrm_filter_records(module, filter, fields, max_num, offset, ...)
Find records of one module with a Sugar filter array. Read-only: it sends the filter in the body of a POST. Returns records and next_offset. SugarCRM API: POST /rest/v11_21/:module/filter.
Esquema de entrada
{
"type": "object",
"properties": {
"module": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,99}$"
},
"filter": {
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"description": "Sugar filter array, e.g. [{\"name\": {\"$starts\": \"Acme\"}}] or [{\"date_modified\": {\"$dateRange\": \"last_7_days\"}}]."
},
"fields": {
"description": "Comma-separated field names to return, e.g. id,name,date_entered.",
"type": "string",
"pattern": "^[A-Za-z0-9_,]{1,1000}$"
},
"max_num": {
"description": "Records per page (1-100, default 20).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"offset": {
"description": "Offset for paging. Use the next_offset from the last reply.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"order_by": {
"description": "Sort, e.g. date_entered:DESC.",
"type": "string",
"pattern": "^[A-Za-z0-9_]{1,64}(:(ASC|DESC))?$"
}
},
"required": [
"module",
"filter"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢sugarcrm_count_records(module, filter)
Count the records of one module that match a Sugar filter array. SugarCRM API: POST /rest/v11_21/:module/filter/count.
Esquema de entrada
{
"type": "object",
"properties": {
"module": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,99}$"
},
"filter": {
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"description": "Sugar filter array, e.g. [{\"name\": {\"$starts\": \"Acme\"}}] or [{\"date_modified\": {\"$dateRange\": \"last_7_days\"}}]."
}
},
"required": [
"module",
"filter"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢sugarcrm_get_enum_values(module, field)
List the allowed values of a dropdown field on a module, e.g. Opportunities sales_stage. SugarCRM API: GET /rest/v11_21/:module/enum/:field.
Esquema de entrada
{
"type": "object",
"properties": {
"module": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,99}$"
},
"field": {
"type": "string",
"pattern": "^[A-Za-z0-9_]{1,64}$"
}
},
"required": [
"module",
"field"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴sugarcrm_create_record(module, data)
Create one record in a module with the field values you give. Writes data to the customer's Sugar. SugarCRM API: POST /rest/v11_21/:module.
Esquema de entrada
{
"type": "object",
"properties": {
"module": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,99}$"
},
"data": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "Field values to set, e.g. {\"name\": \"Acme Ltd\"}."
}
},
"required": [
"module",
"data"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴sugarcrm_update_record(module, id, data)
Update the field values you give on one existing record. Fields you leave out keep their values. Changes live data in the customer's Sugar. SugarCRM API: PUT /rest/v11_21/:module/:id.
Esquema de entrada
{
"type": "object",
"properties": {
"module": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,99}$"
},
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$"
},
"data": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "Field values to set, e.g. {\"name\": \"Acme Ltd\"}."
}
},
"required": [
"module",
"id",
"data"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Comunidad
Evidencia