شعار MCP Force

MCP Force

مؤسسة
RapidoCloud

An MCP server to expose Salesforce APIs as tools for AI Agents

الناشرRapidoCloud
المستودعmcp-force
اللغةTypeScript
التفريعات
4
النجوم
19
الأدوات المتاحة
78
نوع نقل البياناتstdio
الفئات
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح MCP Force إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 78

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 19، والنسخ المتفرعة: 4 في المستودع المرتبط.

MCP Force : an MCP server to expose Salesforce APIs as tools for AI Agents

This program provides an MCP (Model Context Protocol) server that exposes Salesforce APIs as tools for use in AI agents. It enables AI assistants like Claude Desktop and VS Code to interact with your Salesforce organization through natural language.

Currently, the following APIs are covered :

  • Salesforce Platform APIs : REST API, Bulk v2 API, GraphQL API, Tooling API, Auth API

EXPERIMENTAL

This package is experimental.

Please use it ONLY in a sandbox, a developer org or a scratch org. NEVER use this in production : you have been warned.

The APIs provided by MCP Force are defined in the @rapidocloud/mcp-tools package on NPMjs.org. All Salesforce APIs will be connected, depending on user requests : open an issue to ask for more.

Finally, user authentication is manual, for the time being : set an OAuth2 access token in the .env file. This will be improved very soon.

Features

  • Connect to Salesforce organizations
  • Query and manipulate Salesforce data
  • Execute SOQL queries
  • Manage Salesforce records
  • Integration with VS Code and Claude Desktop

Setup

1. Environment Configuration

Create a .env file in your project directory with your Salesforce credentials:

env
SALESFORCE_ENDPOINT='https://mydomain-dev-ed.developer.my.salesforce.com'

# run this command :
# sf org login web --instance-url ${SALESFORCE_ENDPOINT} --json
SALESFORCE_ACCESS_TOKEN='<your_access_token_here>'

# Set your port : 3001 by default
PORT=3021

3. Command Line Usage

Display the help menu with available commands and options

bash
npx @rapidocloud/mcp-force@1.0.0-dev.5 --help

List all the Salesforce API endpoints currently known to MCP Force

bash
npx @rapidocloud/mcp-force@1.0.0-dev.5  list-tools

Run a specific version of MCP Force

bash
npx @rapidocloud/mcp-force@1.0.0-dev.5

Run the MCP server in default mode with all APIs selected

bash
npx @rapidocloud/mcp-force run-server

Run the MCP server only with specified APIs to reduce the number of tools loaded

bash
npx @rapidocloud/mcp-force run-server --selectedAPIs 'rest,tooling'

Run the MCP server with all APIs except for specified ones

bash
npx @rapidocloud/mcp-force run-server --barredAPIs 'bulk'

Run the MCP server with all API endpoints except for specified tool names

bash
npx @rapidocloud/mcp-force run-server --barredToolNames 'run_tests_sync, tooling_run_tests_async'

Run the MCP server with a specific version of MCP Tools, selected APIs and barred APIs

bash
npm install -g @rapidocloud/mcptools@1.0.0-dev.9 1>&2 && npx @rapidocloud/mcp-force@1.0.0-dev.5 run-server --selectedAPIs 'rest, tooling, metadata' --barredAPIs 'auth, bulk, graphql'

To use this in your MCP server configuration :

json
{
  "servers": {
    "mcpforce": {
      "command": "bash",
      "args": ["-c", "npm install -g @rapidocloud/mcp-tools@1.0.0-dev.9 1>&2 && npx @rapidocloud/mcp-force@1.0.0-dev.5 run-server --selectedAPIs 'rest, tooling, metadata' --barredAPIs 'auth, bulk, graphql'"],
      "env": {
        "SALESFORCE_ENDPOINT": "https://mydomain-dev-ed.developer.my.salesforce.com",
        "SALESFORCE_ACCESS_TOKEN": "<your_access_token_here>",
        "PORT": "3021"
      }
    }
  }
}

4. VS Code Configuration

Create or update .vscode/mcp.json to configure the MCP server:

json
{
  "servers": {
    "mcp-force": {
      "command": "npx",
      "args": ["-y", "@rapidocloud/mcp-force"],
      "env": {
        "SALESFORCE_ENDPOINT": "https://mydomain-dev-ed.developer.my.salesforce.com",
        "SALESFORCE_ACCESS_TOKEN": "<your_access_token_here>",
        "PORT": "3021"
      }
    }
  }
}

5. Claude Desktop Configuration

Add the MCP server to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

json
{
  "mcpServers": {
    "mcp-force": {
      "command": "npx",
      "args": ["-y", "@rapidocloud/mcp-force"],
      "env": {
        "SALESFORCE_ENDPOINT": "https://mydomain-dev-ed.developer.my.salesforce.com",
        "SALESFORCE_ACCESS_TOKEN": "<your_access_token_here>",
        "PORT": "3021"
      }
    }
  }
}

Installation

