@mulesoft/mcp-server

1.0.3 • Public • Published

@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

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: Find an Anypoint Exchange asset by name or other parameters you specify. Returns the first asset that matches input criteria.
  • 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.

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.

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

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

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

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

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

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

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 Fabric Deploy app using sample-asset-name from Anypoint Exchange.
Create an implementation project Create a Mule project that creates an order in NetSuite every time an opportunity in Salesforce is updated to stage Closed Won.
Deploy an implementation application Deploy Mule application in current project. Deploy with high security, high availability, and performance optimized settings.

Readme

Keywords

Package Sidebar

Install

npm i @mulesoft/mcp-server

Weekly Downloads

64

Version

1.0.3

License

none

Unpacked Size

1.39 MB

Total Files

4

Last publish

Collaborators

  • mulesoft-itops
  • cesaraugustogarcia
  • christianvogel
  • mulesoft-npm
  • nescalante
  • mcampo
  • nanovazquez
  • mulesoft-bot