Skip to main content
Glama

MCP Salesforce Server

CI

OAuth認証を使用してSalesforceとのシームレスな統合を提供するModel Context Protocol (MCP) サーバーです。このサーバーにより、ClaudeのようなAIアシスタントが、安全で汎用的なインターフェースを通じてあらゆるSalesforce組織と対話できるようになります。

✨ 特徴

  • 🎯 シームレスな認証 - Claudeは認証が必要なタイミングを自動的に検出し、透過的に処理します

  • 🚀 手動設定不要 - ターミナルコマンドの実行や手動のOAuthフローは不要です

  • 🔐 OAuth専用認証 - 自動トークン更新機能を備えた安全なブラウザベースの設定

  • 🌐 ユニバーサルなSalesforce統合 - カスタムオブジェクトやフィールドを含む、あらゆるSalesforce組織で動作します

  • 🧠 スマートインストール学習 - Salesforceのセットアップ全体を分析し、インテリジェントな支援を提供します

  • 🔍 動的スキーマ検出 - Salesforceの構成に自動的に適応します

  • 🔒 安全なトークンストレージ - 本番環境グレードのセキュリティを実現する厳格な権限設定を備えたファイルベースのストレージ

  • 🏠 クロスプラットフォームのホームディレクトリ保存 - 資格情報とキャッシュをユーザーのホームディレクトリに保存

  • 📝 完全なCRUD操作 - Salesforceレコードのクエリ、作成、更新、削除が可能

  • 📊 スキーマ検査 - オブジェクトとフィールドの詳細情報を取得

  • 💡 コンテキストを認識した提案 - フィールド名やオブジェクト名のインテリジェントな提案を提供

  • 💾 包括的なバックアップシステム - すべてのSalesforceファイルシステムをサポートする完全なデータおよびファイルバックアップ

  • ⏰ タイムマシン機能 - 特定時点へのデータ復旧と履歴分析

  • 📁 マルチフォーマットファイルサポート - 適切なメタデータとともにContentVersion、添付ファイル、ドキュメントをバックアップ

Related MCP server: Salesforce MCP Server

🚀 クイックスタート

前提条件

  • Node.js 18+

  • macOS (安全な資格情報ストレージに必要)

  • OAuthが設定されたSalesforce接続アプリケーション

インストールオプション

🎯 推奨: NPXの使用 (インストール不要)

NPXを使用して、永続的なインストールなしでMCPサーバーを実行します:

{
  "mcpServers": {
    "salesforce": {
      "command": "npx",
      "args": ["@aiondadotcom/mcp-salesforce"]
    }
  }
}

✅ NPX使用のメリット:

  • 🔄 常に最新: 公開されている最新バージョンを自動的に使用

  • 💾 ディスク容量不要: 永続的なインストールは不要

  • 🛡️ 競合なし: グローバルパッケージの競合が発生しない

  • ⚡ 簡単なアップデート: 再起動するだけで自動的に最新バージョンを取得

  • 📋 シンプルな設定: コピー&ペーストですぐに使えるMCP設定

NPXコマンドラインの使用:

# Get version
npx -p @aiondadotcom/mcp-salesforce mcp-salesforce --version

# Get help
npx -p @aiondadotcom/mcp-salesforce mcp-salesforce --help

# Run OAuth setup
npx -p @aiondadotcom/mcp-salesforce mcp-salesforce setup

🔧 代替案: 開発環境のセットアップ

開発やカスタマイズを行う場合:

  1. クローンして依存関係をインストール:

    git clone https://github.com/AiondaDotCom/mcp-salesforce.git
    cd mcp-salesforce
    npm install
  2. 資格情報の設定: プロンプトが表示されたら salesforce_setup ツールを使用して資格情報を設定します

  3. Claude Desktopに追加: ローカルパスを使用します(以下の設定を参照)

🎯 使用開始

以上です!Claudeは、Salesforceツールを初めて使用する際に、セットアップと認証を自動的に処理します。

✨ インタラクティブなセットアッププロセス!

  • salesforce_setup ツールを使用して資格情報を設定します

  • ClaudeがSalesforce接続アプリケーションの詳細を尋ねます

  • 資格情報はホームディレクトリに安全に保存されます

  • Claude Desktopから直接シームレスなOAuthフローを実行

