# salesforce-mcp-server

> MCP Server

This repository provides a Model Context Protocol (MCP) server that enables Claude Desktop to interact with Salesforce data, specifically querying Account information. It requires Node.js, Salesforce CLI, and Claude Desktop.

## Overview

- **Category:** Sales
- **Language:** TypeScript
- **Stars:** 0
- **Forks:** 1
- **Owner:** Iros95
- **GitHub:** https://github.com/Iros95/salesforce-mcp-server
- **Created:** 2025-02-09T19:46:28+00:00
- **Updated:** 2025-02-10T22:10:21+00:00
- **Source:** https://model-context-protocol.com/servers/salesforce-claude-model-context-protocol

## Setup

## Setup

1. Clone the repository:
```bash
git clone [repository-url]
cd salesforce-mcp-server
```

2. Install dependencies:
```bash
npm install
```

3. Create a `.env` file in the project root:
```
SF_LOGIN_URL=https://test.salesforce.com
SF_API_VERSION=59.0
SF_ORG_ALIAS=your-sandbox-alias
```

4. Authenticate with Salesforce:
```bash
# Login to your sandbox
sf org login web --alias your-sandbox-alias --instance-url https://test.salesforce.com
```

5. Configure Claude Desktop by opening the configuration file:
```bash
# On Windows
code "%APPDATA%\Claude\claude_desktop_config.json"

# On macOS
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
```

6. Add the following configuration to Claude Desktop:
```json
{
  "mcpServers": {
    "salesforce": {
      "command": "npm",
      "args": ["run", "dev"],
      "cwd": "path/to/your/salesforce-mcp-server"
    }
  }
}
```
Replace `path/to/your/salesforce-mcp-server` with the actual path to your project directory.

## Tools

## Available Tools

1.  `accounts/list` (Returns a list of Salesforce accounts)
2.  `refresh_accounts` (Manually refresh the account data)
