Agentforce MCP Integration Server
Offers RESTful API endpoints for programmatically invoking LLM/API functionality, making it easy to integrate into existing systems or applications using simple HTTP requests.
Provides integration with Salesforce through the Agentforce backend, enabling communication with Salesforce systems and Agentforce agents via both MCP protocol and REST API endpoints.
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., "@Agentforce MCP Integration Serverconnect me to the salesforce agent and ask about recent customer cases"
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.
🧩 Agentforce MCP Integration Server
This repository provides a unified solution for integrating Model Context Protocol (MCP) clients and REST API applications with LLM using the Python SDK.
It includes two core components:
MCP Server – Enables any MCP-compatible client to communicate directly with an LLM/API.
FastAPI Server – Offers RESTful API endpoints for invoking the LLM/API programmatically.
Both servers are built to ensure seamless connectivity, secure authentication, and consistent performance across integration channels.
📘 Overview
The repository implements two key servers designed for different modes of communication:
MCP Server Enables MCP clients to connect to LLM/API using the standardized Model Context Protocol. This allows real-time interaction and dynamic tool access through supported MCP clients and inspectors.
FastAPI Server Provides RESTful access to LLM/API, making it easy to integrate into existing systems or applications using simple HTTP requests.
Both implementations utilize the Agentforce Python SDK to communicate with Salesforce and the Agentforce backend, ensuring reliability and consistency.
⚙️ Setup Instructions
1. Repository Setup
Clone the repository and configure the required environment variables:
git clone hhttps://github.com/rajpatidar35/custommcp
cd custommcp⚠️ Note: Ensure these credentials correspond to a valid CRED to access LLM/API.
2. Dependency Installation
Install all required Python dependencies using:
pip install -r requirements.txtThis will install all necessary libraries for both MCP and FastAPI servers, including the Agentforce Python SDK.
🚀 Running the Servers
🧠 Start MCP Server
To start the MCP server (used for MCP clients and inspectors):
python ./src/serverllm.pyThe MCP server will initialize and listen for incoming MCP client connections.
🌐 Start FastAPI Server
To run the FastAPI server for REST API access:
fastapi dev ./src/serverllm.pyThis launches a development instance of the FastAPI application, exposing REST endpoints that interact with Agentforce Agents.
🔍 Inspector Server (Optional)
To test and debug the MCP server using the MCP Inspector tool:
Start the Inspector server:
npx @modelcontextprotocol/inspectorOpen the Inspector web interface (default port:
http://localhost:5173or as shown in the console).Connect to your running MCP server using the host URL:
https://localhost:8000/mcpNavigate to the Tools tab to explore and test the available MCP tools.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/SanthoshSantoMCP/MCPNewTest'
If you have feedback or need assistance with the MCP directory API, please join our Discord server