Socket
Book a DemoInstallSign in
Socket

@mulesoft/mcp-server

Package Overview
Dependencies
Maintainers
8
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mulesoft/mcp-server

Mulesoft MCP Server

npmnpm
Version
1.0.0
Version published
Weekly downloads
79
-20.2%
Maintainers
8
Weekly downloads
 
Created
Source

@mulesoft/mcp-server

Overview

The Mulesoft MCP Server is a Model Context Protocol (MCP) implementation that facilitates interaction between large language models (LLMs) and the Mulesoft Anypoint Platform. Create and deploy Mule applications, search for assets in Anypoint Exchange, and more.

Prerequisites

  • Anypoint Extension Pack version 1.8.2 or later
  • Git
  • Organization administrator access (for creating a connected app)
  • To run the generate_mule_flow tool, enable Einstein in Access Management. For more information, see Enabling Einstein for Anypoint Platform.

Available Tools

Application Development

  • create_mule_project: Create an integration project.
  • generate_mule_flow: Create a flow using AI.
  • run_local_mule_application: Deploy and run your application locally.
  • search_asset_in_exchange: Find an asset by name or other parameters you specify. Returns the first asset that matches input criteria.
  • create_and_manage_assets_in_exchange: Create an asset, update some asset properties without republishing the asset, and delete an asset. Asset properties are the asset name, description, icon, contact name, and contact email.

Application Management

  • deploy_mule_application: Deploy your application to CloudHub 2.0 or Runtime Fabric and run it. You can deploy from a local project or Anypoint Exchange asset. This tool supports security, high availability, and performance optimization deployment options.
  • list_applications: Get information about all applications in the environment you specify. You can also specify an optional deployment name. Results are sorted by last update date and time, in descending order.

See Example Commands.

Tool Considerations

You can deploy applications to CloudHub 2.0 and Runtime Fabric only.

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 the following scopes:

Anypoint Code Builder

  • Mule Developer Generative AI User

General

  • View Organization
  • View Connected Applications

Exchange

  • Exchange Administrator
  • Exchange Contributor
  • Exchange Creator
  • Exchange Viewer

Runtime Manager

  • Read Applications
  • Create Applications
  • Read Runtime Fabrics
  • Cloudhub Network Viewer

Anypoint Monitoring

  • Monitoring Viewer

Install the MuleSoft MCP Server

To install the server with node, run: npm install -g @mulesoft/mcp-server

Configure the Mule MCP Server

You can configure Claude Desktop, Zed, Cursor, Windsurf, 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.

{
  "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>"
      }
    }
  }
}

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>"
      }
    }
  }
}

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>"
      }
    }
  }
}

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>"
      }
    }
  }
}

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>"
        }
      }
    }
  }
}

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>"
      }
    }
  }
}

Example Commands

If you want to...Try this...
Deploy an existing asset in Anypoint Exchange to CloudHub 2.0 or Runtime FabricDeploy app using sample-asset-name from Anypoint Exchange.
Create an implementation projectCreate a Mule project that creates an order in NetSuite every time an opportunity in Salesforce is updated to stage 'Closed Won'.
Deploy an implementation applicationDeploy Mule application in current project. Deploy with high security, high availability, and performance optimized settings.

Keywords

mulesoft

FAQs

Package last updated on 02 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts