Cover image
Try Now
2025-03-14

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

mcp-server-salesforce MCP server

CI License: MIT Python Version

A Model Context Protocol server implementation for interacting with Salesforce

Components

Resources

The server implements resources in two categories:

  1. Notes storage system:

    • Custom note:// URI scheme for accessing individual notes
    • Each note resource has a name, description and text/plain mimetype
  2. Salesforce objects:

    • Custom salesforce:// URI scheme for accessing Salesforce objects and records
    • Each object resource has a name, description and application/json mimetype

Prompts

The server provides the following prompts:

  • summarize-notes: Creates summaries of all stored notes

    • Optional "style" argument to control detail level (brief/detailed)
    • Generates prompt combining all current notes with style preference
  • analyze-salesforce-data: Analyzes data from a Salesforce object

    • Required "object" argument to specify Salesforce object name (e.g., Account, Contact)
    • Optional "limit" argument to control maximum number of records (default: 10)
    • Retrieves and formats data for analysis

Tools

The server implements the following tools:

  1. Notes management:

    • add-note: Adds a new note to the server
      • Takes "name" and "content" as required string arguments
      • Updates server state and notifies clients of resource changes
  2. Salesforce interactions:

    • salesforce-query: Execute a SOQL query against Salesforce

      • Takes "query" as a required string argument (valid SOQL query)
      • Returns query results as JSON
    • salesforce-create: Create a new record in Salesforce

      • Takes "object" (e.g., "Account") and "data" (field values) as required arguments
      • Returns the ID of the created record
    • salesforce-update: Update an existing Salesforce record

      • Takes "object", "id", and "data" as required arguments
      • Updates the specified record with new field values
    • salesforce-delete: Delete a Salesforce record

      • Takes "object" and "id" as required arguments
      • Deletes the specified record

Configuration

To use the Salesforce functionality, you need to set up authentication credentials. The server supports environment variables or a .env file in the project root.

Required environment variables:

  • SALESFORCE_USERNAME: Your Salesforce username (usually email)
  • SALESFORCE_PASSWORD: Your Salesforce password
  • SALESFORCE_SECURITY_TOKEN: Your Salesforce security token
  • SALESFORCE_DOMAIN: (Optional) Salesforce login domain (default: "login")

Quickstart

Install

Claude Desktop

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

Development/Unpublished Servers Configuration ``` "mcpServers": { "mcp-server-salesforce": { "command": "uv", "args": [ "--directory", "/path/to/mcp-server-salesforce", "run", "mcp-server-salesforce" ] } } ```
Published Servers Configuration ``` "mcpServers": { "mcp-server-salesforce": { "command": "uvx", "args": [ "mcp-server-salesforce" ] } } ```

Development

Building and Publishing

The project uses GitHub Actions for CI/CD:

  • CI Pipeline: Automatically runs tests, type checking, and linting on every push and pull request
  • CD Pipeline: Automatically builds and publishes to PyPI when a new version tag is pushed

To prepare a release:

  1. Update the version in pyproject.toml
  2. Create and push a tag:
git tag v0.0.x
git push origin v0.0.x

This will trigger the automatic release process.

For manual builds:

  1. Sync dependencies and update lockfile:
uv sync
  1. Build package distributions:
uv build

This will create source and wheel distributions in the dist/ directory.

  1. Publish to PyPI:
uv publish

Note: You'll need to set PyPI credentials via environment variables or command flags:

  • Token: --token or UV_PUBLISH_TOKEN
  • Or username/password: --username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORD

Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.

You can launch the MCP Inspector via npm with this command:

npx @modelcontextprotocol/inspector uv --directory /path/to/mcp-server-salesforce run mcp-server-salesforce

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

    Reviews

    5 (1)
    Avatar
    user_Pc3PiLfd
    2025-04-15

    As a dedicated MCP app user, I absolutely love TaiwanWeatherWithMCPServer! Created by AJI0417, this server provides reliable and accurate weather updates. It's highly efficient, easy to integrate, and perfect for anyone needing up-to-date weather information in Taiwan. Highly recommend!