No installation required! The MCP server will be automatically downloaded and run using npx when configured in your MCP client.

For development or testing, you can also run it directly:

bash
npx @rapidocloud/mcp-force list-tools
npx @rapidocloud/mcp-force run-server

Usage Examples

VS Code Agent Mode

In VS Code with the MCP extension and Agent mode enabled:

  1. Open the Command Palette (Cmd/Ctrl + Shift + P)
  2. Select "MCP: Start Agent Session"
  3. Ask the agent:
Sum the amount of all open Salesforce opportunities

The agent will:

  • Connect to your Salesforce org
  • Query for open opportunities using SOQL
  • Calculate the total amount
  • Provide you with the sum and breakdown

Claude Desktop Agent Mode

In Claude Desktop with the MCP server configured:

  1. Start a new conversation
  2. Ask Claude:
Sum the total amount of all open Salesforce opportunities?
Connect to my Salesforce org and run a query to get this information.

Claude will:

  • Use the MCP tools to connect to Salesforce
  • Execute a SOQL query like: SELECT Amount FROM Opportunity WHERE IsClosed = false AND Amount != null
  • Sum the amounts and provide a detailed report

Example response:

I've connected to your Salesforce org and found the following open opportunities:

Total Open Opportunity Amount: $2,450,000

Breakdown:
- 15 opportunities with amounts ranging from $25,000 to $500,000
- Average deal size: $163,333
- Largest opportunity: $500,000
- Smallest opportunity: $25,000

Troubleshooting

  • Ensure your Salesforce credentials are correct in the environment variables
  • Verify that your security token is up to date
  • Check that the MCP server is properly configured in your client application
  • Review the console logs for connection errors
  • Make sure you have Node.js 22+ installed for npx to work properly

Requirements

  • Node.js 22+
  • Valid Salesforce credentials
  • VS Code with MCP extension (for VS Code usage)
  • Claude Desktop (for Claude Desktop usage)

التثبيت

TypingMind
{
  "mcpServers": {
    "mcp-force": {
      "command": "npx",
      "args": [
        "-y",
        "@rapidocloud/mcp-force"
      ],
      "env": {
        "SALESFORCE_ENDPOINT": "<SALESFORCE_ENDPOINT>",
        "SALESFORCE_ACCESS_TOKEN": "<SALESFORCE_ACCESS_TOKEN>"
      }
    }
  }
}

