Enables searching and retrieving content from over 360 official Salesforce developer documents, including Apex guides, REST and Bulk API references, Lightning Web Components documentation, and release notes.
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., "@Salesforce Documentation MCP ServerHow do I use the wire decorator in a Lightning Web Component?"
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.
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
Configure VS Code
Add to your VS Code MCP configuration (%APPDATA%\Code\User\mcp.json on Windows):
Configure Claude Desktop
Add to your Claude Desktop configuration (%APPDATA%\Claude\claude_desktop_config.json):
๐ ๏ธ Available Tools
search_salesforce_docs
Search across all Salesforce documentation with natural language queries.
get_api_reference
Get specific Salesforce API reference documentation.
get_release_notes
Get Salesforce release notes for specific releases or features.
get_code_example
Get code examples from Salesforce documentation.
list_doc_categories
List all documentation categories with document counts.
get_document
Get full content of a specific document by ID or filename.
๐ฏ Intent-Based Search
The MCP server automatically detects the topic of your query and searches in the most relevant documentation:
Query | Detected Intent | Searches In |
"How to create an Apex trigger" | Apex Development | ~15 Apex docs |
"REST API OAuth authentication" | REST API | ~10 REST API docs |
"LWC wire decorator" | Lightning/LWC | ~12 Lightning docs |
"Bulk API 2.0 job" | Bulk API | ~5 Bulk API docs |
"sharing rules permission set" | Security | 12 Security docs |
"SOQL query limits" | SOQL/SOSL | ~5 SOQL docs |
Benefits:
๐ฏ More relevant results - Searches in topic-specific docs first
โก Faster queries - Scans ~15 docs instead of 357
๐ Smart fallback - Expands search if too few results found
Override: You can always specify category or subcategory to search in a specific area.
๐ Documentation Categories
Category | Description |
| Apex, LWC, Visualforce, SOQL/SOSL, Formulas |
| REST, SOAP, Metadata, Bulk, Tooling APIs |
| Salesforce CLI, VS Code, Packaging |
| Sales, Service, Experience, Industry Clouds |
| Authentication, Authorization, Sharing |
| Integration Patterns, Connectors |
| Limits, Performance, Cheatsheets |
| Winter '15 to present |
๐๏ธ Project Structure
๐ฅ Adding Documentation
Download Salesforce PDFs to docs/pdfs/ then rebuild the index:
PDFs can be downloaded from:
Current version: 258 (Winter '26, API v65.0)
๐ง Development
โก Performance
Metric | Value |
PDF Documents | 360 (291 + 69 release notes) |
Documents indexed | 357 |
Search chunks | ~156,000 |
Database size | ~520 MB |
Intent-filtered query | < 50ms (scoped search) |
Unfiltered query | < 500ms (full corpus) |
Cached query | < 10ms |
How Intent-Based Search Improves Performance
Note: Uses sql.js (pure JavaScript SQLite) with LIKE-based text search. Intent detection reduces search scope by 90%+ for topic-specific queries.
๐ Security
100% Local: No data leaves your machine
No API Keys: Works completely offline
stdio Transport: No exposed HTTP endpoints
Parameterized Queries: Protection against SQL injection
Input Validation: All tool inputs validated with zod schemas
๐ License
MIT License - see LICENSE for details.
โ ๏ธ Disclaimer
Salesforce Documentation: The Salesforce documentation PDF files included in this repository are the property of Salesforce, Inc. and are provided for convenience only. These documents are subject to Salesforce's own terms of use and copyright.
Trademark Notice: The trademarks and product names of Salesforceยฎ, including the mark Salesforceยฎ, are the property of Salesforce, Inc. This project is not affiliated with, sponsored by, or endorsed by Salesforce, Inc. The use of the Salesforceยฎ trademark and Salesforce documentation in this project does not indicate an endorsement, recommendation, or business relationship between Salesforce, Inc. and the project maintainers.
Official Documentation: For official Salesforce documentation, please visit developer.salesforce.com/docs.
ยฉ 2026 Sanket (SalesforceDiariesBySanket) | Salesforce documentation ยฉ Salesforce, Inc.