Salesforce

v0.4.0
io.github.mindstone/mcp-server-salesforce Checked 2 days ago Published 1 day ago

Salesforce CRM MCP server: accounts, contacts, opportunities, leads, tasks, and custom objects

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

salesforce_connect_account

Connect a Salesforce account via OAuth. Takes no parameters — call with {}. Initiates OAuth flow — in standalone mode, opens a browser URL for Salesforce sign-in. In bridge mode, delegates to the host app. WHEN TO USE: - No Salesforce account is connected - Authentication errors from other tools - User asks to connect Salesforce After connecting, verify with salesforce_list_connected_accounts.

salesforce_list_connected_accounts

List connected Salesforce accounts. Takes no parameters — call with {}. Call this FIRST before any Salesforce CRM operations to verify authentication. This MCP instance operates on a single Salesforce account. If no account is connected, use salesforce_connect_account.

salesforce_disconnect_account

Disconnect a Salesforce account. Example: { "username": "user@company.com" } Accepts the account `ref` from salesforce_list_connected_accounts as well as the raw username. Permanently removes stored credentials. Use when switching accounts or troubleshooting.

ParameterTypeDescription
username *stringUsername or account ref of the account to disconnect

salesforce_get_accounts

Get CRM accounts. Filters: name_contains, industry, account_type. Returns: Id, Name, Industry, Type, Phone, Website, Description. Max 200 records (default: 50).

ParameterTypeDescription
account_typestringFilter by type (Customer, Partner, Competitor)
fieldsarrayCustom fields (must be valid API names)
industrystringFilter by industry
limitintegerMax results 1-200 (default: 50)
max_resultsintegerAlias of limit.
name_containsstringFilter by name (case-insensitive)
querystringAlias of name_contains.

salesforce_create_account

Create a CRM account. Required: name. Optional: industry, type, phone, website, description, fields.

ParameterTypeDescription
name *stringAccount name (required)
descriptionstringAccount description
fieldsobjectAdditional/custom fields as key-value pairs
industrystringIndustry
phonestringPhone number
typestringAccount type
websitestringWebsite URL

salesforce_update_account

Update a CRM account. Required: id. Updatable: name, industry, type, phone, website, description, fields.

ParameterTypeDescription
id *stringSalesforce Account ID (required)
descriptionstringDescription
fieldsobjectAdditional/custom fields as key-value pairs
industrystringIndustry
namestringAccount name
phonestringPhone number
typestringAccount type
websitestringWebsite URL

salesforce_get_contacts

Get contacts. Filters: name_contains, email_contains, related_account_id. Returns: Id, FirstName, LastName, Email, Phone, Title, AccountId. Max 200 (default: 50).

ParameterTypeDescription
email_containsstringFilter by email
fieldsarrayCustom fields (valid API names)
limitintegerMax results 1-200 (default: 50)
name_containsstringFilter by first or last name
related_account_idstringFilter by Account ID

salesforce_create_contact

Create a contact. Required: last_name. Optional: first_name, email, phone, title, related_account_id, fields.

ParameterTypeDescription
last_name *stringLast name (required)
emailstringEmail address
fieldsobjectAdditional/custom fields as key-value pairs
first_namestringFirst name
phonestringPhone number
related_account_idstringAccount ID to associate with
titlestringJob title

salesforce_update_contact

Update a contact. Required: id. Updatable: first_name, last_name, email, phone, title, fields.

ParameterTypeDescription
id *stringSalesforce Contact ID (required)
emailstringEmail address
fieldsobjectAdditional/custom fields as key-value pairs
first_namestringFirst name
last_namestringLast name
phonestringPhone number
titlestringJob title

salesforce_get_opportunities

Get opportunities. Filters: name_contains, stage, related_account_id, close_date_from, close_date_to. Dates must be YYYY-MM-DD. Max 200 (default: 50).

ParameterTypeDescription
account_idstringAlias of related_account_id.
close_date_fromstringClosing on/after date (YYYY-MM-DD)
close_date_tostringClosing on/before date (YYYY-MM-DD)
fieldsarrayCustom fields
limitintegerMax results 1-200 (default: 50)
name_containsstringFilter by name
related_account_idstringFilter by Account ID
stagestringFilter by stage
statusstringAlias of stage.

