Salesforce MCP Server

Salesforce MCP Server

Exposes Salesforce as tools for MCP clients, allowing AI to run SOQL queries, describe objects, create contacts, and check org limits directly from natural language, with least-privilege guardrails.

Category
Visit Server

README

Salesforce MCP Server — Headless 360

Python MCP Salesforce

A Model Context Protocol server that exposes Salesforce as tools for any MCP client (Claude Desktop, VS Code, custom agents). Ask your AI "which accounts have stale opportunities?" and it queries your org directly — no login, no tab-switching.

What this demonstrates: the N×M integration problem MCP solves (N clients × M systems → N+M), tool design with least-privilege guardrails, and prompt templates as a first-class server capability.

Tools exposed

Tool What it does Guardrail
run_soql Read-only SOQL queries SELECT-only + forbidden-keyword guard (tested)
describe_object Field names/types/labels for any SObject read-only
create_contact Create a Contact deliberately narrow — no generic DML tool
org_limits API/storage limits snapshot read-only

Plus an MCP prompt: account_health_review — a reusable analysis template clients can invoke by name.

Setup

pip install -r requirements.txt
cp .env.example .env   # add your credentials
mcp dev server.py      # inspector UI for local testing

Claude Desktop config

{
  "mcpServers": {
    "salesforce": {
      "command": "python",
      "args": ["C:/path/to/salesforce-mcp-server/server.py"],
      "env": {
        "SF_USERNAME": "you@example.com",
        "SF_PASSWORD": "...",
        "SF_SECURITY_TOKEN": "..."
      }
    }
  }
}

Security notes (the part that matters)

  • Least privilege: one narrow write tool instead of generic DML — an AI that can "do anything" is an incident waiting to happen.
  • SOQL guard: model-composed queries are validated before execution (tests/test_guard.py).
  • Prompt injection: treat records' field values as untrusted input — a Contact Description saying "ignore previous instructions" must never steer the agent. Keep write tools narrow and confirm destructive intents client-side.
  • Use a dedicated Integration User profile with minimal object permissions.

Tests

pytest -q   # guard tests run offline, no org needed

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured