salesforce-metadata-mcp
Provides tools for managing Salesforce metadata, objects, automation, security, Apex, LWC, Agentforce, and deployments.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@salesforce-metadata-mcpdescribe the Account object schema"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
salesforce-metadata-mcp
The only Salesforce MCP server that builds Agentforce agents, OmniStudio components, and DevOps Center pipelines — alongside a complete daily developer loop (schema describe, Apex read, debug logs) and 221 tools total for building, configuring, and automating Salesforce orgs directly from Claude or any MCP client.
Quick Start
npx -y salesforce-metadata-mcpOr install globally:
npm install -g salesforce-metadata-mcp
salesforce-metadata-mcpRelated MCP server: sf-mcp
Configuration (Claude Desktop / Claude Code)
Add to your MCP configuration (claude_desktop_config.json or .claude/settings.json):
{
"mcpServers": {
"salesforce": {
"command": "npx",
"args": ["salesforce-metadata-mcp"],
"env": {
"SF_INSTANCE_URL": "https://your-org.salesforce.com",
"SF_ACCESS_TOKEN": "your_access_token"
}
}
}
}See SETUP.md for all authentication methods and detailed setup instructions.
Tools — 221 total
Highlights below; see TOOLS.md for the complete reference with parameters and example prompts.
Objects & Fields
Tool | Description |
| Create a custom object with all settings |
| Create a field on any object (all types) |
| Create formula fields with full formula language support |
| Add values to existing picklist fields |
| Create a Custom Metadata Type (__mdt) |
| Create records for a Custom Metadata Type |
| Create or update Custom Labels |
| Create Hierarchy or List Custom Settings |
| Create shared picklist usable across objects |
| Create Record Types with picklist overrides |
| Create Business Processes for Opp/Lead/Case |
| Create Page Layouts with sections and fields |
| Create criteria or ownership sharing rules |
| Create controlling/dependent picklist dependency |
| Read an object's full schema — fields, types, picklist values, child relationships, record types |
Automation
Tool | Description |
| Create any Flow type — Assignment, Decision, GetRecords, CreateRecords (with field values), DeleteRecords, Loop |
| Create multi-step approval processes |
| Create data validation rules |
| Create workflow field update actions |
| Create workflow email alert actions |
| Create Platform Event objects |
| Create Lead/Case assignment rules |
| Create Case escalation rules |
| Create Web-to-Lead/Case auto-response rules |
| Create duplicate matching rules |
| Create duplicate detection rules |
| Create inbound Apex email services |
| Schedule an Apex class via cron |
Security & Access
Tool | Description |
| Create Permission Sets with all permissions |
| Create roles in the role hierarchy |
| Create queues with members and objects |
| Create Named Credentials for callouts |
| Audit current field-level security grants across Profiles and Permission Sets |
UI & Experience
Tool | Description |
| Create Lightning Apps with nav/utility bars |
| Create Custom Tabs for objects |
| Create Compact Layouts (highlights panel) |
| Create List Views with filters and columns |
| Create HTML/text email templates |
| Create Static Resources from text content |
| Create Custom Notification Types |
| Create Custom Report Types |
| Create Dashboards with components |
Apex Development
Tool | Description |
| Deploy any Apex class to the org |
| Deploy an Apex trigger on any object |
| Deploy test classes, optionally run tests |
| Run test classes and get pass/fail results |
| Execute anonymous Apex and see output |
| Read the source of an existing Apex class |
| Read the source of an existing Apex trigger |
| Turn on Apex debug logging for a user (TraceFlag) |
| List recent Apex debug logs |
| Read the full content of a debug log |
| Lightweight heuristic scan for SOQL/DML-in-loop, hardcoded IDs, debug statements |
| Multi-engine static analysis (PMD, SFGE SOQL-injection data-flow, RetireJS, ESLint) via Salesforce Code Analyzer |
LWC Development
Tool | Description |
| Deploy a full LWC with HTML, JS, CSS |
| Update an existing LWC component |
Experience Cloud
Tool | Description |
| Create Experience Cloud sites |
| Create pages within Experience sites |
Agentforce
Tool | Description |
| Create Agentforce Agent (Bot shell) |
| Create Agent Actions (GenAiFunction) linked to Flows/Apex |
| Create Agent Topics (GenAiPlugin) with actions wired in |
| Wire agent to its topics (GenAiPlanner) — required for routing |
External Integrations
Tool | Description |
| Create OAuth Connected Apps |
| Create External Data Sources for Connect |
| Create External Objects (__x) |
| Whitelist external URLs for callouts |
| Create CSP trusted sites for LWC |
Change Sets & Deployment
Tool | Description |
| Create Outbound Change Sets |
| Add components to a change set |
| Deploy metadata via Metadata API (supports |
| Check deployment job status |
| Retrieve metadata from the org |
MCP Server Management
Tool | Description |
| Generate a new MCP server project on disk |
| Add a new tool to an existing MCP server |
| List all tools in an MCP server project |
Example Prompts
Build a complete object:
"Create a custom object called Project__c with fields: Name (text), Status__c (picklist: Planning/Active/Complete), Budget__c (currency), then add a validation rule requiring Budget when Status is Active."
Deploy Apex:
"Create an Apex class called OpportunityService that queries all Opps with Amount > 100000. Then create a test class for it."
Create a flow:
"Create a record-triggered flow on Opportunity that fires after save when Stage = Closed Won. Send an email alert to the owner and create a follow-up Task due in 30 days."
Set up an LWC:
"Create a Lightning Web Component called accountSummary that displays account name, industry, and annual revenue. Make it available on Record Pages."
Agentforce setup:
"Create an Agentforce agent called SalesAssistant. Then create a GetOrders action linked to the Get_Account_Orders flow. Then create an OrderManagement topic with actions: [GetOrders]. Finally wire SalesAssistant to topic OrderManagement."
Environment Variables
Variable | Description | Required |
| Your org URL (e.g. https://org.salesforce.com) | Always |
| Connected App client ID | For OAuth |
| Connected App client secret | For OAuth |
| OAuth refresh token | For OAuth |
| Salesforce CLI org alias | For CLI |
| Static access token (expires ~1hr) | For static |
| HTTP server port (default: 3000) | For HTTP mode |
|
| Optional |
Documentation
SETUP.md — Prerequisites, authentication, Claude configuration
TOOLS.md — All 221 tools with full parameter documentation
AGENTFORCE.md — Agentforce agent creation guide
APEX_LWC.md — Apex and LWC development guide
CHANGELOG.md — Version history
Bugs & Feature Requests
Found a bug or want a new tool? Open an issue — there are templates for bug reports and feature requests. Please include the package version and the tool name, and remove any org URLs or credentials before posting.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables AI agents to interact with Salesforce organizations through natural language by exposing Salesforce APIs (REST, Bulk v2, GraphQL, Tooling, Auth) as MCP tools for querying data, managing records, and executing SOQL queries.Last updated618MIT
- Alicense-qualityAmaintenanceMCP server for Salesforce that exposes CLI, REST, Connect, Data 360, Bulk 2.0, and Einstein Models APIs as tools for any MCP-compatible client to manage orgs, data, and metadata.Last updatedApache 2.0
- Alicense-qualityDmaintenanceAn MCP server that provides comprehensive access to Salesforce Tooling API for metadata management, SOQL queries, code analysis, and debugging through Claude and other AI assistants.Last updated925MIT
- Alicense-qualityCmaintenanceEnables AI agents to interact with Salesforce through MCP, supporting queries, records, metadata, and bulk operations with flexible OAuth authentication.Last updatedMIT
Related MCP Connectors
100+ MCP tools for AI agents: content metadata, trade intelligence, business-expertise analysis.
Connect any two APIs and keep them in sync — 45 MCP tools with shadow previews and diagnostics.
34 production API tools over one hosted MCP endpoint.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/semwalajay83-sem/salesforce-metadata-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server