salesforce-claude-mcp

salesforce-claude-mcp

3.3

If you are the rightful owner of salesforce-claude-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This project sets up an MCP server to interact with Salesforce using FastMCP, integrating basic weather tools and providing tools for Salesforce interaction.

The real-mcp-server.py project establishes a Model Context Protocol (MCP) server designed to facilitate seamless interaction with Salesforce through the FastMCP library. This server is equipped to handle various Salesforce operations such as querying, creating, and updating records, while also ensuring secure management of environment variables via .env files. The server is built on a foundation of essential Python libraries including httpx, requests, python-dotenv, simple-salesforce, and fastmcp, which collectively enable robust asynchronous and synchronous HTTP requests, environment variable management, and Salesforce API interactions. Users are required to have a Salesforce Developer Account and specific API credentials to authenticate and connect to their Salesforce instance. The server can be run in development mode for testing and debugging, or installed for production use, and it supports integration with MCP clients like Claude Desktop. Additionally, the server offers tools and resources for Salesforce operations, making it a versatile solution for developers looking to integrate Salesforce functionalities into their applications.

Features

  • Integration with Salesforce using FastMCP.
  • Secure management of environment variables via .env files.
  • Support for querying, creating, and updating Salesforce records.
  • Development and production modes for flexible deployment.
  • Compatibility with MCP clients like Claude Desktop.

Tools

  1. salesforce_query

    Run SOQL queries on Salesforce.

  2. salesforce_create

    Insert a new record into Salesforce and return its ID.

  3. salesforce_update

    Update an existing record in Salesforce.