salesforce-mcp-server
A Model Context Protocol server implementation for interacting with Salesforce through its REST API.
kablewy
Tools
query
Execute a SOQL query on Salesforce
tooling-query
Execute a query against the Salesforce Tooling API
describe-object
Get detailed metadata about a Salesforce object
metadata-retrieve
Retrieve metadata components from Salesforce
README
Salesforce MCP Server
A Model Context Protocol server implementation for interacting with Salesforce through its REST API using jsforce.
Installing via Smithery
To install Salesforce Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install salesforce-mcp-server --client claude
Features
- Execute SOQL queries
- Retrieve object metadata
- Create, update, and delete records
- Secure authentication handling
- Real-time data access
Setup
- Clone the repository
- Copy
.env.example
to.env
and fill in your Salesforce credentials - Install dependencies:
npm install
- Build:
npm run build
- Start:
npm start
Usage
The server exposes several functions:
query
Execute SOQL queries against your Salesforce instance:
{
"name": "query",
"parameters": {
"query": "SELECT Id, Name FROM Account LIMIT 5"
}
}
describe-object
Get metadata about a Salesforce object:
{
"name": "describe-object",
"parameters": {
"objectName": "Account"
}
}
create
Create a new record:
{
"name": "create",
"parameters": {
"objectName": "Contact",
"data": {
"FirstName": "John",
"LastName": "Doe",
"Email": "john.doe@example.com"
}
}
}
update
Update an existing record:
{
"name": "update",
"parameters": {
"objectName": "Contact",
"data": {
"Id": "003XXXXXXXXXXXXXXX",
"Email": "new.email@example.com"
}
}
}
delete
Delete a record:
{
"name": "delete",
"parameters": {
"objectName": "Contact",
"id": "003XXXXXXXXXXXXXXX"
}
}
Security
Make sure to:
- Keep your
.env
file secure and never commit it - Use IP restrictions in Salesforce when possible
- Regularly rotate your security token
- Consider implementing additional authentication for the MCP server
Contributing
Contributions are welcome! Please submit PRs with improvements.
Salesforce MCP Server
A Model Context Protocol server implementation for interacting with Salesforce through its REST API using jsforce.
Installing via Smithery
To install Salesforce Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install salesforce-mcp-server --client claude
Features
- Execute SOQL queries
- Retrieve object metadata
- Create, update, and delete records
- Secure authentication handling
- Real-time data access
Setup
- Clone the repository
- Copy
.env.example
to.env
and fill in your Salesforce credentials - Install dependencies:
npm install
- Build:
npm run build
- Start:
npm start
Usage
The server exposes several functions:
query
Execute SOQL queries against your Salesforce instance:
{
"name": "query",
"parameters": {
"query": "SELECT Id, Name FROM Account LIMIT 5"
}
}
describe-object
Get metadata about a Salesforce object:
{
"name": "describe-object",
"parameters": {
"objectName": "Account"
}
}
create
Create a new record:
{
"name": "create",
"parameters": {
"objectName": "Contact",
"data": {
"FirstName": "John",
"LastName": "Doe",
"Email": "john.doe@example.com"
}
}
}
update
Update an existing record:
{
"name": "update",
"parameters": {
"objectName": "Contact",
"data": {
"Id": "003XXXXXXXXXXXXXXX",
"Email": "new.email@example.com"
}
}
}
delete
Delete a record:
{
"name": "delete",
"parameters": {
"objectName": "Contact",
"id": "003XXXXXXXXXXXXXXX"
}
}
Security
Make sure to:
- Keep your
.env
file secure and never commit it - Use IP restrictions in Salesforce when possible
- Regularly rotate your security token
- Consider implementing additional authentication for the MCP server
Contributing
Contributions are welcome! Please submit PRs with improvements.
License
MIT License
MIT License
Copyright (c) 2024 Kablewy,LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Recommended Servers
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Playwright MCP Server
Provides a server utilizing Model Context Protocol to enable human-like browser automation with Playwright, allowing control over browser actions such as navigation, element interaction, and scrolling.
Apple MCP Server
Enables interaction with Apple apps like Messages, Notes, and Contacts through the MCP protocol to send messages, search, and open app content using natural language.
contentful-mcp
Update, create, delete content, content-models and assets in your Contentful Space
serper-search-scrape-mcp-server
This Serper MCP Server supports search and webpage scraping, and all the most recent parameters introduced by the Serper API, like location.
The Verge News MCP Server
Provides tools to fetch and search news from The Verge's RSS feed, allowing users to get today's news, retrieve random articles from the past week, and search for specific keywords in recent Verge content.
MCP Server Trello
Facilitates interaction with Trello boards via the Trello API, offering features like rate limiting, type safety, input validation, and error handling for seamless management of cards, lists, and board activities.
MCP DuckDB Knowledge Graph Memory Server
A memory server for Claude that stores and retrieves knowledge graph data in DuckDB, enhancing performance and query capabilities for conversations with persistent user information.
dbt Semantic Layer MCP Server
A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.