🧠 スマート学習システム

  • salesforce_learn を使用してSalesforceのインストール全体を分析します

  • Claudeがすべてのカスタムオブジェクト、フィールド、リレーションシップを学習します

  • 特定のセットアップに基づいたインテリジェントな提案を提供します

  • 複雑なSalesforce環境に対するコンテキストを認識した支援

📦 NPMパッケージのステータス

✅ パッケージの公開に成功しました!

パッケージ @aiondadotcom/mcp-salesforce は現在 NPMで公開中 であり、すぐに使用可能です。

公開済みパッケージの使用

すべてのユーザーがNPXを使用可能です:

# Test the published package
npx -p @aiondadotcom/mcp-salesforce mcp-salesforce --version
npx -p @aiondadotcom/mcp-salesforce mcp-salesforce --help

# Run OAuth setup
npx -p @aiondadotcom/mcp-salesforce mcp-salesforce setup

公開の詳細

  • パッケージ名: @aiondadotcom/mcp-salesforce

  • バージョン: 1.0.7 (最新)

  • レジストリ: NPMパブリックレジストリ

  • 組織: @aiondadotcom

  • アクセス: 公開

ステータス:

  • ✅ NPMへのパッケージ公開完了

  • ✅ NPX互換性検証済み

  • ✅ バイナリラッパー実装済み

  • ✅ セットアップコマンド機能済み

  • ✅ MCP設定準備完了

  • ✅ すぐに使用可能

🎉 世界中のエンドユーザーがNPX機能を利用できるようになりました!

🔧 設定

Salesforce接続アプリケーションの設定

  1. Salesforceの「設定」で、新しい接続アプリケーションを作成します:

    • アプリケーション名: MCP Salesforce Integration

    • API参照名: mcp_salesforce_integration

    • 連絡先メールアドレス: あなたのメールアドレス

    • OAuth設定を有効化: ✅ はい

    • コールバックURL: http://localhost:9876/callback

      ポート9876は、一般的な開発サーバー(8080、8000、3000)や既知のサービスとの競合を避けるために意図的に選択されました。

    • 選択したOAuth範囲:

      • API経由でユーザーデータにアクセス (api)

      • いつでもリクエストを実行 (refresh_token, offline_access)

  2. 保存後、コンシューマー鍵とコンシューマーの秘密をコピーします

資格情報の設定