salesforce_create_opportunity

Create an opportunity. Required: name, stage_name, close_date (YYYY-MM-DD). Optional: amount, related_account_id, description, fields.

ParameterTypeDescription
close_date *stringClose date YYYY-MM-DD (required)
name *stringOpportunity name (required)
stage_name *stringStage name (required)
amountnumberOpportunity amount
descriptionstringDescription
fieldsobjectAdditional/custom fields as key-value pairs
related_account_idstringAccount ID to associate with

salesforce_update_opportunity

Update an opportunity. Required: id. Updatable: name, stage_name, close_date (YYYY-MM-DD), amount, description, fields.

ParameterTypeDescription
id *stringSalesforce Opportunity ID (required)
amountnumberAmount
close_datestringClose date YYYY-MM-DD
descriptionstringDescription
fieldsobjectAdditional/custom fields
namestringOpportunity name
stage_namestringStage name

salesforce_get_leads

Get leads. Filters: name_contains, company_contains, email_contains, status. Max 200 (default: 50).

ParameterTypeDescription
company_containsstringFilter by company
email_containsstringFilter by email
fieldsarrayCustom fields
limitintegerMax results 1-200 (default: 50)
name_containsstringFilter by name
statusstringFilter by status

salesforce_create_lead

Create a lead. Required: last_name, company. Optional: first_name, email, phone, title, status, fields.

ParameterTypeDescription
company *stringCompany name (required)
last_name *stringLast name (required)
emailstringEmail address
fieldsobjectAdditional/custom fields
first_namestringFirst name
phonestringPhone number
statusstringLead status
titlestringJob title

salesforce_convert_lead

Convert a lead into Account + Contact, and optionally an Opportunity. Required: lead_id. Optional: create_opportunity, opportunity_name.

ParameterTypeDescription
lead_id *stringLead ID to convert (required)
create_opportunitybooleanCreate opportunity (default: true)
opportunity_namestringName for new opportunity

salesforce_update_lead

Update a lead. Required: lead_id. Updatable: first_name, last_name, company, email, phone, title, status, fields.

ParameterTypeDescription
lead_id *stringSalesforce Lead ID (required)
companystringCompany name
emailstringEmail address
fieldsobjectAdditional/custom fields
first_namestringFirst name
last_namestringLast name
phonestringPhone number
statusstringLead status
titlestringJob title

salesforce_get_tasks

Get tasks. Filters: subject_contains, status, priority, who_id, what_id, activity_date_from, activity_date_to. Max 200 (default: 50).

ParameterTypeDescription
activity_date_fromstringFilter tasks on/after date (YYYY-MM-DD)
activity_date_tostringFilter tasks on/before date (YYYY-MM-DD)
fieldsarrayCustom fields
limitintegerMax results 1-200 (default: 50)
prioritystringFilter by priority
statusstringFilter by status
subject_containsstringFilter by subject
what_idstringFilter by WhatId (Account or Opportunity ID)
who_idstringFilter by WhoId (Contact or Lead ID)

salesforce_create_task

Create a task. Required: subject. Optional: status, priority, who_id, what_id, activity_date, description, owner_id, fields.

ParameterTypeDescription
subject *stringTask subject (required)
activity_datestringDue date (YYYY-MM-DD)
descriptionstringTask description
fieldsobjectAdditional/custom fields
owner_idstringOwner User ID
prioritystringPriority (High, Normal, Low)
statusstringTask status (default: Not Started)
what_idstringAccount or Opportunity ID
who_idstringContact or Lead ID

salesforce_update_task

Update a task. Required: id. Updatable: subject, status, priority, who_id, what_id, activity_date, description, owner_id, fields.

ParameterTypeDescription
id *stringSalesforce Task ID (required)
activity_datestringDue date (YYYY-MM-DD)
descriptionstringDescription
fieldsobjectAdditional/custom fields
owner_idstringOwner User ID
prioritystringPriority
statusstringTask status
subjectstringTask subject
what_idstringAccount or Opportunity ID
who_idstringContact or Lead ID

salesforce_get_cases

