sf-docs-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SF_ACTIVE_DOMAINS | No | Comma-separated list of domain IDs to restrict search to. If not set, all 129 domains are searched. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| sf_searchA | Search across all Salesforce documentation domains for a topic. Returns matching documents with titles, domains, and descriptions. When domain restriction is active, only searches active domains. |
| sf_read_topicA | Read a specific Salesforce documentation topic file. Use sf_search first to find the domain and topic ID. Optionally request a specific section by heading. |
| sf_graph_queryB | Navigate the Salesforce Knowledge Graph. Find related docs, explore namespaces, discover service categories, or get full context for a document. |
| sf_list_domainsA | List all available Salesforce documentation domains, optionally filtered by service category. |
| sf_apex_lookupA | Look up an Apex class or method by name. Searches the apex-reference domain specifically for class documentation, methods, and signatures. |
| sf_code_examplesA | Find working code examples from Salesforce documentation. Returns code snippets with language, source file, and surrounding context. Great for learning patterns and copy-paste solutions. |
| sf_object_referenceA | Look up a Salesforce standard object or field. Searches the Field Reference Guide (4,800+ pages) and Object Reference (1,700+ pages) for object details, field types, and relationships. |
| sf_explain_errorA | Explain a Salesforce error message or exception. Searches documentation for the error, provides explanation, common causes, and resolution steps. |
| sf_limitsA | Look up Salesforce governor limits and platform constraints. Returns exact numbers for SOQL, DML, callout, CPU, heap, batch, API limits and more. |
| sf_semantic_searchA | AI-powered semantic search with NLP query understanding. Analyzes your query to extract entities, intent, and synonyms for better results. Returns section-level matches with header paths. Use this for natural language questions like 'how to process records in bulk' or 'debug authentication errors'. |
| sf_set_active_domainsA | Set the active domain restriction. When set, all tools only return results from the specified domains. Use sf_suggest_domains first to discover relevant domain IDs. Call with clear=true to remove restrictions. |
| sf_suggest_domainsA | Suggest relevant documentation domains based on a description of what the user is working on. Returns domain IDs that can be passed to sf_set_active_domains. Use this when the user wants to focus their search on specific Salesforce products or features. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| explore_api | Explore a Salesforce API — discover endpoints, methods, and usage patterns |
| debug_apex | Debug an Apex issue — look up classes, methods, and known patterns |
| compare_services | Compare Salesforce products by exploring their documentation domains |
| write_apex | Write production-ready Apex code — gathers limits, patterns, and examples before coding |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| overview | Overview of the SF Documentation Knowledge system — stats, available tools, and how to use them |
| domains | All Salesforce documentation domains with descriptions |
| namespaces | All Apex namespaces with document counts |
| services | Salesforce service categories with domain counts |
| config | Current MCP server configuration — active domain restrictions, cache stats |
TDQS
Scored across 12 tools
Most tools target distinct resources (domains, topics, Apex, objects, errors, limits), but sf_search and sf_semantic_search both serve general search and could be confused; sf_apex_lookup also overlaps with sf_search for Apex-specific queries. Overall mostly clear.
All tools share the 'sf_' prefix, but the action placement is inconsistent: some follow verb_noun (list_domains, read_topic, explain_error), others are noun phrases (apex_lookup, object_reference, limits, semantic_search). This mixed convention reduces predictability.
12 tools is well within the ideal 3-15 range for a documentation server, covering various access patterns without being overwhelming.
The tool set covers discovery (domains, search), reading (topics, lookups), and specialized queries (code examples, errors, limits). A minor gap is the lack of an explicit tool to enumerate all topics within a domain, but graph_query and search mitigate this.