Skip to content

apm mcp

Discover, inspect, and install MCP servers from the public MCP registry (or 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. 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

Common forwarded options (see apm install --mcp --help for the full list):

FlagDescription
--transport [stdio|http|sse|streamable-http]Transport type.
--url URLServer URL for remote transports.
--env KEY=VALUEEnvironment variable. Repeatable.
--header KEY=VALUEHTTP header. Repeatable.
--registry URLCustom registry URL for this invocation.
--mcp-version VERPin the registry entry to a specific version.
--devAdd to devDependencies.
--dry-runResolve and print without writing apm.yml.
--forceOverwrite an existing entry.
--no-policySkip policy checks.
--verbose, -vVerbose output.
VariableEffect
MCP_REGISTRY_URLOverride the registry endpoint used by list, search, show, and install. When set, every command prints a one-line Registry: <url> diagnostic so the override is visible. Unset: the public default registry is used silently.

Network failures against an overridden registry surface an explicit hint pointing at MCP_REGISTRY_URL so misconfigurations are easy to spot in CI logs.

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 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:

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