Runlayer Deploy Required: This server requires Runlayer Deploy to be enabled.
Available Tools
| Tool | Description |
|---|---|
query | Execute SOQL queries against Salesforce |
search | Search across objects using SOSL |
list_objects | List all available sObjects in the org |
describe_object | Get field details, relationships, and metadata for an sObject |
get_record | Retrieve a single record by ID with optional field selection |
create_record | Create a new record on any sObject |
update_record | Update fields on an existing record |
delete_record | Delete a record (moves to Recycle Bin) |
get_limits | View org governor limits and usage |
Setup
Create a Connected App in Salesforce
- In Salesforce Setup, go to App Manager (or External Client App Manager)
- Click New Connected App (or New External Client App)
- Fill in:
- Connected App Name:
Runlayer MCP - Contact Email: your email
- Connected App Name:
- Under OAuth Settings:
- Enable OAuth Settings: checked
- Callback URL:
https://<your-tenant>.runlayer.com/oauth/callback - Selected OAuth Scopes:
Full access (full)andPerform requests at any time (refresh_token, offline_access)
- Click Save
It may take up to 10 minutes for the Connected App to propagate in Salesforce.
Get Credentials
- After saving, go to the Connected App’s detail page
- Copy the Consumer Key (Client ID) and Consumer Secret (Client Secret)
Add Server in Runlayer
- In Runlayer, go to Catalog > Salesforce > Install MCP
- Check Custom OAuth credentials
- Enter your Client ID and Client Secret
- If connecting to a sandbox org, set Login URL to
https://test.salesforce.com - Click Deploy Server
Configuration Reference
Required:| Variable | Description |
|---|---|
SALESFORCE_OAUTH_CLIENT_ID | Consumer Key from Connected App |
SALESFORCE_OAUTH_CLIENT_SECRET | Consumer Secret from Connected App |
| Variable | Description |
|---|---|
SALESFORCE_LOGIN_URL | Login endpoint (defaults to https://login.salesforce.com, use https://test.salesforce.com for sandboxes) |
Troubleshooting
Redirect URI mismatch
Redirect URI mismatch
Verify the callback URL in your Connected App matches exactly:
https://<your-tenant>.runlayer.com/oauth/callback (no trailing slash for Salesforce).Cross-org OAuth error
Cross-org OAuth error
The Connected App must be created in the same org you are authenticating against. External Client Apps do not support cross-org OAuth flows.
Connected App not found after creation
Connected App not found after creation
Salesforce Connected Apps can take up to 10 minutes to propagate. Wait and retry the authorization.
INVALID_SESSION_ID errors
INVALID_SESSION_ID errors
Your Salesforce access token has expired (tokens last ~2 hours). Reconnect in Runlayer to get a fresh token. If you have
refresh_token scope enabled, this should happen automatically.