アプリケーションを初めて使用する際に salesforce_setup ツールを使用して資格情報を設定します:

  1. インタラクティブなセットアップ: ClaudeがSalesforceの資格情報を尋ねます

  2. クライアントID: Salesforce接続アプリケーションのコンシューマー鍵

  3. クライアントの秘密: Salesforce接続アプリケーションのコンシューマーの秘密

  4. インスタンスURL: Salesforce組織のURL (例: https://mycompany.salesforce.com)

ツールは入力を検証し、制限付き権限 (600) で ~/.mcp-salesforce.json に資格情報を安全に保存します。

📁 ファイルの場所:

  • 資格情報: ~/.mcp-salesforce.json (OAuthトークンと資格情報が含まれます)

  • キャッシュ: ~/.mcp-salesforce-cache/ (学習したSalesforceスキーマとコンテキストが含まれます)

  • クロスプラットフォーム: Windows、macOS、Linuxで動作します

対話例:

Claude: I need to set up your Salesforce credentials first. Please use the salesforce_setup tool with your credentials.

You: Use the salesforce_setup tool with clientId: "3MVG9...", clientSecret: "1234567890...", instanceUrl: "https://mycompany.salesforce.com"

Claude: ✅ Salesforce credentials configured successfully! You can now use other Salesforce tools.

Claude Desktopとの統合

🎯 NPX設定 (推奨)

Claude DesktopのMCP設定 (~/Library/Application Support/Claude/claude_desktop_config.json) に以下を追加します:

{
  "mcpServers": {
    "salesforce": {
      "command": "npx",
      "args": ["@aiondadotcom/mcp-salesforce"]
    }
  }
}

🔧 開発/ローカル設定

開発やカスタマイズされたインストールの場合:

{
  "mcpServers": {
    "salesforce": {
      "command": "node",
      "args": ["/path/to/mcp-salesforce/src/index.js"]
    }
  }
}

🌐 VS Code MCP設定

MCP拡張機能を使用するVS Codeの場合:

{
  "servers": {
    "salesforce": {
      "command": "npx",
      "args": ["@aiondadotcom/mcp-salesforce"]
    }
  }
}

📸 デモスクリーンショット

MCP Salesforce Serverの動作を示すステップバイステップのウォークスルーです。会社住所情報の検証と更新という実用的なユースケースを示しています:

ステップ 1: 住所検証リクエスト

Address Verification ClaudeがSalesforce内のAionda GmbHアカウントの住所が正しいか、現在のウェブサイトの住所と比較して確認している様子

ステップ 2: 住所比較結果

Address Analysis ClaudeがSalesforceの住所が古いことを特定し、現在のSalesforceデータと会社ウェブサイトの実際の住所との詳細な比較を表示している様子

ステップ 3: 自動住所更新

Address Update ClaudeがSalesforceアカウントを正しい現在の住所で正常に更新し、どのフィールドが変更されたかを正確に示している様子

ステップ 4: Salesforceでの検証

Salesforce Confirmation Salesforceの更新されたアカウントレコードで、修正された住所情報が正確かつ最新であることを確認

🛠️ 利用可能なツール

salesforce_learn

🧠 Salesforceのインストール全体を学習 - すべてのオブジェクト、フィールド、カスタマイズを一度分析し、インテリジェントな支援のためにこの情報をローカルに保存します。

// One-time analysis of the Salesforce installation
{}

// Force complete re-analysis
{
  "force_refresh": true,
  "detailed_relationships": true
}

なぜ重要か?

  • 「TimeTracking__c」、「Project__c」などのカスタムオブジェクトをClaudeが学習します

  • すべてのカスタムフィールドとそのデータ型を認識します

  • 特定の構成に基づいたインテリジェントな提案を提供します

  • 一度実行すれば、AIが永続的にその恩恵を受けられます

salesforce_installation_info

📊 学習したSalesforceインストールの概要 - 利用可能なオブジェクト、カスタムフィールド、カスタマイズを表示します。

// Complete overview of the installation
{}

// Details about a specific object
{
  "object_name": "TimeTracking__c"
}

// Search for specific fields
{
  "field_search": "email",
  "show_custom_only": true
}

salesforce_query

任意のSalesforceオブジェクトに対してSOQLクエリを実行します。

// Example: Get recent contacts
{
  "query": "SELECT Id, FirstName, LastName, Email FROM Contact WHERE CreatedDate = THIS_MONTH ORDER BY CreatedDate DESC LIMIT 10"
}

🧠 スマート学習との統合:

  • インストールがまだ学習されていない場合に自動的に警告します

  • 利用可能なオブジェクトとフィールドを提案します

  • 正しいAPI名の使用を支援します

salesforce_create

任意のSalesforceオブジェクトに新しいレコードを作成します。

// Example: Create a new contact
{
  "sobject": "Contact",
  "data": {
    "FirstName": "John",
    "LastName": "Doe", 
    "Email": "john.doe@example.com",
    "Phone": "555-1234"
  }
}

🧠 スマートコンテキスト: インストールが学習されている場合、選択したオブジェクトに必要なフィールドを自動的に表示します。

salesforce_update

既存のレコードを更新します。

// Example: Update a contact's email
{
  "sobject": "Contact",
  "id": "003XX000008b6cYAQ",
  "data": {
    "Email": "new.email@example.com",
    "Phone": "555-5678"
  }
}

🧠 スマートコンテキスト: 学習したインストールからのフィールド権限とデータ型を考慮します。

salesforce_delete

レコードを削除します (⚠️ 永続的なアクション)。

// Example: Delete a record
{
  "sobject": "Contact", 
  "id": "003XX000008b6cYAQ"
}

salesforce_describe

オブジェクトとフィールドのスキーマ情報を取得します。

// Example: Get Contact object schema
{
  "sobject": "Contact"
}

// Or get list of all available objects
{} // Empty parameters

salesforce_backup

💾 Salesforceの包括的なバックアップシステム - 詳細な復旧情報とともに、すべてのデータとファイルの完全なバックアップを作成します。

// Create complete backup
{}

// Incremental backup since specific date
{
  "backup_type": "incremental",
  "since_date": "2025-01-01T00:00:00Z"
}

// Backup with specific options
{
  "options": {
    "include_files": true,
    "include_attachments": true,
    "include_documents": true,
    "parallel_downloads": 10
  }
}

バックアップ対象:

  • 📊 すべてのオブジェクトデータ - オブジェクトあたり最大20フィールドまでのクエリ可能な全オブジェクト

  • 📁 最新のファイル - 完全なメタデータを持つContentVersion

  • 📎 レガシー添付ファイル - 正しいファイル拡張子を持つ従来の添付ファイル

  • 📄 ドキュメント - レガシーシステムからのフォルダベースのドキュメント

  • 🏗️ スキーマ情報 - 完全なオブジェクト構造とリレーションシップ

  • 📋 バックアップマニフェスト - 詳細な統計と復旧情報

バックアップ構造:

salesforce-backup-2025-06-04T16-16-35-660Z/
├── metadata/           # Schema and object definitions
├── data/              # JSON data of all objects
├── files/
│   ├── content-versions/  # Modern files
│   ├── attachments/       # Legacy attachments
│   └── documents/         # Legacy documents
└── backup-manifest.json   # Backup overview

salesforce_backup_list

📋 利用可能なバックアップを表示 - 統計とメタデータを含むすべてのローカルバックアップの概要。

// List all available backups
{}

// Details about a specific backup
{
  "backup_name": "salesforce-backup-2025-06-04T16-16-35-660Z"
}

salesforce_time_machine

⏰ Salesforceデータのタイムトラベル - 異なるバックアップ時点間のデータ変更を分析し、ターゲットを絞った復旧を可能にします。

// Compare current state with a backup
{
  "backup_timestamp": "2025-06-04T16:16:35.660Z",
  "object_name": "Account"
}

// Show all changes since a specific backup
{
  "backup_timestamp": "2025-06-04T16:16:35.660Z",
  "show_all_changes": true
}

// Detailed analysis for specific records
{
  "backup_timestamp": "2025-06-04T16:16:35.660Z",
  "object_name": "Contact", 
  "record_id": "003XX000008b6cYAQ"
}

タイムマシンの機能:

  • 📊 データ比較 - バックアップと現在の状態の差分を表示

  • 🔍 変更履歴 - どのフィールドがいつ変更されたか

  • 🗑️ 削除されたレコード - バックアップ以降に削除されたレコードを検索

  • 📈 成長分析 - データ開発の統計的評価

  • 🎯 ターゲット復旧 - 変更の正確な特定

salesforce_auth

Salesforceで認証します。認証が必要かどうかを自動的に検出し、OAuthフローを処理します。

// Example: Standard authentication (detects if needed)
{}

// Example: Force re-authentication even if tokens appear valid
{
  "force": true
}

✨ 主な機能:

  • 自動検出: 認証が必要な場合、Claudeがこのツールを自動的に提案します

  • 手動設定不要: npm run setup を手動で実行する必要がありません

  • スマート認証: 必要な場合にのみ認証し、最初に既存のトークンを確認します

  • シームレスな統合: バックグラウンドで透過的に動作します

このツールは、以下の場合に自動的に提案されます:

  • 認証なしでSalesforceツールを使用しようとした場合

  • トークンの有効期限が切れた場合

  • 認証エラーが発生した場合

  • 初回セットアップが必要な場合

🧠 スマート学習システム

なぜ学習が重要なのか?

すべてのSalesforceインストールは、以下のようにユニークです:

  • 「TimeTracking__c」、「Project__c」、「CustomerCare__c」などのカスタムオブジェクト

  • 標準オブジェクト上のカスタムフィールド

  • 特定のワークフローと入力規則

  • 個別のデータ構造

AIの通常の学習モデルは、標準のSalesforceオブジェクトしか知りません。特定のインストールに関する知識がなければ、AIはインテリジェントな支援を提供できません。

学習はどのように機能するか?

  1. 一度限りの分析: salesforce_learn がインストール全体を分析します

  2. ローカルドキュメント: すべてのオブジェクト、フィールド、リレーションシップがローカルに保存されます

  3. インテリジェントなサポート: Claudeは正確な提案を行い、複雑な質問に回答できるようになります

ワークフロー例:

You: "Are there any time tracking entries for July 2025?"

Without Learning:
❌ Claude: "I don't know any object called 'TimeTracking'"

With Learning:
✅ Claude: "I'm checking the 'TimeTracking__c' object for entries from July 2025..."
   Automatically executes the correct SOQL query

いつ学習を使用すべきか?

  • 初期セットアップ時 - インストール後に一度

  • 大幅な変更後 - 新しいカスタムオブジェクトが追加されたとき

  • 問題が発生したとき - Claudeがオブジェクトやフィールドを見つけられないとき

何が学習されるか?

  • すべてのSObject (標準およびカスタム)

  • すべてのフィールド (データ型と権限を含む)

  • オブジェクト間のリレーションシップ

  • 選択リスト値と入力規則

  • 必須フィールド (より良い検証のため)

💡 学習は一度だけ実行され、その後のすべての対話がはるかにインテリジェントになります!

💡 使用例

🚀 インストール後の最初の手順

  1. 認証: Claudeが認証が必要なタイミングを自動的に検出します

  2. 学習を開始:

    You: "Learn my Salesforce installation"
    Claude: Automatically uses the salesforce_learn tool
  3. インストールを探索:

    You: "Show me an overview of my Salesforce installation"
    Claude: Uses salesforce_installation_info for a summary

🔍 学習済みインストールによるインテリジェントなクエリ

You: "Show me all projects from this year"
Claude: Automatically recognizes your "Project__c" Custom Object and creates:
SELECT Id, Name, StartDate__c, Status__c FROM Project__c WHERE CALENDAR_YEAR(CreatedDate) = 2025
You: "Are there any time tracking entries for July 2025?"
Claude: Finds your "TimeTracking__c" object and queries:
SELECT Id, Name, Month__c, Hours__c FROM TimeTracking__c WHERE Month__c = 'July 2025'

クエリ例

-- Get all accounts in the technology industry
SELECT Id, Name, Industry, Website FROM Account WHERE Industry = 'Technology'

-- Find contacts created this week
SELECT Id, Name, Email, CreatedDate FROM Contact WHERE CreatedDate = THIS_WEEK

-- Get opportunities closing this quarter
SELECT Id, Name, Amount, CloseDate FROM Opportunity WHERE CloseDate = THIS_QUARTER

カスタムオブジェクトの操作

サーバーはカスタムオブジェクトを自動的に検出します:

// Describe a custom object
{
  "sobject": "CustomProject__c"
}

// Query custom object
{
  "query": "SELECT Id, Name, CustomField__c FROM CustomProject__c LIMIT 10"
}

// Create custom object record
{
  "sobject": "CustomProject__c",
  "data": {
    "Name": "New Project",
    "CustomField__c": "Custom Value"
  }
}

💾 バックアップとタイムマシン機能

🚀 Salesforceバックアップシステム

MCP Salesforce Serverは、Salesforceのインストール全体を保護できるプロフェッショナルなバックアップシステムを提供します:

バックアップシステムの特別な点

  • 🎯 完全なカバレッジ: 3つのSalesforceファイルシステムすべてをバックアップ

    • 最新のファイル (ContentDocument/ContentVersion)

    • **レ

Available Tools

14 tools
salesforce_authA

Authenticate with Salesforce. Automatically detects if authentication is needed and handles OAuth flow. Call this tool if any Salesforce operations fail due to authentication issues.

Inputs: force.

salesforce_backupA

Start comprehensive backups of Salesforce data including all file attachments. Runs asynchronously in background - returns immediately with job ID. Check progress with salesforce_backup_status.

Inputs: backup_type, include_files, include_attachments, include_documents, +4 more.

salesforce_backup_listB

List all available Salesforce backups with their details including timestamp, duration, file counts, and sizes

Inputs: no named parameters.

salesforce_backup_statusA

Check the status of Salesforce backup jobs. Monitor running, completed, or failed backup operations. Use without parameters to see all jobs, or specify a job_id to get detailed status of a specific backup job.

Inputs: job_id.

salesforce_createC

Create a new record in any Salesforce object. Automatically handles required fields validation.

Inputs: sobject (required), data (required).

salesforce_deleteA

Delete a record from any Salesforce object. This action is permanent and cannot be undone.

Inputs: sobject (required), id (required).

salesforce_describeA

Get detailed schema information for any Salesforce object, including all fields, data types, and permissions.

Inputs: sobject.

salesforce_installation_infoA

Returns comprehensive information about the learned Salesforce installation, including all object details, field specifications, relationships, permissions, and customizations from the learned installation data.

Inputs: object_name, field_search, show_custom_only, include_relationships, +3 more.

salesforce_learnA

Analyzes the complete Salesforce installation and creates local documentation of all objects, fields, and customizations. This should be run once after initial setup to enable intelligent assistance.

Inputs: force_refresh, include_unused, detailed_relationships.

salesforce_learn_contextA

Learn and store personal/business context about the user and their Salesforce data model relationships. This helps provide better context-aware assistance across sessions. PROACTIVELY CAPTURE AHA MOMENTS: Whenever you discover something important about the user's workflow, business processes, preferences, challenges, or breakthrough insights during conversations, automatically use store_learning to preserve this knowledge. Look for moments when the user reveals key information, expresses frustration, shares successful strategies, or has realizations - these are valuable learnings that should be stored immediately.

Inputs: action (required), question_id, answer, context_type, +10 more.

salesforce_queryB

Execute SOQL queries against any Salesforce object. Supports SELECT, WHERE, ORDER BY, LIMIT, and other SOQL features.

Inputs: query (required).

salesforce_setupC

Configure Salesforce credentials (Client ID, Client Secret, Instance URL)

Inputs: clientId (required), clientSecret (required), instanceUrl (required).

salesforce_time_machine_queryB

Query historical Salesforce data from backups using Time Machine functionality. Supports point-in-time queries, comparisons, and record history tracking.

Inputs: operation (required), targetDate, startDate, endDate, +4 more.

salesforce_updateC

Update an existing record in any Salesforce object. Requires the record ID and field values to update.

Inputs: sobject (required), id (required), data (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 14 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some overlap between salesforce_describe and salesforce_installation_info, both providing schema details, which could cause confusion. Additionally, salesforce_learn and salesforce_learn_context both involve learning aspects, though their focuses differ slightly (installation vs. personal context).

    Naming Consistency5/5

    All tool names follow a consistent snake_case pattern with a 'salesforce_' prefix, and they use clear verbs (e.g., create, delete, query) paired with nouns or actions. This predictability makes the set easy to navigate and understand.

    Tool Count5/5

    With 14 tools, the server is well-scoped for managing Salesforce operations, covering authentication, CRUD, querying, backups, and setup. Each tool serves a specific function without unnecessary bloat, fitting the domain's complexity appropriately.

    Completeness5/5

    The tool set provides comprehensive coverage for Salesforce interactions, including full CRUD operations (create, query, update, delete), schema exploration (describe, installation_info), backup management, authentication, setup, and advanced features like time machine queries. No significant gaps are apparent for the intended domain.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to securely interact with Salesforce CRM data through SOQL queries, CRUD operations, and metadata exploration. Supports connecting to Salesforce objects like Accounts, Contacts, and Opportunities via OAuth 2.0 authentication.
      8
      2
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with Salesforce CRM by executing SOQL queries and performing CRUD operations on records such as Leads. It supports secure OAuth 2.0 authentication and provides management for both standard and custom Salesforce fields.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables interaction with Salesforce orgs to perform operations like querying data with SOQL, managing records, and executing Apex code. It provides configurable access levels and support for both standard and Tooling APIs via natural language interfaces.
      11
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Provides AI agents with secure access to Salesforce data and operations, enabling natural language interaction with CRM for sales, marketing, and executive teams.
      6
      5
      MIT

    Appeared in Searches