mulewatch
Read-only observability for MuleSoft Anypoint Platform over MCP, using your own credentials to inspect logs, runtime inventory, API Manager and Exchange.
Check credentials and current context (
anypoint_whoami)List business groups and environments, respecting an environment allowlist
List deployed apps across Application Manager (CloudHub 2.0/Runtime Fabric), legacy CloudHub, and hybrid on-prem
Fetch live-tail application logs from Runtime Manager
Get analysis-ready live logs with counts by priority, logger and instance, plus search and error-only filters
Search historical archived logs via Anypoint Monitoring Archive API for past-date incident investigation
List API Manager instances with asset, endpoint, technology and pagination filters
Search Exchange assets by text, type and pagination
All tools are read-only; no deploy, stop, restart or policy-mutation actions
Provides read-only observability for MuleSoft Anypoint Platform, allowing agents to inspect application logs, search historical archived logs, and query Runtime Manager, API Manager, and Exchange assets across business groups and environments.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mulewatch show me recent errors from the production payment API logs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
What it does
mulewatch bridges an MCP client — Claude Desktop, Claude Code, Cursor, OpenClaw — to MuleSoft Anypoint Platform, so you can ask about a Mule estate in plain language and get real answers from the platform APIs. It is aimed at the person holding the pager, not the person writing the flow: no local Mule project is required, and every tool is read-only.
Application logs from Runtime Manager, normalized across CloudHub 2.0, Runtime Fabric and legacy CloudHub.
Historical log search through the Anypoint Monitoring Archive API, reaching incidents long past the live tail's rolling buffer.
Analysis-ready log payloads — normalized lines plus counts by priority, logger and replica.
Runtime Manager inventory across Application Manager, CloudHub and hybrid on-prem targets.
API Manager instances and Exchange assets, so a single server answers "what is deployed, what is it fronted by, and what broke".
Nothing is hardcoded to one customer: business groups, environments and credentials all come from your own connected app.
How this relates to the official MuleSoft MCP server
MuleSoft publishes its own MCP server (mulesoft-mcp-server, docs). It is a development tool — it scaffolds Mule projects, generates flows and API specs, and deploys applications, largely from a local project in an IDE.
mulewatch is an operations tool. It never writes to your estate, it assumes no local project, and it covers the one area the official server does not address at all: retrieving and searching application logs, including historical logs from the Monitoring Archive. The two run happily side by side, and if you want deployment or scaffolding tools, use the official one.
Related MCP server: LGTM MCP Server
Requirements
Node.js 20+
An Anypoint Platform account with access to the business group you want to read
A connected app (recommended) with "acts on its own behalf" enabled, or platform credentials
For historical log search only: Anypoint Monitoring enabled for the organization
Connected-app scopes
Grant the scopes for the surfaces you intend to use, on the business groups and environments you care about. Anypoint returns a bare 403 Forbidden when a scope is missing; mulewatch catches that and names the scope you probably need.
Surface | Scope |
Environments, business groups |
|
Runtime Manager apps and logs |
|
Historical archive search | Anypoint Monitoring |
API Manager instances |
|
Exchange assets | Exchange viewer access |
Setup
Create a connected app in Anypoint Platform → Access Management → Connected Apps, choose "App acts on its own behalf (client credentials)", grant the scopes above, and copy the client id and secret.
Configuration is environment variables only — there is no config file and no organization default.
ANYPOINT_CLIENT_ID=your_connected_app_client_id
ANYPOINT_CLIENT_SECRET=your_connected_app_client_secretVariable | Required | Purpose |
| one auth method | Connected app client credentials, preferred for automation |
| one auth method | Platform login |
| one auth method | Pre-generated bearer token; takes precedence over the other two |
| no | Business group id. Unset means "the organization the credentials belong to" |
| no | Comma-separated environment names or ids; when set, every tool refuses anything outside the list |
| no | Control plane host, defaults to |
| no | Monitoring host, defaults to |
Business groups
Environments live on business groups, not on the root organization. If anypoint_list_environments comes back empty, your credentials resolved to the root org — call anypoint_list_business_groups to list the ids, then pass one as orgId or pin it with ANYPOINT_ORG_ID.
Keeping production out of reach
ANYPOINT_ALLOWED_ENVIRONMENTS scopes the whole server, not one tool. With
ANYPOINT_ALLOWED_ENVIRONMENTS=Dev,Sandboxevery tool refuses an environment outside the list and says why, whichever business group is targeted. Combine it with a connected app that only has access to those environments for defence in depth.
Run
Nothing to install — point your MCP client at npx:
{
"mcpServers": {
"mulewatch": {
"command": "npx",
"args": ["-y", "mulewatch"],
"env": {
"ANYPOINT_CLIENT_ID": "your_connected_app_client_id",
"ANYPOINT_CLIENT_SECRET": "your_connected_app_client_secret"
}
}
}
}That block works as-is in Claude Desktop (claude_desktop_config.json), Cursor (.cursor/mcp.json) and OpenClaw. For Claude Code:
claude mcp add mulewatch --env ANYPOINT_CLIENT_ID=... --env ANYPOINT_CLIENT_SECRET=... -- npx -y mulewatchFrom a clone instead:
npm install
npm run build
npm startThe server speaks stdio, which is what MCP clients expect. Start with anypoint_whoami to confirm credentials, business group and scope before anything else.
Tools
Every tool is read-only. All of them accept orgId to override the configured business group.
anypoint_whoami
Confirms which credentials, business group, hosts and environment allowlist the server is running with. No arguments. Call this first when anything fails.
anypoint_list_business_groups
Lists the business groups beneath the credentials' organization, with ids and nesting depth.
{ "rootOrgId": "optional-root-organization-id" }anypoint_list_environments
Lists environments for a business group, filtered by ANYPOINT_ALLOWED_ENVIRONMENTS when set.
{ "orgId": "your-business-group-id" }anypoint_list_deployed_apps
Lists deployed Mule applications for an environment, by environmentId or environmentName.
{ "environmentName": "Dev", "target": "all" }Option | Purpose |
|
|
| Maximum records to return, default |
| Include raw API objects in the response |
| Include per-target errors when a target endpoint is unavailable or not permitted |
application_manager covers CloudHub 2.0 and Runtime Fabric deployments, cloudhub legacy CloudHub, hybrid on-prem Runtime Manager. all queries every target and reports per-target failures instead of aborting.
anypoint_list_app_logs
Lists the latest Runtime Manager logs for an application.
{ "environmentName": "Dev", "appName": "my-mule-app" }Option | Purpose |
| Use instead of |
| Use when the app name is ambiguous or already known |
| A specific Application Manager deployment spec/config id |
|
|
| Maximum log entries, default |
| Application Manager log offset, default |
| Latest first, default |
| Application Manager time filter, ISO 8601 |
| Include the raw API response |
| Include failed target errors when |
For CloudHub 2.0 and Runtime Fabric the tool resolves appName to a deployment, resolves the current spec, then reads that spec's logs. For legacy CloudHub it calls the CloudHub logs endpoint directly.
anypoint_get_app_logs_for_analysis
Same sources as above, but returns an analysis-ready payload rather than a raw list. Prefer it when diagnosing something.
{ "environmentName": "Dev", "appName": "my-mule-app", "limit": 200, "errorOnly": true }Takes every option of anypoint_list_app_logs, plus:
Option | Purpose |
| Case-insensitive filters matched against timestamp, priority, message, logger, thread or instance |
| Only return |
The response carries analysis.totalFetched, analysis.totalMatched, analysis.priorityCounts, analysis.loggerCounts, analysis.instanceCounts and analysis.logs. Counts describe everything fetched; logs holds what matched.
anypoint_search_archived_logs
Searches historical logs through the Anypoint Monitoring Archive API, for dates beyond what the live tail can see.
This is the tool the others cannot replace. anypoint_list_app_logs and anypoint_get_app_logs_for_analysis read Runtime Manager's live tail — a small rolling buffer that can scroll out within minutes on a busy application, no matter what startTime/endTime you pass. The archive lands files roughly ten minutes after each ten-minute window closes and keeps them far longer.
Requires Anypoint Monitoring to be enabled for the organization. Without it every call 403s or 404s; fall back to a manual Download Logs export from the Runtime Manager UI.
{
"environmentName": "Prod",
"appName": "my-mule-app",
"date": "2026-08-09",
"searchTerms": ["Started product import", "Import finished"]
}Option | Purpose |
| Required, |
| Optional inclusive range end, |
| Case-insensitive text filters |
| Only return |
| Cap on replica entities probed during a full-scan fallback, default |
| Cap on archive files downloaded and parsed, default |
| Cap on matched lines returned, default |
| Include the raw parsed entry alongside the normalized fields |
How it finds your logs. The Archive API indexes per replica/pod ({appName}_{replicaId}), not per application, so the replica has to be identified before anything can be read. mulewatch first tries the replica ids visible in the live Runtime Manager tail (entityResolution: "live-replica") — pods are usually long-lived between redeploys, so that same replica normally produced the logs on recent past dates too, and a typical lookup costs a handful of archive calls. If that replica has no files for the requested dates — the application was redeployed since, say — it falls back to listing every replica the app has ever had and probing each (entityResolution: "full-scan"), bounded by maxEntities.
The Archive API allows 60 requests/minute; the client throttles beneath that and backs off on 429. A full-scan fallback across many replicas can take a while, so narrow the date range where you can. The response reports which path was taken and whether any cap truncated the result.
anypoint_list_api_manager_instances
Lists API instances managed by API Manager in an environment.
{ "environmentName": "Dev", "assetId": "my-api" }Option | Purpose |
| Filter by Exchange asset id |
| Filter by technology, e.g. |
| Pagination, default |
| Include raw API objects |
anypoint_search_exchange_assets
Searches Anypoint Exchange for assets in the organization.
{ "search": "customer", "types": ["rest-api"], "limit": 20 }Option | Purpose |
| Free-text search over asset names and descriptions |
| Filter by asset type, e.g. |
| Pagination, default |
| Include raw API objects |
Tech stack
Layer | Technology |
Runtime | Node.js 20+, ES modules |
Language | TypeScript 5.7, |
Protocol | Model Context Protocol SDK 1.30, |
Validation | zod 4 |
Auth | Anypoint |
Tests |
|
Repository layout
.
├── src/
│ ├── index.ts # bin entry: config check, stdio wiring
│ ├── tools.ts # MCP tool registration and argument schemas
│ ├── client.ts # AnypointClient: auth, org resolution, all API calls
│ ├── config.ts # env-var config, environment allowlist
│ ├── normalize.ts # envelope unwrapping, log normalization, analysis
│ ├── archive-parse.ts # archive log line parsing, date range enumeration
│ └── errors.ts # AnypointApiError and message formatting
├── test/ # unit tests for the pure logic
├── docs/
│ ├── logo.png # project mark, used in this README
│ └── og-image.png # social preview card
├── server.json # MCP registry manifest
├── PRICING.md # positioning notes
└── .env.exampleVerification status
Read paths were exercised against a live Anypoint organization during development:
Tool | Status |
| Verified live |
| Verified live |
| Verified live |
| Verified live ( |
| Verified live (Application Manager path) |
| Verified live (Application Manager path) |
| Verified live |
| Verified live — both the |
| Not verified — the test connected app lacked the |
On the application used for that check, the archive held 669 historical replica entities. Searching the current day resolved through the live-replica fast path and probed one of them, finding 127 archive files and parsing 2,859 log lines. Searching a date from before the last redeploy correctly fell through to the full-scan path, which is the slow case the maxEntities cap exists to bound.
Notes
Every tool is read-only. There are no deploy, stop, restart or policy-mutation tools, by design — an LLM should not be mutating a production Mule estate, and the official MuleSoft server already covers deployment.
Tokens are cached in memory until a minute before expiry and never written to disk.
Credentials are read from the environment only; nothing is logged.
Anypoint returns bare
403s for missing connected-app scopes. Those are caught and annotated with the scope that is probably missing.EU and other control planes work by overriding
ANYPOINT_BASE_URLandANYPOINT_MONITORING_BASE_URL.
License
Apache-2.0. MuleSoft, Anypoint Platform and CloudHub are trademarks of Salesforce, Inc.; this is an independent project and is not affiliated with or endorsed by Salesforce.
Available Tools
9 toolsanypoint_get_app_logs_for_analysisAnalyze application logsA
Fetch live-tail logs for a Mule application and return an analysis-ready payload: normalized lines plus counts by priority, logger and instance. Prefer this over anypoint_list_app_logs when diagnosing a problem.
Inputs: appName (required), limit, orgId, offset, +12 more.
anypoint_list_api_manager_instancesList API Manager instancesB
List API instances managed by Anypoint API Manager in an environment, with their assets, endpoints and technology.
Inputs: limit, orgId, offset, assetId, +4 more.
anypoint_list_app_logsList application logsA
List the latest Runtime Manager logs for a Mule application. This reads the live tail only — a small rolling buffer. For anything older than the buffer, use anypoint_search_archived_logs.
Inputs: appName (required), limit, orgId, offset, +10 more.
anypoint_list_business_groupsList business groupsA
List the business groups under the credentials' organization, with their ids. Environments live on business groups, not on the root organization — call this first if anypoint_list_environments returns nothing.
Inputs: rootOrgId.
anypoint_list_deployed_appsList deployed applicationsB
List deployed Mule applications in an environment, across Application Manager (CloudHub 2.0 / Runtime Fabric), legacy CloudHub, and hybrid on-prem targets.
Inputs: limit, orgId, target, includeRaw, +3 more.
anypoint_list_environmentsList environmentsA
List the Anypoint environments in a business group. If this returns nothing, the orgId is probably the root organization — call anypoint_list_business_groups to find the right id. Restricted to ANYPOINT_ALLOWED_ENVIRONMENTS when that is set.
Inputs: orgId.
anypoint_search_archived_logsSearch archived logsA
Search historical Mule application logs via the Anypoint Monitoring Archive API, for dates beyond the live tail's rolling buffer. Requires Anypoint Monitoring to be enabled for the organization. Use this for any past-date incident investigation.
Inputs: date (required), appName (required), limit, orgId, +8 more.
anypoint_search_exchange_assetsSearch Exchange assetsC
Search Anypoint Exchange for assets in the organization — APIs, connectors, templates, examples and fragments.
Inputs: limit, orgId, types, offset, +2 more.
anypoint_whoamiCheck Anypoint connectionA
Verify the configured Anypoint credentials and show which business group, host and environment allowlist this server is operating with. Use this first when a call fails.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools target a clearly distinct resource (environments, business groups, deployed apps, API instances, exchange assets). The only real overlap is anypoint_list_app_logs vs anypoint_get_app_logs_for_analysis, which both read the live tail, but the descriptions explicitly differentiate them and recommend the analysis variant for diagnosis.
All nine tools follow a strict anypoint_verb_noun pattern (list_environments, get_app_logs_for_analysis, search_archived_logs, etc.). The prefix is uniform and verb choice (list/get/search) is used predictably.
Nine tools is well within the sweet spot for an observability/management server. Each tool maps to a distinct Anypoint concern (org topology, apps, logs, API manager, exchange) so nothing feels padded.
The surface covers topology discovery, app listing, live and archived logs, API instances, and Exchange assets — a solid monitoring story. Minor gaps remain: no single-app detail/health/metrics lookup and only list-style access for apps, but agents can work around these with the existing calls.
Maintenance
Related MCP Connectors
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Query your app's logs, metrics and incidents from your AI assistant.
Read-only access to Auralogs production logs: search logs, inspect errors, review AI analyses.
Read-only MCP access to a documented IT fleet: state, changes, posture. 15 tools.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables natural-language investigation of Datadog data including logs, metrics, monitors, traces, hosts, dashboards, events, and incidents, all through read-only API access.141,955 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides read-only access to Loki, Prometheus, and Tempo APIs, enabling natural language queries for logs, metrics, and traces. Supports multiple instances and authentication via bearer tokens.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to inspect Oracle Integration Cloud integrations, connections, runtime instances, errors, and flow logs through natural-language queries.MIT
- FlicenseNot gradedqualityBmaintenanceEnables read-only querying and analysis of Azure API Management resources, including API inventories, OpenAPI specs, policies, service health, metrics, gateway logs, and semantic search across the API surface.-