salesforce

salesforce is a skill for Claude Code, Codex from advancedcommunities/salesforce-mcp-server. It costs 48 tokens per session (2,682 once invoked), scanned A, original, MIT.

A guide for working with Salesforce, a cloud platform for managing customer and business data. It explains how to use the Salesforce MCP Server and CLI to query records, run Apex code, manage data, run tests, and deploy metadata.

In plain words
What is it for?
Use it to query Salesforce records, search data, execute Apex, write SOQL or SOSL queries, manage records, run tests, deploy metadata, and analyse Salesforce code.
Why use it?
It removes uncertainty about which Salesforce operation or server tool to use. It also requires checking the target organisation and permissions before making changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to query Salesforce records, search data, execute Apex, write SOQL or SOSL queries, manage records, run tests, deploy metadata, and analyse Salesforce code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/advancedcommunities/salesforce-mcp-server/salesforce
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add advancedcommunities/salesforce-mcp-server --skill salesforce
Clone the repo
git clone --depth 1 https://github.com/advancedcommunities/salesforce-mcp-server

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for salesforce

README.md
[![agentmods](https://agentmods.dev/badge/skills/advancedcommunities/salesforce-mcp-server/salesforce.svg)](https://agentmods.dev/skills/advancedcommunities/salesforce-mcp-server/salesforce)
Your own site
<a href="https://agentmods.dev/skills/advancedcommunities/salesforce-mcp-server/salesforce"><img src="https://agentmods.dev/badge/skills/advancedcommunities/salesforce-mcp-server/salesforce.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,682 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.02682
Opus 5 $0.00024 $0.01341
Sonnet 5 $0.00010 $0.00536
Haiku 4.5 $0.00005 $0.00268

Measured 8d ago against content hash 64f0dee76f58, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

salesforce scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/salesforce/SKILL.md · 242 lines

How it starts

The opening of the file, as written. The whole thing — 242 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Salesforce MCP Server — Skill Guide

Overview

The Salesforce MCP Server gives you 40 tools, 5 prompts, and 5 resources to interact with Salesforce orgs through the Salesforce CLI. This skill teaches you how to choose the right tool, chain tools into workflows, and avoid common mistakes.

Start Here: Establish Org Context

Before doing anything else, determine the target org and check permissions.

  1. Get the default org — call get_default_org. If a default is set, you can omit targetOrg from all subsequent calls.
  2. List connected orgs — call list_connected_salesforce_orgs if the user hasn't specified which org to use.
  3. Check permissions — call get_server_permissions to see if the server is in read-only mode and which orgs are allowed.
  4. Set a default — if the user picks an org, call set_default_org so future calls don't need targetOrg.

Rule: Never guess the org. Always resolve it first.

Tool Selection Guide

Querying Data

Need Tool Why
Structured query on a single object with field conditions query_records SOQL — precise field selection, WHERE clause, ORDER BY, LIMIT
Text search across multiple objects search_records SOSL — FIND {term} IN ALL FIELDS RETURNING Obj1, Obj2
Export large result sets to CSV/JSON query_records_to_file Streams results to a file to avoid context window bloat
  • Use query_records for most data retrieval tasks (exact field filters, relationships, aggregations).
  • Use search_records only when you need cross-object keyword search (e.g., "find all records mentioning Acme Corp").
  • Never build SOSL when a simple SOQL WHERE clause suffices.

Read the full file on GitHub · 242 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 242 lines · 48 tokens per session scan A 64f0dee76f58

Subscribe to this mod's changes

salesforce is a skill published in the GitHub repository advancedcommunities/salesforce-mcp-server (31 stars, last pushed 3mo ago), licensed MIT. It adds 48 tokens to every session and 2,682 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.