
mulewatch
io.github.brbousnguarPublished by GitHub account brbousnguarv0.1.2Updated Oct 25, 2026
Read-only MCP server for MuleSoft Anypoint: app logs, archive search, Runtime Manager, Exchange.
Overview
Read-only MCP server for MuleSoft Anypoint that lets an assistant inspect deployed Mule apps, application logs, archived logs, API Manager instances andExchange
- What you can do
- Confirm credentials, business group, hosts and environment allowlist, and list business groups and environments under the organization's credentials
- When to use it
- Useful for operators who need to diagnose a Mule estate in plain language: what is deployed, what fronts it, and what broke. It suits log triage and historical incident searches without a local Mule project; for scaffolding, flow generation or deployment, the official MuleSoft server is the better fit.
- Requirements
- Node.js 20+ and an Anypoint Platform account with access to the target business group. A connected app acting on its own behalf (client id and secret) or platform credentials, plus scopes for the surfaces used. Historical archive search needs Anypoint Monitoring enabled. Configured only through environment variables.
Installation
In SourceWeft
- Open mulewatch in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
mulewatch
Read-only observability for MuleSoft Anypoint Platform, over MCP.
Application logs, historical archive search, Runtime Manager, API Manager and Exchange — for any Anypoint customer, using their own credentials.
[mulewatch on npm]
[Listed in the MCP registry]
[Apache-2.0 licensed]
[Platform]
[MCP SDK]
[Node.js]
[MuleSoft Anypoint]
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.
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.
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.
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
every 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:
That block works as-is in Claude Desktop (claude_desktop_config.json), Cursor (.cursor/mcp.json) and OpenClaw. For Claude Code:
From a clone instead:
The 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.
anypoint_list_environments
Lists environments for a business group, filtered by ANYPOINT_ALLOWED_ENVIRONMENTS when set.
anypoint_list_deployed_apps
Lists deployed Mule applications for an environment, by environmentId or environmentName.
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.
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.
Takes every option of anypoint_list_app_logs, plus:
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.
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.
anypoint_search_exchange_assets
Searches Anypoint Exchange for assets in the organization.
Tech stack
Repository layout
Verification status
Read paths were exercised against a live Anypoint organization during development:
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.
Source: README.md at commit 016da7a
Tools
0Version history
2- v0.1.2LatestSep 18, 2026
- v0.1.1Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts

