Skip to content
| Marketplace
Sign in
Visual Studio>Tools>MCP Server for Salesforce
MCP Server for Salesforce

MCP Server for Salesforce

Devart Software

devart.com
|
2 installs
| (0) | Free
Devart MCP Server for Salesforce connects GitHub Copilot in Visual Studio and other AI clients to your data. Free; needs the Devart ODBC driver.
Download

Devart MCP Server for Salesforce: connect GitHub Copilot in Visual Studio and other AI clients to your Salesforce data

How Devart MCP Server for Salesforce works

Get started | Documentation

Free to use • Self-hosted • STDIO and HTTP

Devart MCP Server for Salesforce is a self-hosted Model Context Protocol (MCP) server that connects AI clients—GitHub Copilot in Visual Studio, Claude Desktop, Cursor, Visual Studio Code, and others—to your Salesforce data. It runs on your Windows machine and connects to Salesforce through Devart ODBC Driver for Salesforce.

The server gives the AI client the schema of your Salesforce objects and a set of tools. The AI client writes the SQL and calls the tools; the server runs the statements through the driver and returns structured results. The AI client never connects to Salesforce itself. The server is free to use—no license key, no activation, no expiry. Devart ODBC Driver for Salesforce is a commercial product with a free 30-day trial.

Key features

  • Schema-aware: Salesforce objects as tables, with their fields and keys, for the AI client to work from
  • Read and write tools: queries and data changes
  • Your Salesforce permissions apply: the connected user's permissions decide which objects, fields, and records the AI client can reach
  • Sign-in options: user name, password, and security token, or OAuth 2.0
  • Multiple orgs: add several named connections, for example production and sandbox orgs. Each shows up in your AI client as a separate server with its own tools, such as my_prod_get_tables
  • Two transports: STDIO and HTTP
  • Simple setup: one installer adds the server, Devart ODBC Driver for Salesforce, and .NET 8; create connections in the connection manager or with the config command line
  • Works with your AI tools: GitHub Copilot in Visual Studio, Claude Desktop, Cline, Codex, Cursor, Windsurf, Visual Studio Code, and Zed (setup guides)

Installation

  1. Download Devart MCP Server for Salesforce from the official website (x64 or x86) and run the installer. It installs the server together with Devart ODBC Driver for Salesforce and .NET 8 (installation guide).
  2. Start right away: the driver's free 30-day trial begins automatically after installation, with no key required.
  3. To keep using the driver after the trial, buy a license and activate the driver with your key. See Licensing for license options.

The server itself is free to use and needs no license key or activation.

Usage

1. Create a connection. In the MCP Server connection manager, click New, select a DSN or enter a connection string, click Test Connection, keep STDIO on the MCP Settings tab, and click Save. Details: Configure a connection.

Or from the command line:

"C:\Program Files\Devart\MCP Server for Salesforce\Devart.AI.McpServer.Odbc.Salesforce.exe" config add my_salesforce -c "Driver={Devart ODBC Driver for Salesforce};Server=login.salesforce.com;User ID=your_user;Password=your_password;Security Token=your_security_token"

For OAuth 2.0, set Authentication=OAuth with Refresh Token, Consumer Key, and Consumer Secret instead of the password and security token (connection string parameters).

Visual Studio

2. Add the server to Visual Studio. Create %USERPROFILE%\.mcp.json to use the server in every solution, or .mcp.json in your solution folder:

{
  "servers": {
    "devart-salesforce": {
      "type": "stdio",
      "command": "C:\\Program Files\\Devart\\MCP Server for Salesforce\\Devart.AI.McpServer.Odbc.Salesforce.exe",
      "args": ["run", "my_salesforce"]
    }
  }
}

devart-salesforce is the name you'll see in Visual Studio; my_salesforce is the connection from step 1. Visual Studio loads the server when you save the file.

3. Turn on the tools. In GitHub Copilot Chat, switch to Agent mode, click Tools (the wrench icon), and select devart-salesforce. New MCP tools are off by default. When Copilot wants to call a tool, Visual Studio asks you to allow it.

4. Ask about your data. For example:

  • "Which open opportunities over $50,000 close this quarter?"
  • "Show cases opened this week by priority."
  • "Which custom objects reference Opportunity?"

