Skip to content

apm mcp

Discover, inspect, and install MCP servers from an MCP registry: the curated GitHub MCP Registry by default, or another registry such as an enterprise mirror.

Terminal window
apm mcp list [--limit N] [--verbose]
apm mcp search QUERY [--limit N] [--verbose]
apm mcp show SERVER_NAME [--verbose]
apm mcp install NAME [-- runtime args...]

apm mcp groups read-only registry queries (list, search, show) plus a thin install alias.

The canonical install path for MCP servers is apm install --mcp NAME. It edits apm.yml, resolves the registry entry, and writes the resulting mcpServers block to your project. With -g or --global, it creates or updates $APM_HOME/apm.yml (default ~/.apm/apm.yml) and writes only to global-capable runtime configurations. apm mcp install is a forwarder that calls the same code path — use whichever spelling you prefer.

For an end-to-end consumer walkthrough (declaring an MCP server in apm.yml, configuring transport and credentials, deploying to a runtime), see Install MCP servers.

List servers published to the registry.

Terminal window
apm mcp list # first 20 entries
apm mcp list --limit 50
FlagDescription
--limit NNumber of results to show. Default: 20.
--verbose, -vShow detailed diagnostic output.

Substring search across registry entries.

Terminal window
apm mcp search github
apm mcp search fetch --limit 5
FlagDescription
--limit NNumber of results to show. Default: 10.
--verbose, -vShow detailed diagnostic output.

Print full metadata for a single server: version, repository, deployment type (remote endpoint and/or local package), and the steps to add it to a project.

Terminal window
apm mcp show io.github.modelcontextprotocol/server-fetch
FlagDescription
--verbose, -vShow detailed diagnostic output.

Exit code 1 if the server name is not present in the registry.

Alias for apm install --mcp NAME. All flags and the post--- runtime command are forwarded verbatim.

Terminal window
apm mcp install fetch -- npx -y @modelcontextprotocol/server-fetch
apm mcp install api --transport http --url https://example.com/mcp

apm mcp install --help lists these forwarded install options under “Forwarded install options”. Their help text, accepted values, and shell completion come from apm install itself, so they always match apm install:

--transport, --url, --env, --header, -t/--target, --registry, --mcp-version, -g/--global, --trust-transitive-mcp, --dev, --dry-run, --force, -v/--verbose, --no-policy.

Other apm install options are passed through unchanged. With -g, the server is recorded in $APM_HOME/apm.yml (default ~/.apm/apm.yml); APM_HOME does not redirect runtime configuration.

VariableEffect
MCP_REGISTRY_URLOverride the registry endpoint used by list, search, show, and install. Read-only commands print Registry: <url> (from MCP_REGISTRY_URL); installs print Using MCP registry: <url> (from MCP_REGISTRY_URL). Unset: the default GitHub MCP Registry is used silently.

Network failures against an overridden registry name the setting that supplied the URL so misconfigurations are easy to spot in CI logs. Direct apm install --mcp lookup also fails closed before writing user state.

See apm config for the canonical resolution order. The same chain resolves dependencies.mcp; a per-dependency registry: URL overrides it for that entry only. To compare curated and open registries, see Choosing an MCP registry. Whenever a non-default endpoint is in effect, apm install names it once with Using MCP registry: <url> (<source>) before the lookup.

Environment-selected and per-dependency http:// endpoints require MCP_REGISTRY_ALLOW_HTTP=1 when used. A persisted mcp-registry-url and an explicit --registry http://... flag are deliberate opt-ins.

Discover and inspect:

Terminal window
apm mcp search github
apm mcp show io.github.github/github-mcp-server

Install a stdio server with a runtime command:

Terminal window
apm mcp install fetch -- npx -y @modelcontextprotocol/server-fetch

Install the same server at user scope:

Terminal window
apm mcp install fetch -g --target claude -- npx -y @modelcontextprotocol/server-fetch

This creates or updates $APM_HOME/apm.yml (default ~/.apm/apm.yml) and the selected runtime’s user configuration.

Install a remote HTTP server:

Terminal window
apm mcp install api --transport http --url https://example.com/mcp \
--header "Authorization=Bearer $TOKEN"

Point at an enterprise registry mirror (session only):

Terminal window
export MCP_REGISTRY_URL=https://mcp.internal.example.com
apm mcp list

Point at an enterprise registry mirror (persistent across sessions):

Terminal window
apm config set mcp-registry-url https://mcp.internal.example.com
apm mcp list
# Remove the persisted URL:
apm config unset mcp-registry-url

The registry must implement the MCP Registry v0.1 spec (apm calls /v0.1/servers/...). Registries serving only the legacy /v0/ paths will return 404.

Copyright (c) Microsoft Corporation. General documentation: CC-BY-4.0. Software, code examples and OpenAPM: Apache-2.0. See scope and exclusions.