Enables querying, modifying, and managing Salesforce objects and records. Provides tools for searching objects, retrieving schema information, executing complex data queries, exploring relationships between objects, accessing picklist values, filtering field types, retrieving validation rules, and managing debug logs.
SF MCP Server
An MCP (Model Context Protocol) server implementation that integrates Claude/VS Code with Salesforce, enabling natural language interactions with your Salesforce data and metadata. This server allows Claude to query, modify, and manage your Salesforce objects and records using everyday language.
Features
- Smart Object Search: Find Salesforce objects using partial name matches
- Detailed Schema Information: Get comprehensive field and relationship details for any object
- Flexible Data Queries: Query records with relationship support and complex filters
- Picklist Value Retrieval: Get all values for any picklist field
- Field Type Filtering: Find fields of specific types across objects
- Relationship Exploration: Analyze parent-child relationships between objects
- Enhanced API Metadata: Access complete object metadata through direct API calls
- Debug Log Management: Configure and retrieve debug logs for Salesforce users
- Validation Rules Management: Get details about validation rules on objects
Installation
From PyPI
From Source
Prerequisites
You will need Salesforce OAuth2 credentials:
- For OAuth 2.0 Client Credentials Flow: Client ID, Client Secret, and Instance URL
Environment Variables
Set the following environment variables:
Usage
Running the Server
Usage with VS Code
Add the following to your VS Code User Settings (JSON) or .vscode/mcp.json
:
Usage with Claude Desktop
Add the following to your claude_desktop_config.json
:
Tools
Tool Name | Description | Parameters |
---|---|---|
search_objects | Search for standard and custom objects by partial name matches | query : The search string for object names |
describe_object | Get detailed schema information for a Salesforce object | objectName : The API name of the object |
describe_object_with_api | Get extended object metadata using direct REST API calls | objectName : The API name of the object, raw : (Optional) Return raw JSON |
describe_relationship_fields | Explore parent-child relationships between objects | objectName : The API name of the object |
query_records | Query records with support for relationships and filters | object : Object to query, fields : Fields to return, where : (Optional) WHERE conditions, limit : (Optional) Number of records to return |
get_fields_by_type | Find fields of specific data types in an object | objectName : The API name of the object, fieldType : Data type to filter by |
get_picklist_values | Retrieve all values for a picklist field | objectName : The API name of the object, fieldName : The picklist field name |
get_validation_rules | Get details about validation rules on an object | objectName : The API name of the object |
manage_debug_logs | Configure and retrieve debug logs for users | action : Action to perform (enable, disable, retrieve), userId : User ID, logLevel : (Optional) Debug log level |
Development
Project Structure
Building and Publishing
- Build the package:
- Upload to PyPI:
Adding New Tools
- Create a new Python file in the
tools
directory - Implement your function with proper docstrings and error handling
- Import and register the function in the MCP server
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Issues and Support
If you encounter any issues or need support, please file an issue on the GitHub repository.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
An MCP server implementation that integrates Claude/VS Code with Salesforce, enabling natural language interactions with your Salesforce data and metadata.
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server implementation that integrates Claude with Salesforce, enabling natural language interactions with Salesforce data and metadata for querying, modifying, and managing objects and records.Last updated -71,06982TypeScriptMIT License
- AsecurityAlicenseAqualityAn MCP server implementation that integrates Claude with Salesforce, enabling natural language interactions with Salesforce data and metadata for querying, modifying, and managing objects and records.Last updated -764913TypeScriptMIT License
- AsecurityAlicenseAqualityAn MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.Last updated -15243PythonMIT License
- AsecurityAlicenseAqualityAn MCP server implementation that integrates Claude with Salesforce, enabling natural language interactions with Salesforce data and metadata.Last updated -8649TypeScriptMIT License