HTTP instead of STDIO. Select HTTP on the MCP Settings tab, set a port, and start the connection. From the command line, create the connection with -p http -hp 8080 and run Devart.AI.McpServer.Odbc.Salesforce.exe run my_salesforce. In .mcp.json, use "type": "http", "url": "http://localhost:8080/sse" with your port.

Other AI clients

Register the connection on the Integration tab of the connection manager, or add it to the client's configuration file. Step-by-step guides: Claude Desktop, Cline, Codex, Cursor, Visual Studio Code, Windsurf, Zed.

Integration tab of the Devart MCP Server connection manager

Available tools

Tool names start with the connection name, for example my_salesforce_get_tables.

Category Tools
Schema get_tables, get_columns, get_primary_keys, get_foreign_keys, get_indexes, get_routines
Read execute_reader, count_rows
Write execute_nonquery, add_row, execute_routine
Server server_version, instructions, config

execute_reader runs SELECT statements and returns the results as Markdown. execute_nonquery runs INSERT, UPDATE, DELETE, and DDL statements in one transaction.

Compatibility

Component Supported
Visual Studio Visual Studio 2026; Visual Studio 2022 version 17.14 or later. GitHub Copilot in Agent mode
Other AI clients Claude Desktop, Cline, Codex, Cursor, Windsurf, Visual Studio Code, Zed
Operating system Windows 10 and later, supported Windows Server editions; x64 and x86 installers
Runtime .NET 8, installed with the server
Transports STDIO; HTTP with SSE at http://localhost:<port>/sse
Data source Salesforce orgs (salesforce.com, force.com, and database.com domains), through Devart ODBC Driver for Salesforce; user name, password, and security token, or OAuth 2.0

Security and access

  • The server has read and write tools. It can do anything the connected Salesforce user is allowed to do, so connect with a user whose permissions match what the AI client should be able to do.
  • Visual Studio asks you to confirm each tool call unless you allow the tool for the session, the solution, or always. Keep confirmation on for the write tools.
  • Query results go to your AI client and its model provider. Connect only data you're allowed to share with them.
  • Over HTTP the server has no authentication. Keep it bound to localhost (the default).

Troubleshooting

  • The server isn't in Tools. Make sure Copilot Chat is in Agent mode. Then check the .mcp.json syntax and location; create and save the file in Visual Studio so it isn't saved as .mcp.json.txt.
  • The server doesn't start. Use double backslashes in the JSON path, and make sure the name after run matches a connection. Devart.AI.McpServer.Odbc.Salesforce.exe config list shows them.
  • Connection errors. Check the server URL, user name, password, and security token, or the OAuth 2.0 settings, with Test Connection in the connection manager.
  • License errors. If the driver's 30-day trial has ended, activate the driver with a license key; check the license status in the ODBC Data Source Administrator. The server itself needs no activation.
  • Several connections. Add one .mcp.json entry per connection, each with a unique name, for example devart-salesforce_prod and devart-salesforce_dev.

ADO.NET edition on NuGet

The same server is also available as a .NET tool: Devart.Mcp.Salesforce. It uses dotConnect for Salesforce, included in the package, instead of the ODBC driver, and needs a dotConnect for Salesforce license key (a free 30-day trial key works). Requires Windows x64 and .NET 8 or later; dnx needs .NET 10.

dnx Devart.Mcp.Salesforce@1.1.0 config add my_salesforce --connection-string "Host=login.salesforce.com;Authentication Type=AccessRefreshTokenInteractive;License Key=your_license_key;" --protocol-type stdio
{
  "servers": {
    "devart-salesforce": {
      "type": "stdio",
      "command": "dnx",
      "args": ["Devart.Mcp.Salesforce@1.1.0", "run", "my_salesforce"]
    }
  }
}

On .NET 8 or 9, see the package README.

Other Devart connectivity solutions

  • Devart MCP Server Universal: one server for many data sources through any ODBC driver
  • Devart ODBC Driver for Salesforce
  • dotConnect for Salesforce, ADO.NET data provider

Support

  • Documentation
  • Release notes
  • Source code on GitHub
  • Submit a request
  • Suggest a feature
  • Community forum
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft