Sutra
Click on "Deploy 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., "@Sutra What are the SOQL governor limits in Apex triggers?"
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.
@kognyt/salesforce-mcp
Open-source MCP server that makes any AI assistant a Salesforce expert.
Governor limits, platform constraints, documentation search, and release metadata — available to Claude Code, Cursor, VS Code Copilot, and any MCP-compatible client.
Beta Notice: Sutra Pro is currently in beta and free to use. We'd love your feedback at hello@kognyt.dev.
What it does
Sutra gives your AI assistant accurate, structured Salesforce platform knowledge. Instead of hallucinating governor limits or outdated API references, your assistant queries real data curated by Kognyt.
No Salesforce org connection required. No authentication needed for free tools.
Related MCP server: sfgraph
Installation
npm / npx (recommended)
# Run directly without installing
npx -y @kognyt/salesforce-mcp
# Or install globally
npm install -g @kognyt/salesforce-mcpFrom source
git clone https://github.com/Mahakalp/Sutra.git
cd Sutra
npm install
npm run build
node dist/index.jsQuick start
Add the server to your AI tool's MCP configuration:
Claude Code
claude mcp add salesforce-mcp -- npx -y @kognyt/salesforce-mcpCursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"salesforce-mcp": {
"command": "npx",
"args": ["-y", "@kognyt/salesforce-mcp"]
}
}
}VS Code / Copilot
Add to .vscode/mcp.json:
{
"servers": {
"salesforce-mcp": {
"command": "npx",
"args": ["-y", "@kognyt/salesforce-mcp"]
}
}
}Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"salesforce-mcp": {
"command": "npx",
"args": ["-y", "@kognyt/salesforce-mcp"]
}
}
}Available tools
Sutra offers two tiers:
Free Tier (no API key required)
These tools are free and require no authentication:
Tool | Description |
| Governor limits, platform rules, and best practices with values, workarounds, and code examples |
| Semantic search over official Salesforce documentation |
| Release metadata including API versions, status, and dates |
Pro Tier (Beta - Free during beta)
Pro tools require an API key (free during beta):
Tool | Description |
| Best practice rules and coding standards with severity and code examples |
| Reusable code patterns and implementation templates |
| Architectural decision guides and trade-off analysis |
To enable Pro tools, set the KOGNYT_API_KEY environment variable. See the Setup Guide for details.
Example usage
Once configured, your AI assistant can answer questions like:
"What are the SOQL governor limits in Apex triggers?"
"Search the Salesforce docs for bulk API best practices"
"What API version does the Spring '26 release use?"
Roadmap
Coming in future releases:
Tool | Description |
Apex Class Library | Full method signatures, parameters, return types, and governor limit implications |
Standard Object Schema | Standard fields, relationships, and FLS patterns |
LWC Component Reference | Attributes, events, wire adapters, and Apex integration patterns |
Tribal Knowledge | Community-sourced patterns, anti-patterns, and hard-won lessons |
How it works
Sutra runs locally on your machine as an MCP server over stdio. When your AI assistant calls a tool, Sutra sends a request to the Kognyt API, which returns curated Salesforce platform knowledge. No code, schema, or org data ever leaves your machine — Sutra only fetches public platform knowledge.
Your AI assistant <--stdio--> Sutra (local) <--HTTPS--> Kognyt APIReliability & Degraded Mode
Sutra is designed to remain functional even when external services are temporarily unavailable:
Free tier: Always works — no external dependencies for entitlement
Pro tier: If the entitlement service is unavailable, Sutra defaults to free tier automatically
When entitlement sync fails:
Server logs a warning message
Falls back to free tier tools
Retries entitlement refresh periodically
This ensures the server continues working even during service disruptions. See degraded-mode.md for detailed behavior.
Beta Behavior
For the definitive source of truth on free vs Pro tier behavior, entitlements, and open-source boundaries, see beta-behavior.md.
This document covers:
Free vs Pro tool availability
Entitlement checks and statuses
Open source vs proprietary boundaries
Degraded mode behavior
Offline capabilities
Contributing
Contributions are welcome. Please open an issue first to discuss what you'd like to change.
git clone https://github.com/Mahakalp/Sutra.git
cd Sutra
npm install
npm run dev # Run with hot reload
npm run build # Build for productionLicense
Available Tools
3 toolskognyt_sf_constraintsB
Get Salesforce platform constraints including governor limits, platform rules, and best practices. Returns structured data with limit values, context, workarounds, and code examples. Powered by Kognyt.
Inputs: context, release_id, max_results, constraint_ids, +1 more.
kognyt_sf_doc_searchA
Search Salesforce official documentation using semantic search. Returns relevant documentation chunks for RAG context. Useful for answering questions about Apex, LWC, SOQL, or any Salesforce platform feature. Powered by Kognyt.
Inputs: query (required), topics, release_id, max_results.
kognyt_sf_releasesB
Get information about Salesforce releases. Returns release metadata including API version, status, and release dates. Powered by Kognyt.
Inputs: list_all, release_id, include_archived.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools target distinct information types: release metadata, platform constraints, and semantic documentation search. The only potential overlap is between constraints and doc search, since both answer platform questions, but the structured limits-focused output of constraints makes the boundary reasonably clear.
All tool names follow the same predictable pattern: kognyt_sf_ followed by a snake_case resource or action noun. There is no mixing of conventions, and the shared prefix clearly groups them as one coherent set.
Three tools is well-scoped for a narrow Salesforce reference/knowledge server. Each tool serves a distinct retrieval purpose, and there are no redundant or filler endpoints.
The surface covers release info, governor limits, and broad documentation search, which is strong for a Salesforce reference server. Minor gaps could include retrieving specific release notes by version or searching within constraints, but agents can work around these via doc search.
Maintenance
Related MCP Connectors
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
A shared, open store of facts for AI agents. When an agent needs a specific fact (a software version, a price, a date, who holds a role), it looks it up and gets the value with its sources and a status: agreed (independent sources agree), reported (one source, worth verifying), contested, stale, or a Wikidata record. A lookup can save a web search. After an agent verifies a fact on a public page, it can propose it with the link and the sentence that states it; proposals are checked and held up to 24 hours, then become open data (CC0). Reads work without an account at https://mcp.consci.us/mcp; https://mcp.consci.us/mcp/account signs you in to a free account so your lookups and shared facts count on it. Docs: https://consci.us/docs
Make your knowledge agent-ready. One MCP endpoint, 5 connectors, 3 search modes.
Knowledge base MCP for AI agents on iknow.dev. Search, read, and maintain via OAuth.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA local-first MCP server that enables intent-based searching across over 350 official Salesforce developer documents and release notes. It allows users to retrieve API references, code examples, and technical documentation directly through natural language queries.22MIT
- FlicenseNot gradedqualityBmaintenanceA local, privacy-first knowledge graph for Salesforce orgs. It live-syncs your org to a SQLite + vector index on your machine and exposes 26 MCP tools to Cursor, Claude Code/Desktop, and VS Code, so the AI you already use can reason about Apex, LWC, Flow, Vlocity, OmniStudio, security, and integrations without your code or schema ever leaving your laptop.-
- FlicenseNot gradedqualityBmaintenanceProvides live-org context for AI assistants with tools to search skills, agents, templates, decision trees, and query Salesforce metadata (Apex, LWC, objects, fields, etc.) via MCP.26-
- FlicenseNot gradedqualityDmaintenanceConnects any MCP-compatible AI assistant directly to a Salesforce org for querying data, exploring schema, running Apex, and managing deployments.-