Get support cases. Filters: subject_contains, status, priority, related_account_id, related_contact_id, is_closed. Returns: Id, CaseNumber, Subject, Status, Priority, Origin, Description, AccountId, ContactId, OwnerId, CreatedDate, ClosedDate. Max 200 (default: 50).

ParameterTypeDescription
fieldsarrayCustom fields (must be valid API names)
is_closedbooleanFilter by closed status
limitintegerMax results 1-200 (default: 50)
prioritystringFilter by priority (High, Medium, Low)
related_account_idstringFilter by Account ID
related_contact_idstringFilter by Contact ID
statusstringFilter by status (New, Working, Escalated, Closed)
subject_containsstringFilter by subject (case-insensitive)

salesforce_create_case

Create a support case. Required: subject. Optional: status, priority, origin, description, related_account_id, related_contact_id, fields.

ParameterTypeDescription
subject *stringCase subject (required)
descriptionstringCase description
fieldsobjectAdditional/custom fields as key-value pairs
originstringCase origin (Phone, Email, Web)
prioritystringPriority (High, Medium, Low)
related_account_idstringAccount ID to associate with
related_contact_idstringContact ID to associate with
statusstringCase status (default: New)

salesforce_update_case

Update a support case. Required: id. Updatable: subject, status, priority, origin, description, related_account_id, related_contact_id, fields.

ParameterTypeDescription
id *stringSalesforce Case ID (required)
descriptionstringDescription
fieldsobjectAdditional/custom fields as key-value pairs
originstringCase origin
prioritystringPriority (High, Medium, Low)
related_account_idstringAccount ID to associate with
related_contact_idstringContact ID to associate with
statusstringCase status (e.g., Working, Escalated, Closed)
subjectstringCase subject

salesforce_get_events

Get calendar events. Filters: subject_contains, who_id, what_id, start_from, start_to. Dates accept YYYY-MM-DD (midnight UTC) or ISO 8601 datetimes. Returns: Id, Subject, StartDateTime, EndDateTime, Location, Description, WhoId, WhatId, OwnerId, IsAllDayEvent. Max 200 (default: 50).

ParameterTypeDescription
fieldsarrayCustom fields (must be valid API names)
limitintegerMax results 1-200 (default: 50)
start_fromstringEvents starting on/after this date or datetime (YYYY-MM-DD or ISO 8601; see tool description for an example)
start_tostringEvents starting on/before this date or datetime (YYYY-MM-DD or ISO 8601)
subject_containsstringFilter by subject (case-insensitive)
what_idstringFilter by WhatId (Account or Opportunity ID)
who_idstringFilter by WhoId (Contact or Lead ID)

salesforce_create_event

Create a calendar event. Required: subject, start_date_time, end_date_time. Optional: location, description, who_id, what_id, is_all_day_event, owner_id, fields. Datetimes must be ISO 8601 (e.g. "2026-01-09T14:30:00Z"); all-day events accept plain dates (YYYY-MM-DD).

ParameterTypeDescription
end_date_time *stringEnd (required) — ISO 8601 datetime, or YYYY-MM-DD for all-day events
start_date_time *stringStart (required) — ISO 8601 datetime (see tool description for an example), or YYYY-MM-DD for all-day events
subject *stringEvent subject (required)
descriptionstringEvent description
fieldsobjectAdditional/custom fields as key-value pairs
is_all_day_eventbooleanAll-day event (default: false)
locationstringEvent location
owner_idstringOwner User ID
what_idstringAccount or Opportunity ID to relate
who_idstringContact or Lead ID to invite/relate

salesforce_get_notes

Get notes attached to a record (ContentNote linked via ContentDocumentLink). Required: parent_id (Account, Contact, Opportunity, Case, Lead, or any record ID). Returns note Id, Title, TextPreview, CreatedDate, OwnerId; set include_body=true to also return the full note text. Max 200 (default: 50).

ParameterTypeDescription
parent_id *stringRecord ID the notes are attached to (required)
include_bodybooleanInclude full note body text (default: false — returns title and preview only)
limitintegerMax results 1-200 (default: 50)

salesforce_create_note

Create a note (ContentNote). Required: title, body. Optional: parent_id — a record ID to attach the note to (Account, Contact, Opportunity, Case, Lead, etc.).

ParameterTypeDescription
body *stringNote body text (required)
title *stringNote title (required)
parent_idstringRecord ID to attach the note to

salesforce_get_campaigns

Get marketing campaigns. Filters: name_contains, campaign_type, status, is_active, start_date_from, start_date_to. Returns: Id, Name, Type, Status, IsActive, StartDate, EndDate, Description. Max 200 (default: 50).

ParameterTypeDescription
campaign_typestringFilter by type (Email, Webinar, Advertisement)
fieldsarrayCustom fields (must be valid API names)
is_activebooleanFilter by active status
limitintegerMax results 1-200 (default: 50)
name_containsstringFilter by name (case-insensitive)
start_date_fromstringCampaigns starting on/after date (YYYY-MM-DD)
start_date_tostringCampaigns starting on/before date (YYYY-MM-DD)
statusstringFilter by status (Planned, In Progress, Completed)

salesforce_get_campaign_members

Get campaign members (leads/contacts in a campaign). Filters: campaign_id, lead_id, contact_id, status. Returns: Id, CampaignId, LeadId, ContactId, Status, CreatedDate. Max 200 (default: 50).

ParameterTypeDescription
campaign_idstringFilter by Campaign ID
contact_idstringFilter by Contact ID
fieldsarrayCustom fields (must be valid API names)
lead_idstringFilter by Lead ID
limitintegerMax results 1-200 (default: 50)
statusstringFilter by member status (Sent, Responded)

salesforce_run_report

Run an existing Salesforce report (Analytics REST API) and return its aggregated result. Required: report_id (the report's 15- or 18-character ID, visible in the report URL). Set include_details=true to include detail rows, not just groupings and aggregates.

ParameterTypeDescription
report_id *stringSalesforce report ID (15 or 18 characters, from the report URL)
include_detailsbooleanInclude detail rows in the result (default: false — groupings and aggregates only)

salesforce_get_users

Get Salesforce users. Filters: name_contains, email_contains, role_contains, is_active. Max 200 (default: 50).

ParameterTypeDescription
email_containsstringFilter by email
fieldsarrayCustom fields
is_activebooleanFilter by active status
limitintegerMax results 1-200 (default: 50)
name_containsstringFilter by name
role_containsstringFilter by UserRole.Name

salesforce_query

Execute a raw SOQL query. For advanced queries only — prefer dedicated tools for standard operations. Requires query (or its alias soql). Max 200 records enforced.

ParameterTypeDescription
querystringSOQL query string
soqlstringAlias of query.

salesforce_describe_object

Get object metadata and field definitions. Returns field names, types, and required flags. Requires object_name (or its alias object). Common objects: Account, Contact, Opportunity, Lead, Case, Task.

ParameterTypeDescription
objectstringAlias of object_name.
object_namestringObject API name (Account, Contact, Opportunity, Lead, CustomObject__c)

salesforce_list_objects

List available Salesforce sObjects. Default shows custom objects only. Set custom_only=false to include standard objects.

ParameterTypeDescription
custom_onlybooleanShow only custom objects (default: true)

salesforce_create_record

Generic record creation for any Salesforce object. For standard objects, prefer dedicated tools.

ParameterTypeDescription
fields *objectField-value pairs to set on the new record
object_name *stringsObject API name (e.g., Invoice__c, Case)

salesforce_update_record

Generic record update for any Salesforce object. For standard objects, prefer dedicated tools. Requires id (or its alias record_id).

ParameterTypeDescription
fields *objectField-value pairs to update
object_name *stringsObject API name
idstringSalesforce record ID to update
record_idstringAlias of id.

salesforce_get_records

Generic record query for any Salesforce object. Requires object_name (or its alias sobject). For standard objects, prefer dedicated get tools.

ParameterTypeDescription
fieldsFields to SELECT (defaults to Id); array or comma-separated string
filtersarrayWHERE conditions (AND-joined)
limitintegerMax results 1-200 (default: 50)
object_namestringsObject API name
record_idstringFetch one record by ID (adds an Id = ... condition)
sobjectstringAlias of object_name.