Salesforce MCP Server
Salesforce MCP Server
A FastAPI-based MCP (Model Context Protocol) server for Salesforce Agentforce Registry (Beta).
Features
MCP Protocol Support: Implements initialize, tools/list, and tools/call endpoints
Streamable HTTP: Uses standard HTTP POST requests (not SSE)
Salesforce Integration: Provides tools for lead management and permission sets
Production Ready: Includes proper logging, error handling, and JSON responses
Tools Available
createLead: Create a new Salesforce Lead
Parameters:
first_name,last_name,email,company
assignPermissionSet: Assign a permission set to a user
Parameters:
username,permission_set_name
createPermissionSet: Create a new permission set
Parameters:
ps_name,ps_label
generateAgentForceRegistryURL: Generate URL for AgentForce registry
Parameters:
is_sandbox(optional, default false)
Setup
Install dependencies:
pip install -r requirements.txtConfigure environment variables in
.env:SALESFORCE_CLIENT_ID=your_client_id SALESFORCE_CLIENT_SECRET=your_client_secret SALESFORCE_USERNAME=your_username SALESFORCE_PASSWORD=your_password SALESFORCE_TOKEN_URL=https://login.salesforce.com/services/oauth2/tokenRun the server:
uvicorn main:app --host 0.0.0.0 --port 8000 --reload
API Endpoints
GET /: Health checkPOST /mcp: MCP protocol endpoint
MCP Protocol
The server strictly follows the MCP protocol with JSON responses containing:
id: Request IDtype: Response type ("result" or "error")result: Response data for successful operations
Logging
All incoming requests and operations are logged for debugging purposes.
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/virtuowhizsalesforce-tech/mcp-fixed'
If you have feedback or need assistance with the MCP directory API, please join our Discord server