الأدوات المتاحة

  • tooling_search

    Perform a tooling search in Salesforce.

  • run_tests_sync

    Run tests synchronously in Salesforce Tooling API.

  • tooling_run_tests_async

    Run asynchronous tests in Salesforce Tooling API.

  • tooling_query

    Executes a query against an object using the Salesforce Tooling API.

  • execute_anonymous_apex

    Execute Apex code anonymously on Salesforce.

  • tooling_completion

    Retrieve available code completions for Apex system method symbols.

  • create_tooling_sobject

    Create a new Tooling SObject in Salesforce.

  • get_tooling_metadata_sobject

    Get tooling metadata for a specific Salesforce SObject.

  • get_tooling_describe

    Lists the available Tooling API objects and their metadata.

  • get_tooling_describe_sobject

    Get the tooling describe of a Salesforce SObject.

  • access_records

    Access records from Salesforce.

  • query_salesforce_records

    Query Salesforce records using SOQL (Salesforce Object Query Language).

  • sobject_user_password

    Set, reset, or get information about a user password in Salesforce.

  • get_sobject_suggested_articles

    Retrieve suggested Salesforce Knowledge articles for a specified SObject.

  • manage_self_service_user_password

    Set, reset, or get information about a user password in Salesforce.

  • access_sobject_rows

    Access Salesforce records based on the specified object ID.

  • delete_sobject_row

    Delete a record from a specified Salesforce SObject.

  • sobject_rows_by_external_id

    Creates or updates records in Salesforce based on external ID.

  • retrieve_rich_text_image

    Retrieve image data from a rich text area field in a Salesforce record.

  • access_sobject_relationships

    Access SObject relationships in Salesforce.

  • get_sobject_quick_actions

    Retrieve quick actions for a specific Salesforce SObject.

  • get_platform_action

    Retrieve the PlatformAction SObject from Salesforce.

  • get_sobject_named_layouts

    Retrieve information about alternate named layouts for a given Salesforce object.

  • sobject_get_updated

    Retrieve updated records for a specified Salesforce SObject.

  • sobject_get_deleted

    Retrieve deleted records for a specified Salesforce SObject.

  • sobject_describe

    Describe the metadata for a specified Salesforce SObject.

  • create_sobject

    Create a new SObject in Salesforce.

  • get_sobject_compact_layouts

    Retrieve compact layouts for a specific Salesforce object.

  • retrieve_blob_field

    Retrieve a specified blob field from an individual Salesforce record.

  • get_sobject_info

    Retrieve basic information about a specified Salesforce SObject.

  • get_approval_layouts

    Retrieve approval layouts for a specified Salesforce object.

  • download_file

    Download a file from Salesforce.

  • describe_sobject_layouts

    Describe SObject layouts in Salesforce.

  • describe_sobject_layouts_per_record_type

    Describe SObject layouts per record type in Salesforce.

  • describe_global

    Lists the available objects and their metadata for your organization’s data.

  • describe_global_layouts

    Returns a list of layouts and descriptions for global objects.

  • get_compact_layouts

    Retrieve compact layouts for specified Salesforce objects.

  • obtain_web_server_flow_access_token

    Obtain an access token from Salesforce using the Web Server Flow.

  • initiate_oauth_flow

    Initiate the OAuth 2.0 Web Server Flow for Salesforce.

  • username_password_flow

    Authenticate using the Username Password Flow for Salesforce.

  • get_user_info

    Retrieve user information from Salesforce.

  • user_agent_flow

    Perform the User Agent Flow for Salesforce OAuth2 authentication.

  • soap_login

    Perform a SOAP login to Salesforce.

  • retrieve_salesforce_keys

    Retrieve Salesforce keys.

  • revoke_token

    Revoke an access token from Salesforce.

  • refresh_token

    Refresh the access token for Salesforce API.

  • introspect_token

    Introspects an OpenID Connect token with Salesforce.

  • register_client

    Register a new client using OpenID Connect Dynamic Client Registration Endpoint.

  • get_openid_discovery

    Retrieve the OpenID Connect Discovery Endpoint from Salesforce.

  • jwt_bearer_token_flow

    Obtain a JWT Bearer Token from Salesforce.

  • get_id_token

    Retrieve the ID token from Salesforce.

  • obtain_device_flow_access_token

    Obtain an access token using Device Flow for Salesforce.

  • device_flow

    Initiate the device flow for Salesforce OAuth2 authentication.

  • client_credentials_flow

    Obtain an access token using the Client Credentials Flow.

  • get_salesforce_access_token

    Obtain an access token using the Client Credentials Flow for Salesforce.

  • get_auth_configuration

    Fetch the authentication configuration from Salesforce.

  • asset_token_flow

    Perform an Asset Token Flow to obtain a new access token from Salesforce.

  • refresh_sandbox

    Refresh a sandbox in Salesforce.

  • list_sandboxes

    List all sandboxes in Salesforce.

  • get_sandbox

    Retrieve a sandbox record from Salesforce.

  • get_sandbox_status

    Get the status of a Salesforce sandbox.

  • delete_sandbox

    Delete a sandbox in Salesforce.

  • create_clone_sandbox

    Create or clone a sandbox in Salesforce.

  • fetch_opportunities_not_closed

    Fetch opportunities that are not closed from Salesforce.

  • fetch_opportunities

    Fetch early stage opportunities from Salesforce.

  • opportunities_closing_soon

    Fetch opportunities that are closing soon from Salesforce.

  • opportunities_closing_soon__with_explicit_and

    Query opportunities closing soon in Salesforce.

  • fetch_contacts

    Fetch contacts from Salesforce using GraphQL.

  • fetch_contacts_with_account_names

    Fetch contacts along with their account names from Salesforce.

  • fetch_ordered_contacts

    Fetch ordered contacts from Salesforce using GraphQL.

  • query_accounts

    Query accounts from Salesforce using GraphQL.

  • accounts_with_filter

    Query accounts with a filter using Salesforce GraphQL API.

  • fetch_accounts_with_cursors

    Fetch accounts with pagination from Salesforce GraphQL API.

  • account_by_id

    Retrieve an account by its ID from Salesforce.

  • update_account

    Update an account in Salesforce.

  • delete_account

    Delete an account in Salesforce.

  • create_account

    Create an account in Salesforce.

  • introspection_query

    Perform an introspection query on Salesforce GraphQL API.

استخدم MCP الخاص بـ MCP Force مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل MCP Force، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يعمل تكامل MCP هذا محليًا عبر موصل MCP الخاص بـ TypingMind على جهازك.

دليل الإعداد لاستخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات MCP.
3

أضف MCP Force كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ MCP Force.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "mcp-force": {
      "command": "npx",
      "args": [
        "-y",
        "@rapidocloud/mcp-force"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ MCP Force، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ MCP Force.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام MCP Force لمساعدتي في هذه المهمة؟
MCP Force
بالتأكيد. قرأته.
إليك ما وجدته باستخدام MCP Force.

الأسئلة الشائعة

ما استخدامات خادم MCP MCP Force؟

MCP Force هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP MCP Force مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام MCP Force مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP MCP Force مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل MCP Force، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP MCP Force بـ TypingMind؟

يعمل MCP Force عبر موصل MCP المحلي في TypingMind. هذا هو الخيار الأنسب عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات سطح المكتب أو أدوات سطر الأوامر أو موارد خاصة على حاسوبك.

ما الأدوات التي يوفّرها خادم MCP MCP Force في TypingMind؟

يتيح MCP Force أدوات MCP بعدد 78، يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP MCP Force؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان MCP Force يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