Getting started · config first
OpenClaw MCP quick start: make one server work first
This page is for getting a real MCP server running with the smallest safe config, then knowing exactly where to look when OpenClaw cannot start it.
Last reviewed: 2026-04. Verify against the latest OpenClaw docs before production use.
Who this is for / not for
Good fit
- First-time OpenClaw + MCP setup
- Safely exposing one local project folder
- Fixing invalid JSON, server failed to start, or permission errors
Not a fit
- Enterprise permission architecture
- Bypassing OAuth or platform security controls
- Opening broad local access before deciding what AI may read
Before you paste this config
Create a dedicated workspace folder first. Do not expose your full home directory, filesystem root, desktop dump, SSH keys, cloud credentials, cookies, or production secrets.
Minimal working config
Start with one filesystem server and one relative directory. This keeps OpenClaw inside ./openclaw-workspace while you prove the MCP connection works.
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "./openclaw-workspace"]
}
}
} Safer config
Split real project files from scratch output. The dangerous permissions are root, home, credential folders, production secret folders, and broad write access to places you do not review.
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"./openclaw-workspace",
"./openclaw-scratch"
]
}
}
} Verify the MCP server
Create the allowed folders, then check whether OpenClaw sees the server.
mkdir -p openclaw-workspace openclaw-scratch
openclaw status Expected result: OpenClaw should show the filesystem server as loaded. Then ask it to list ./openclaw-workspace. Attempts to read outside the allowed folders should be denied.
Magic Setup - Zero Config Required
Copy this prompt and paste it into openclaw. It will auto-install 4 essential MCP servers in 30 seconds.
Common errors
command not found
Symptom: OpenClaw or npx is not recognized. Cause: OpenClaw/Node is not installed or PATH is stale. Fix: reopen the terminal and confirm node -v, npx -v, and openclaw status. Ask for review if the shell and app disagree.
invalid JSON
Symptom: OpenClaw fails before the server starts. Cause: trailing comma, bad quote, escaped Windows path, or comments in JSON. Fix: validate the mcpServers block alone. Ask for review when the parser location is unclear.
server failed to start
Symptom: filesystem never reaches running state. Cause: npx cannot fetch the package, package name is wrong, or network policy blocks npm. Fix: run the verify command and check npm access.
path not allowed
Symptom: file reads are rejected. Cause: the requested path is outside the allowed args. Fix: add only the specific project folder you need; never use home or root as the quick fix.
When to ask for review
If you have removed secrets but still cannot tell whether the breakage is JSON, path scope, Node/npm, or OpenClaw config location, send the config snippet and error log for review.
Next step
After the minimal setup works, use the Top 10 list to choose GitHub, search, browser, or database MCPs. Top 10 list.