Back to Home
Mohit-Harsh icon

AgentforceMCP

by Mohit-Harsh

Overview

Integrates Model Context Protocol (MCP) clients and REST API applications with Salesforce Agentforce Agents.

Installation

Run Command
npx -y @mohitharsh/agentforcemcp --username <your-username> --password <your-password> --securityToken <your-security-token> --agentName <agent-api-name>

Environment Variables

  • UNAME
  • PASSWORD
  • SECURITY_TOKEN
  • CLIENT_ID
  • CLIENT_SECRET
  • DOMAIN_URL

Security Notes

The `src/streamable-http-agent-api/server.py` implementation exposes sensitive Salesforce Connected App credentials (`clientId`, `clientSecret`, `domainUrl`) via HTTP headers, which is a critical security risk as these can be intercepted or easily discovered. The `src/streamable-http-oauth/server.py` contains a `CustomTokenVerifier` that bypasses proper JWT verification for incoming tokens, effectively accepting any token as long as it is present, which significantly weakens the authentication mechanism of the MCP server. Additionally, the `src/stdio/server.py` and `npm-package/server.py` implementations (when run via `npx`) pass Salesforce credentials (`username`, `password`, `securityToken`, `agentName`) directly as command-line arguments, posing a risk of exposure via process listings (`ps -ef`) or command history.

Similar Servers

Stats

Interest Score0
Security Score2
Cost ClassMedium
Avg Tokens4
Stars0
Forks0
Last Update2025-11-27

Tags

MCPREST APISalesforceAgentforceIntegration