Skip to main content
Glama
JustParent

simple-salesforce-mcp

by JustParent

simple-salesforce-mcp

Tests

軽量なSalesforce MCPサーバー。stdio経由でSalesforce REST APIと直接通信し、ランタイム依存関係は2つ(mcphttpx)のみです。依存関係ツリーがサンドボックス環境には重すぎる公式の@salesforce/mcp DXサーバーに代わる、コールドスタートが高速な代替として構築されました。

ツール

ツール

書き込み?

備考

run_soql_query

いいえ

ページネーション(next_url)付きの生のSOQLエスケープ ハッチ

search_records

いいえ

オブジェクト横断の全文検索(パラメータ化された検索API)

get_record

いいえ

Idによる1レコードの取得、フィールドリストは任意

create_record

はい

レコードを作成

update_record

はい、confirm必須

リテラルのconfirm=trueが必要

delete_record

はい、confirm必須

リテラルのconfirm=trueが必要

describe_object

いいえ

トリミングされたオブジェクト メタデータ(フィールド、型、必須、選択リスト)

list_objects

いいえ

組織のオブジェクト。システム ノイズはデフォルトでフィルタリング

get_org_info

いいえ

現在のユーザー、組織、インスタンスURL、APIバージョン

すべてのツールにはMCPアノテーション(readOnlyHint / destructiveHint / idempotentHint)が付いています。update_recorddelete_recordは、呼び出しにconfirm: trueが含まれない限り動作を拒否し、拒否メッセージはモデルに対して、正確な変更内容をユーザーに提示して先に承認を得るよう指示します。SOQL自体はデータを変更できないため、エスケープ ハッチは読み取り専用のままです。

Related MCP server: Salesforce MCP Server

認証

サーバー自体はOAuthフローを実行せず、既存のアクセス トークンを使用します。トークンはツール呼び出しのたびに解決されるため、外部プロセスがいつでもトークンをローテーションできます:

  1. Salesforce CLI認証ストア$HOME配下):

    • ~/.sf/config.json{"target-org": "<username>"}(またはレガシーの~/.sfdx/sfdx-config.json{"defaultusername": ...}

    • ~/.sfdx/<username>.json{"accessToken": "...", "instanceUrl": "https://..."}

    これはsf org loginが書き込む形式であり、JustParentプラットフォームがサンドボックスに実体化する形式です(プラットフォームは各呼び出しの前にアクセス トークンを更新します)。これらのファイル内のリフレッシュ トークンとクライアント シークレットは無視されます。メモリに読み込まれることも、保存されることも、ログに記録されることもありません。

  2. 環境変数(ローカル/スタンドアロン使用時のフォールバック): SALESFORCE_ACCESS_TOKENSALESFORCE_INSTANCE_URL

トークンが拒否された場合(HTTP 401 / INVALID_SESSION_ID)、サーバーは認証ストアを一度再読み込みして再試行し、その後、接続を再確立する必要があることを報告します。

REST APIバージョンはデフォルトで62.0です。SALESFORCE_API_VERSIONで上書きできます。

実行

# Standalone with env vars (get a token via: sf org display --json)
SALESFORCE_ACCESS_TOKEN=... \
SALESFORCE_INSTANCE_URL=https://yourorg.my.salesforce.com \
uvx --from git+https://github.com/JustParent/simple-salesforce-mcp simple-salesforce-mcp

Claude Desktop / 汎用MCPクライアント設定:

{
  "mcpServers": {
    "salesforce": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/JustParent/simple-salesforce-mcp", "simple-salesforce-mcp"],
      "env": {
        "SALESFORCE_ACCESS_TOKEN": "...",
        "SALESFORCE_INSTANCE_URL": "https://yourorg.my.salesforce.com"
      }
    }
  }
}

スモーク テスト(ネットワーク不要。バージョン、認証情報の状態、ツールを出力し、終了コード0で終了):

uvx --from . simple-salesforce-mcp --test

開発

uv run pytest                    # unit tests, no network needed
uv run ruff check .              # lint
uv run ruff format .             # format (--check to verify only)
uv run mypy                      # type check (src and tests)
uv run simple-salesforce-mcp --test
npx @modelcontextprotocol/inspector uv run simple-salesforce-mcp   # interactive

CI(.github/workflows/tests.yml)は、すべてのプッシュとプル リクエストで実行されます:Python 3.10~3.13でのテスト スイート、ruffによるlintおよびフォーマットのチェックに加えてmypy、そしてサンドボックスと同じ方法でパッケージをインストールする(uvx --from .)パッケージング ジョブが含まれ、パッケージングの破損を検出します。

セキュリティに関する注意事項

  • アクセス トークンのみ:サーバーはリフレッシュ トークンを要求、読み取り、永続化することはありません。

  • 破壊的操作(update/delete)は、明示的なconfirm=true引数によってゲートされており、モデルに対してユーザーの承認を先に得るようガイダンスが提供されます。

  • SOQLページネーション カーソル(next_url)は/services/data/...パスであることが検証され、オブジェクト/レコード識別子はURLに配置される前に検証されます。

  • レスポンスにはサイズ上限が設定され、明示的な切り詰め通知が含まれます。

F
license - not found
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    A
    maintenance
    A focused MCP server for Salesforce CRM that exposes read/write access to standard CRM objects via six tools, designed for multi-tenant gateway deployments.
    19
    MIT
  • F
    license
    B
    quality
    D
    maintenance
    A customizable MCP server for integrating Salesforce APIs with GenAI applications, supporting SOQL queries, record CRUD, metadata access, and more.
    13
    7
  • A
    license
    A
    quality
    A
    maintenance
    Enables SOQL queries, SOSL search, and record CRUD operations on a single Salesforce org via MCP, with optional read-only mode.
    9
    53
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to interact with Salesforce through MCP, supporting queries, records, metadata, and bulk operations with flexible OAuth authentication.
    MIT

View all related MCP servers

Related MCP Connectors

  • Run SOQL queries to explore and retrieve Salesforce data. Access accounts, contacts, opportunities…

  • Search, document and execute authenticated API calls across 700+ apps via one MCP server

  • Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JustParent/simple-salesforce-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server