{ "mcpServers": { "mulesoft": { "command": "npx", "args": ["-y", "@mulesoft/mcp-server", "start"], "env": { "ANYPOINT_CLIENT_ID": "<YOUR_CLIENT_ID>", "ANYPOINT_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>", "ANYPOINT_REGION": "<REGION_NAME>" } } } }
Getting Started with MuleSoft MCP Server
Learn how to set up and configure MuleSoft MCP Server for your agent-ready IDE.
If you have Anypoint Code Builder, stop here. Don’t perform these steps. MuleSoft MCP Server is already installed in Anypoint Code Builder. |
Prerequisites
-
Anypoint Extension Pack version 1.10.0 or later
-
Git
-
Organization administrator access (for creating a connected app)
-
To run the
generate_mule_flow
andgenerate_api_spec
tools, enable Einstein in Access Management. For more information, see Enabling Einstein for Anypoint Platform.
Set Up Authentication
Create a connected app that acts on its own behalf using the steps in Create a Connected App That Acts on Its Own Behalf.
In step 6, add these scopes. Make sure that all business groups and relevant environments are selected for these scopes.
Install the MuleSoft MCP Server
To install the server with node, run:
npm install -g @mulesoft/mcp-server
Configure the MuleSoft MCP Server
You can configure Claude Desktop, Cursor, Windsurf, Zed, and other IDEs to work with the MuleSoft MCP Server.
Claude Desktop
Add this snippet to claude_desktop_config.json
where ANYPOINT_REGION
(optional) is one of these values: PROD_US
, PROD_EU
, PROD_CA
, or PROD_JP
.
Cline
Add this snippet to Cline config.json
where ANYPOINT_REGION
(optional) is one of these values: PROD_US
, PROD_EU
, PROD_CA
, or PROD_JP
.
{ "mcpServers": { "mulesoft": { "command": "npx", "args": ["-y", "@mulesoft/mcp-server", "start"], "env": { "ANYPOINT_CLIENT_ID": "<YOUR_CLIENT_ID>", "ANYPOINT_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>", "ANYPOINT_REGION": "<REGION_NAME>" } } } }
Cursor
Add this snippet to Cursor mcp.json
where ANYPOINT_REGION
(optional) is one of these values: PROD_US
, PROD_EU
, PROD_CA
, or PROD_JP
.
{ "mcpServers": { "mulesoft": { "command": "npx", "args": ["-y", "@mulesoft/mcp-server", "start"], "env": { "ANYPOINT_CLIENT_ID": "<YOUR_CLIENT_ID>", "ANYPOINT_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>", "ANYPOINT_REGION": "<REGION_NAME>" } } } }
Trae
Add this snippet to Trae mcp_settings.json
or .vscode/mcp.json
where ANYPOINT_REGION
(optional) is one of these values: PROD_US
, PROD_EU
, PROD_CA
, or PROD_JP
.
{ "mcpServers": { "mulesoft": { "command": "npx", "args": ["-y", "@mulesoft/mcp-server", "start"], "env": { "ANYPOINT_CLIENT_ID": "<YOUR_CLIENT_ID>", "ANYPOINT_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>", "ANYPOINT_REGION": "<REGION_NAME>" } } } }
VS Code
Add this snippet to VS Code settings.json
or .vscode/mcp.json
where (optional) ANYPOINT_REGION
is one of these values: PROD_US
, PROD_EU
, PROD_CA
, or PROD_JP
.
{ "mcp": { "servers": { "mulesoft": { "command": "npx", "args": ["-y", "@mulesoft/mcp-server", "start"], "env": { "ANYPOINT_CLIENT_ID": "<YOUR_CLIENT_ID>", "ANYPOINT_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>", "ANYPOINT_REGION": "<REGION_NAME>" } } } } }
Windsurf
Add this snippet to Windsurf mcp_config.json
where ANYPOINT_REGION
(optional) is one of these values: PROD_US
, PROD_EU
, PROD_CA
, or PROD_JP
.
{ "mcpServers": { "mulesoft": { "command": "npx", "args": ["-y", "@mulesoft/mcp-server", "start"], "env": { "ANYPOINT_CLIENT_ID": "<YOUR_CLIENT_ID>", "ANYPOINT_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>", "ANYPOINT_REGION": "<REGION_NAME>" } } } }
Zed
Add this snippet to Zed settings.json
where ANYPOINT_REGION
(optional) is one of these values: PROD_US
, PROD_EU
, PROD_CA
, or PROD_JP
.
{ "context_servers": { "mulesoft": { "command": "npx", "args": ["-y", "@mulesoft/mcp-server", "start"], "env": { "ANYPOINT_CLIENT_ID": "<YOUR_CLIENT_ID>", "ANYPOINT_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>", "ANYPOINT_REGION": "<REGION_NAME>" } } } }