KosmoKrator

productivity

Salesforce MCP Integration for LangGraph

Connect Salesforce to LangGraph through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

18 functions 10 read 8 write Manual OAuth token auth

Connect Salesforce to LangGraph

Run KosmoKrator integration calls from LangGraph nodes while preserving local credentials and permissions.

Use a graph node that calls the KosmoKrator CLI for deterministic steps or an MCP client for dynamic tool selection. The gateway is local, scoped to this integration, and starts with --write=deny so LangGraph can inspect read-capable tools without receiving write access by default.

Salesforce MCP Config for LangGraph

Headless CLI calls fit repeatable graph edges; MCP fits exploratory agent nodes.

{
  "mcpServers": {
    "kosmokrator-salesforce": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=salesforce",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=salesforce --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Salesforce instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Salesforce Tools Visible to LangGraph

LangGraph sees stable MCP tool names generated from the Salesforce integration catalog.

MCP toolSource functionTypeDescription
integration__salesforce__salesforce_create_lead salesforce.salesforce_create_lead Write Create a new lead in Salesforce. Supports FirstName, LastName, Company, Email, Phone, Title, Website, and additional custom fields via other_fields. Returns the created lead ID and success status.
integration__salesforce__salesforce_get_lead salesforce.salesforce_get_lead Read Retrieve a Salesforce lead by its ID. Returns the lead's fields, attributes, and associated data.
integration__salesforce__salesforce_update_lead salesforce.salesforce_update_lead Write Update an existing Salesforce lead by ID. Supports FirstName, LastName, Company, Email, Phone, and additional custom fields via other_fields. Returns success confirmation on completion.
integration__salesforce__salesforce_create_contact salesforce.salesforce_create_contact Write Create a new contact in Salesforce. Supports FirstName, LastName, Email, Phone, AccountId, Title, and additional custom fields via other_fields. Returns the created contact ID and success status.
integration__salesforce__salesforce_get_contact salesforce.salesforce_get_contact Read Retrieve a Salesforce contact by its ID. Returns the contact's fields, attributes, and associated data.
integration__salesforce__salesforce_create_account salesforce.salesforce_create_account Write Create a new account in Salesforce. Supports Name, Website, Phone, Industry, BillingCity, BillingCountry, and additional custom fields via other_fields. Returns the created account ID and success status.
integration__salesforce__salesforce_get_account salesforce.salesforce_get_account Read Retrieve a Salesforce account by its ID. Returns the account's fields, attributes, and associated data.
integration__salesforce__salesforce_update_account salesforce.salesforce_update_account Write Update an existing Salesforce account by ID. Supports Name, Website, Phone, and additional custom fields via other_fields. Returns success confirmation on completion.
integration__salesforce__salesforce_create_opportunity salesforce.salesforce_create_opportunity Write Create a new opportunity in Salesforce. Supports Name, Amount, StageName, CloseDate, AccountId, and Probability. Returns the created opportunity ID and success status.
integration__salesforce__salesforce_get_opportunity salesforce.salesforce_get_opportunity Read Retrieve a Salesforce opportunity by its ID. Returns the opportunity's fields, attributes, and associated data.
integration__salesforce__salesforce_query salesforce.salesforce_query Read Execute a SOQL (Salesforce Object Query Language) query. Use SOQL to search records in Salesforce. Example: SELECT Id, Name FROM Account LIMIT 10 Returns query results with total size and records.
integration__salesforce__salesforce_search salesforce.salesforce_search Read Execute a SOSL (Salesforce Object Search Language) search. Use SOSL for text-based searches across multiple object types. Example: FIND {test} IN ALL FIELDS RETURNING Account(Id, Name) Returns search results grouped by object type.
integration__salesforce__salesforce_describe_object salesforce.salesforce_describe_object Read Get metadata for a Salesforce object type. Returns field definitions, relationships, record types, and other metadata. Example object types: Account, Contact, Lead, Opportunity, Case, Task, User.
integration__salesforce__salesforce_list_objects salesforce.salesforce_list_objects Read List all available Salesforce objects (standard and custom). Returns object names, labels, and key prefixes.
integration__salesforce__salesforce_create_task salesforce.salesforce_create_task Write Create a new task in Salesforce. Supports Subject, Description, Status, Priority, WhoId (contact/lead), WhatId (account/opportunity), and ActivityDate. Returns the created task ID and success status.
integration__salesforce__salesforce_create_case salesforce.salesforce_create_case Write Create a new case in Salesforce. Supports Subject, Description, Status, Priority, Origin, ContactId, and AccountId. Returns the created case ID and success status.
integration__salesforce__salesforce_list_recent salesforce.salesforce_list_recent Read List recently accessed items in Salesforce. Returns recently viewed or modified records across all object types. Optionally specify a limit to control the number of items returned.
integration__salesforce__salesforce_get_user salesforce.salesforce_get_user Read Retrieve a Salesforce user by their ID. Returns the user's name, email, profile, role, and other fields.

Related Salesforce Pages