Install
openclaw skills install mcp-marketplaceInstall, configure, and manage MCP servers. Search 50+ verified servers plus npm and Smithery registries. Auto-generate configs for OpenClaw, Claude Desktop, Claude Code, and Cursor. Health check servers, troubleshoot issues. Use for: "install GitHub MCP", "add Postgres MCP server", "find database servers", "show my MCP servers", "remove Slack MCP", "set up Notion MCP", "what MCP servers are available", "is my server working", "test the GitHub MCP". Covers: MCP install, setup, configure, discover, search, remove, uninstall, list, status, update, add server, connect server, health check, troubleshoot.
openclaw skills install mcp-marketplaceHelp users discover, install, configure, and manage MCP servers. Supports OpenClaw, Claude Desktop, Claude Code, and Cursor.
${VAR_NAME}), never raw tokens. Never ask the user to paste their actual token in chat.Classify the user's request into one of these intents, then follow the corresponding workflow.
python3 {baseDir}/scripts/search_registries.py --query "<user's topic>" [--category "<category>"]
clawHubMatch is present, mention the bundle first: "There's a [bundle name] plugin on ClawHub with [N] skills — want that instead?""source": "npm" or "source": "smithery", add a note: "This server is from [npm/Smithery] and hasn't been verified by our team. It should work but proceed with caution."python3 {baseDir}/scripts/smart_recommend.py [--max-results 5]
Present recommendations with their reasons (which installed servers they complement). Offer to install any.This is the most complex flow. Follow all steps in order.
Step 1 — Search:
python3 {baseDir}/scripts/search_registries.py --query "<server name>"
Step 2 — ClawHub bundle offer:
If clawHubMatch is present, offer the bundle:
I found a [bundle displayName] plugin on ClawHub that includes the MCP connection plus [skillCount] additional skills. Would you like the full bundle, or just the raw MCP connection?
If user wants the bundle, guide them to install via ClawHub (clawhub install <bundleId>). Then record the install and stop.
Step 3 — Confirm server: If multiple results, present a numbered list and ask user to pick. If one result, confirm: "I'll set up [displayName] — sound good?"
Step 3.5 — Compatibility check (if non-default client): If the user specified a client or you detected a non-OpenClaw client, check compatibility:
python3 {baseDir}/scripts/check_compatibility.py --server-id "<id>" --client "<client>"
If compatible is false, warn the user and suggest alternatives. If there are warnings, mention them but proceed.
Step 4 — Build config:
python3 {baseDir}/scripts/build_config.py --server-id "<id>" [--client "<client>"]
The --client flag is optional. If omitted, the script auto-detects the client (OpenClaw, Claude Desktop, Claude Code, or Cursor). The output includes mergeTarget (the config file path) and client (the detected client name).
Step 5 — Auth guidance (if server has requiredEnv): Follow the Auth Guidance Pattern below. Wait for user to confirm they have their token ready before proceeding.
Step 6 — Check prerequisites and install:
python3 {baseDir}/scripts/install_server.py --server-id "<id>"
This script checks prerequisites and returns the install command — it does NOT run it.
prerequisitesMet is false, show the prerequisites.suggestion and help the user install the prerequisite first.prerequisitesMet is true, run the installCommand.command directly using the Bash tool. For example, if the output says "command": "npx -y @github/mcp-server --help", run that command to verify the package resolves.installCommand.command is null (HTTP servers), skip — no install needed.installCommand.fallbackCommand if present, or consult {baseDir}/references/troubleshooting.md.Step 7 — Write config:
Present the configEntry from step 4 and explain it needs to be added to the config file at mergeTarget (the path returned by build_config.py). If the config file exists, merge the new server entry into the existing mcpServers object. If it doesn't exist, create it:
{
"mcpServers": {
<configEntry content here>
}
}
Step 8 — Record state:
python3 {baseDir}/scripts/manage_servers.py --action record --server-id "<id>" --package "<package>" --transport "<transport>" --install-method "<method>" --source "<source>"
Use --source curated, --source npm, or --source smithery based on where the server was found.
Step 8.5 — Health check (optional):
python3 {baseDir}/scripts/health_check.py --server-id "<id>"
If status is "healthy", include the tool count in the summary. If "unhealthy" or "error", troubleshoot before declaring success — consult {baseDir}/references/troubleshooting.md.
Step 9 — Summary: Tell the user what was installed, what tools are now available (from health check if run), and remind them to restart their client to pick up the new server.
If user mentions a specific bundle, resolve it. If they describe a use case, match to the closest bundle:
python3 {baseDir}/scripts/bulk_install.py --bundle "<bundle-name>"
Available bundles: standard-dev, data-engineering, web-frontend, devops, productivity, ai-ml.
If unsure which bundle, list them all:
python3 {baseDir}/scripts/bulk_install.py --bundle __list__
Present the options and let the user choose.
Present the install plan: show which servers will be installed and which are already configured.
For each server in toInstall, follow the INSTALL workflow (Steps 3-9). Process them one at a time, confirming auth requirements for each.
After all servers are installed, present a summary: "Installed X servers, Y were already configured."
python3 {baseDir}/scripts/detect_servers.py --verbose
unconfigured has entries: "I found [count] MCP server packages on your system that aren't configured yet: [list them]. Want me to set up any of them?"alreadyConfigured has entries: mention them as already active.Scan the project:
python3 {baseDir}/scripts/recommend_servers.py [--project-dir "<path>"]
If the user specifies a project type: python3 {baseDir}/scripts/recommend_servers.py --template "<type>"
Available templates: python-web, node-fullstack, data-science, mobile, devops, static-site.
If detected is true:
If detected is false:
build_config.py --server-id "<id>" with any custom env/args the user provides:
python3 {baseDir}/scripts/build_config.py --server-id "<id>" --custom-env '{"KEY": "${KEY}"}'
.mcp.json config entry.python3 {baseDir}/scripts/manage_servers.py --action list
"configPresent": false, warn: "This server is recorded but its config entry was not found. It may need to be re-configured."python3 {baseDir}/scripts/manage_servers.py --action status --server-id "<id>"
.mcp.json."python3 {baseDir}/scripts/manage_servers.py --action remove --server-id "<id>"
.mcp.json and restart OpenClaw.Run version check:
python3 {baseDir}/scripts/version_check.py
For a specific server: python3 {baseDir}/scripts/version_check.py --server-id "<id>"
Present results:
updateAvailable: true: show current vs latest version and the updateCommand.note (npx/uvx/http): explain they auto-resolve or are managed remotely.docker pull to refresh the image.If the user wants to update, run the updateCommand for each server via the Bash tool.
After updating, optionally run a health check to verify the updated server works.
python3 {baseDir}/scripts/health_check.py --server-id "<id>"
status is "healthy":
status is "unhealthy" or "error":
{baseDir}/references/troubleshooting.md for the specific error.python3 {baseDir}/scripts/manage_servers.py --action update-status --server-id "<id>" --status errorpython3 {baseDir}/scripts/health_check.py --server-id "<id>"
{baseDir}/references/troubleshooting.md.python3 {baseDir}/scripts/manage_servers.py --action update-status --server-id "<id>" --status activeGather server details from the user:
my-server)stdio or httpnpx, npm, uvx, pip, http, or dockerGenerate and validate the entry:
python3 {baseDir}/scripts/contribute_server.py --id "<id>" --display-name "<name>" --description "<desc>" --package "<pkg>" --transport "<transport>" --install-method "<method>" --categories "<cat1,cat2>" --tags "<tag1,tag2>" --required-env "<VAR1,VAR2>"
If valid is true: present the serverEntry JSON and the prBody template. Guide the user to submit a PR to the marketplace repository.
If valid is false: show the validationErrors and help the user fix them, then re-run.
When a server requires environment variables:
authGuidance.instructions).export VAR_NAME=<your-value-here>~/.zshrc (or ~/.bashrc) so it persists across sessions."${VAR_NAME} references.export to .zshrc, check for a secrets manager:
python3 {baseDir}/scripts/secrets_helper.py --action detect
If managers are found, offer the option: "I detected [manager name] on your system. Want to store this token there instead of in your shell profile? It's more secure."
If yes, generate the store command:
python3 {baseDir}/scripts/secrets_helper.py --action store-command --manager "<manager>" --service "<server-name>" --env-var "<VAR_NAME>"
Present the storeCommand for the user to run, then show the shellIntegration line to add to ~/.zshrc.When authGuidance.authType is "oauth":
authGuidance.oauthSetupSteps as a numbered list.GOOGLE_APPLICATION_CREDENTIALS).{baseDir}/references/troubleshooting.md for the specific error and guide the user.{baseDir}/references/transport-patterns.md and walk through it.python3 {baseDir}/scripts/health_check.py --server-id "<id>" to diagnose. Consult {baseDir}/references/troubleshooting.md.--timeout 30.mergeTarget path from build_config.py. See {baseDir}/references/troubleshooting.md for client-specific config paths.Available category filters for discovery: developer-tools, database, communication, productivity, cloud-infra, ai-ml, data, cms-content, finance, observability, search, auth, storage, version-control, browser.