
本地优先的 MCP 服务器,用于搜索 Salesforce 开发者文档。在 VS Code 或 Claude Desktop 上搜索 360+ 官方 Salesforce PDF 文档。
概览
一个用于搜索 Salesforce 开发者文档的模型上下文协议(MCP)服务器。可直接从 VS Code、Claude Desktop 或任何兼容 MCP 的客户端中搜索 360 官方 Salesforce PDF 文档。 - 🎯 - 自动检测查询主题(Apex、REST API、LWC 等)并在相关文档中搜索 - 📚 - 291 份开发者指南 + 69 份发布说明(Apex、LWC、REST API、Metadata API 等)- 🏠 所有数据都保存在你的机器上,离线运行 - ⚡ - 智能过滤支持亚秒查询延迟 + LRU 缓存 - 🔍 - 如果主题过滤结果稀疏,搜索范围扩大 - 📦 - 纯 JavaScript(sql.js),无原生依赖 - 🔐 - 参数化查询,使用 zod 进行输入验证 - Node.js 18 或更高 - npm 或 yarn - 使用 GitHub Copilot 或 Claude Desktop 的 VS Code 添加到你的VS Code MCP配置中(Windows上的%APPDATA%\Code\User\mcp.json): 添加到你的Claude桌面配置(%APPDATA%\Claude\claude_desktop_config。
概述(AI 翻译)
一个本地优先模型上下文协议(MCP)服务器,用于搜索Salesforce开发者文档。可直接通过VS Code、Claude Desktop或任何兼容MCP的客户端搜索360个官方Salesforce PDF文档。
✨ 特色
- 🎯 基于意图的搜索 - 自动检测查询主题(Apex、REST API、LWC 等),并在相关文档中搜索
- 📚 360 文档 - 291 份开发者指南 + 69 份发布说明(Apex、LWC、REST API、METADATA API 等)
- 🏠 100% 本地 - 所有数据都留在您的机器上,离线工作
- ⚡ 快速 - 基于智能过滤+LRU缓存的亚秒查询延迟
- 🔍 智能备份 - 如果主题筛选结果稀疏,可以扩展搜索范围
- 📦 Packageable - 纯JavaScript(sql.js),无原生依赖
- 🔐 Secure - 参数化查询,使用 zod 进行输入验证
🚀 快速启动
先决条件
- Node.js 18岁及以上
- NPM或纱线
- 使用 GitHub Copilot 或 Claude Desktop 的 VS Code
安装
配置 VS 代码
在你的VS Code MCP配置中添加(Windows版为%APPDATA%\Code\User\mcp.json):
配置Claude桌面
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Salesforce Documentation MCP Server
A local-first Model Context Protocol (MCP) server for searching Salesforce Developer Documentation. Search across 360 official Salesforce PDF documents directly from VS Code, Claude Desktop, or any MCP-compatible client.
✨ Features
- 🎯 Intent-Based Search - Automatically detects query topic (Apex, REST API, LWC, etc.) and searches in relevant docs
- 📚 360 Documents - 291 developer guides + 69 release notes (Apex, LWC, REST API, Metadata API, and more)
- 🏠 100% Local - All data stays on your machine, works offline
- ⚡ Fast - Sub-second query latency with intelligent filtering + LRU caching
- 🔍 Smart Fallback - Expands search if topic-filtered results are sparse
- 📦 Packageable - Pure JavaScript (sql.js), no native dependencies
- 🔐 Secure - Parameterized queries, input validation with zod
🚀 Quick Start
Prerequisites
- Node.js 18 or higher
- npm or yarn
- VS Code with GitHub Copilot or Claude Desktop
Installation
# Clone the repository
git clone https://github.com/SalesforceDiariesBySanket/salesforce-docs-mcp.git
cd salesforce-docs-mcp
# Install dependencies
npm install
# Build the TypeScript
npm run build
# Build the search index (parses all PDFs - takes 5-10 minutes)
npm run build-index
Configure VS Code
Add to your VS Code MCP configuration (%APPDATA%\Code\User\mcp.json on Windows):
{
"servers": {
"salesforce-docs": {
"type": "stdio",
"command": "node",
"args": ["C:\\path\\to\\salesforce-docs-mcp\\dist\\index.js"]
}
}
}
Configure Claude Desktop
Add to your Claude Desktop configuration (%APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"salesforce-docs": {
"command": "node",
"args": ["C:\\path\\to\\salesforce-docs-mcp\\dist\\index.js"]
}
}
}
🛠️ Available Tools
search_salesforce_docs
Search across all Salesforce documentation with natural language queries.
Example: "How to create an Apex trigger on Account"
Example: "REST API authentication with OAuth 2.0"
Example: "Lightning Web Component wire service"
get_api_reference
Get specific Salesforce API reference documentation.
Example: API name "REST API", endpoint "/services/data"
Example: API name "Bulk API 2.0", endpoint "jobs"
get_release_notes
Get Salesforce release notes for specific releases or features.
Example: release "Winter 26"
Example: feature "Dynamic Forms"
get_code_example
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"salesforce-docs": {
"command": "node",
"args": ["C:\\path\\to\\salesforce-docs-mcp\\dist\\index.js"]
}
}
}