salesforce-mcp-server
Salesforce MCP Server
A Model Context Protocol server implementation for interacting with Salesforce through its REST API using jsforce.
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:
describe-object
Get metadata about a Salesforce object:
create
Create a new record:
update
Update an existing record:
delete
Delete a record:
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.
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:
describe-object
Get metadata about a Salesforce object:
create
Create a new record:
update
Update an existing record:
delete
Delete a record:
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
A Model Context Protocol server implementation for interacting with Salesforce through its REST API.