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.1.0
Version published
Weekly downloads
85
6.25%
Maintainers
8
Weekly downloads
 
Created
Source

@mulesoft/mcp-server

Overview Prerequisites Available Tools Tool Considerations Set Up Authentication Install the MuleSoft MCP Server Configure the MuleSoft MCP Server Example Commands

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, create API specs, search for assets in Anypoint Exchange, get platform insights, and more.

Prerequisites

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

Available Tools

Application Development

  • create_and_manage_assets: Create an asset in Anypoint Exchange, update some Anypoint Exchange asset properties without republishing the asset, and delete an asset in Anypoint Exchange. Asset properties are the asset name, description, icon, contact name, and contact email.
  • create_api_spec: Create an API spec using AI. Prerequisites: Log in to Anypoint Code Builder with your Anypoint Platform credentials. Make sure Einstein is enabled in Access Management.
  • create_api_spec_project: Create and scaffold an API spec or fragment project. You can specify the project name, location, and spec language (RAML, OAS, etc.).
  • create_MCP_server: Create a MuleSoft MCP server. This tool handles requests for creating MCP servers using the Anypoint Connector for MCP (MCP Connector). Prerequisite: Install the MCP Connector.
  • 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: Search for an asset in an organization and Anypoint Exchange. Returns the first asset in the user's own organization that matches input criteria. If no assets are found in the user's organization, then the tool returns assets in Anypoint Exchange that exactly or partially match searchQuery.

Application Management

  • create_and_manage_api_instances: Create and configure API instances in Anypoint API Manager.
  • 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_api_instances: Get information for instances in an environment. You can also filter by an instance ID or label and include applied or available policies. Results are paginated using the page parameter. Prompt tip: To get information for all instances, revise results using the page parameter.
  • 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.
  • update_mule_application: Update a Mule application deployed to CloudHub 2.0 or Runtime Fabric. Update runtime version, configuration, and other application settings.

Policy Management

  • manage_api_instance_policy: Apply a new policy to an API instance and update an existing policy configuration.
  • manage_flex_gateway_policy_project: Provide instructions to the LLM on how to manage a Flex Gateway custom policy project. Instructions include how to create the project, set up the configuration, build the project, publish a development version of the project, and publish a release version of the project. Prerequisites: https://docs.mulesoft.com/pdk/latest/policies-pdk-prerequisites
  • get_flex_gateway_policy_example: Get a Flex Gateway policy example to help you configure your Rust source code. You can get example policies that manipulate a request's header and body, make HTTP calls to external services, share data between requests and responses, reject requests, and perform sleep operations.

Usage & Insights

  • get_platform_insights: See how your organization leverages the Anypoint Platform through usage and operational insights. These include:
    • Usage trends for apps, such as flow count, message counts, and data throughput by business group and environment. Usage trends are for the current month. If it's early in the month, you get usage for the last full month.
    • API and app call volume across consumers for last 7 days.
    • API and app performance metrics such as errors and latency for last 7 days.
  • get_reuse_metrics: Get visibility into how assets are reused across your organization. Drive efficiency, consistency, and cost savings by reducing duplication. Includes sandbox and production environments. Metrics are a year-to-date snapshot.

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 these scopes. Make sure that all business groups and relevant environments are selected for these scopes.

Anypoint Code Builder

  • Mule Developer Generative AI User

Anypoint Monitoring

  • Monitoring Viewer

API Manager

  • Manage APIs Configuration
  • Manage Policies
  • View APIs Configuration
  • View Policies

Exchange

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

General

  • View Organization
  • View Connected Applications

Runtime Manager

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

Usage

  • Usage Viewer

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, 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...
Apply a policyApply the rate-limiting policy to this API instance.
Create an asset in ExchangeI want to publish this API to Exchange.
Create an instanceCreate an instance for this application.
Create an integration projectCreate a Mule project that creates an order in NetSuite every time an opportunity in Salesforce is updated to stage Closed Won.
Deploy an applicationDeploy Mule application in current project. Deploy with high security, high availability, and performance optimized settings.
Deploy an existing asset in Anypoint Exchange to CloudHub 2.0 or Runtime FabricDeploy app using sample-asset-name from Anypoint Exchange.
Generate a MCP server using Anypoint connectorsGenerate an MCP server that exposes 3 tools from the following operations: Workday - Absence Management - Get Time Off Plan Balances, Workday - Absence Management - Enter Time Off, and Google Calendar - Create Calendar Event.
List all policiesWhat policies do I have available?
Search for assets in ExchangeDo I have any assets for order notification in Exchange? OR Find all assets related to product synchronization.
View performance metrics for your APIs or appsWhich apps generated the most errors? OR Which apps have the highest latency? OR Show top APIs by call volume.
View reuse metricsShow reuse metrics.
View usage for your runtime applicationsShow me trends for flows, messages and data throughput.

Keywords

mulesoft

FAQs

Package last updated on 18 Jul 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