๐Ÿงฉ 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:

  1. MCP Server โ€“ Enables any MCP-compatible client to communicate directly with an LLM/API.
  2. 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 ServerEnables 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 ServerProvides 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.txt

This 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.py

The 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.py

This 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:

  1. Start the Inspector server:

    npx @modelcontextprotocol/inspector
    
  2. Open the Inspector web interface (default port: http://localhost:5173 or as shown in the console).

  3. Connect to your running MCP server using the host URL:

    https://localhost:8000/mcp
    
  4. Navigate to the Tools tab to explore and test the available MCP tools.

MCP Server ยท Populars

MCP Server ยท New

    YV17labs

    ghostdesk

    Give any AI agent a full desktop โ€” it sees the screen, clicks, types, and runs apps like a human. Automate anything with a UI: browsers, legacy software, internal tools. No API needed. One Docker command.

    Community YV17labs
    remotebrowser

    mcp

    Free your data

    Community remotebrowser
    Decodo

    Decodo MCP Server

    The Decodo MCP server which enables MCP clients to interface with services.

    Community Decodo
    kuberstar

    Qartez MCP

    Semantic code intelligence MCP server for Claude Code - project maps, symbol search, impact analysis, and more

    Community kuberstar
    aovestdipaperino

    tokensave

    Rust port of CodeGraph โ€” a local-first code intelligence system that builds semantic knowledge graphs from codebases. Ported from the original TypeScript implementation by @colbymchenry.

    Community aovestdipaperino