// DOCUMENTATION

Mahakalp MCP Docs

Installation, configuration, tool reference, and troubleshooting.

// OVERVIEW

What is Mahakalp MCP?

Mahakalp MCP is an open-source MCP (Model Context Protocol) server that provides Salesforce platform knowledge to any AI assistant. It runs locally on your machine and communicates with your AI tool via stdio.

When your AI assistant needs Salesforce knowledge — governor limits, API references, best practices, or tribal knowledge — it calls the MCP server, which queries Mahakalp's curated knowledge API.

No Salesforce org is required. The MCP server provides general platform knowledge, not org-specific intelligence. For org-connected intelligence, see the Mahakalp IDE.

AI Assistant
↓ stdio ↑
MCP Server(local)
↓ HTTPS ↑
Knowledge API

// QUICK START

Install in one command

No global install, no sign-up, no API key. Just run:

Terminal
npx -y @mahakalp/salesforce-mcp

Requirements

  • Node.js 18 or later
  • Any MCP-compatible AI client (Claude Code, Cursor, VS Code Copilot, etc.)

// CONFIGURATION

Add to your AI tool

Copy the config for your editor. The server runs via npx — no global install needed.

Claude Code
.mcp.json (project root)
{
  "mcpServers": {
    "salesforce": {
      "command": "npx",
      "args": [
        "-y",
        "@mahakalp/salesforce-mcp"
      ]
    }
  }
}
Cursor
.cursor/mcp.json
{
  "mcpServers": {
    "salesforce": {
      "command": "npx",
      "args": [
        "-y",
        "@mahakalp/salesforce-mcp"
      ]
    }
  }
}
VS Code (Copilot)
.vscode/mcp.json
{
  "servers": {
    "salesforce": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mahakalp/salesforce-mcp"
      ]
    }
  }
}

// AVAILABLE TOOLS

Tool reference

3 free tools + 7 Pro-only tools.

Free Tools

No API key required

Constraints & Best Practices

mahakalp_sf_constraints

Governor limits, platform rules, and best practices for Salesforce development.

Documentation Search

mahakalp_sf_doc_search

Semantic search over official Salesforce documentation.

Release Intelligence

mahakalp_sf_releases

Release metadata, API versions, and platform status.

Pro Tools

Pro

Requires MAHAKALP_API_KEY

Apex Class Library Reference

mahakalp_sf_apex_library

Method signatures, parameters, return types, and governor limit implications.

Standard Object Schema

mahakalp_sf_standard_objects

Standard fields, relationships, and FLS patterns.

LWC Component Reference

mahakalp_sf_lwc_reference

Attributes, events, wire adapters, and Apex integration patterns.

Tribal Knowledge

mahakalp_sf_tribal_knowledge

Community-sourced patterns, anti-patterns, and hard-won lessons from production.

SOQL Optimizer

mahakalp_sf_soql_optimizer

Query selectivity analysis, governor limit risk assessment, and indexing recommendations.

Code Pattern Analyzer

mahakalp_sf_code_analyzer

Governor limit risk detection and bulkification suggestions.

Trigger Context Advisor

mahakalp_sf_trigger_advisor

Context variables, execution order, and common pitfalls.

// PLANS

Free vs Pro

FeatureFreePro
Constraints & best practices
Documentation search
Release intelligence
Apex class library reference
Standard object schema
LWC component reference
Tribal knowledge
SOQL optimizer
Code pattern analyzer
Trigger context advisor
Daily request limit1001,000
API key required

// API KEYS

Setting up your Pro API key

Pro tools require a MAHAKALP_API_KEY environment variable.

1

Create an account

Sign up at mahakalp.dev (free).

2

Generate a key

Go to Dashboard → MCP and generate an API key.

3

Add to your config

Add MAHAKALP_API_KEY to your MCP config's env block. See the Configuration section above for examples.

// RATE LIMITS

Request limits

Free

100

requests per day (per IP)

Pro

Pro

1,000

requests per day (per API key)

Rate limits reset daily at midnight UTC. When the limit is reached, requests return a 429 status with a retry-after header.

// TROUBLESHOOTING

Common issues

// FAQ

Frequently asked questions

Ready to get started?

Install Mahakalp MCP in under a minute. No sign-up, no credit card.