What MCP is
MCP — the Model Context Protocol — is a standard way for an AI to use outside tools. Think of it as a universal adapter: instead of every tool building its own custom integration, they all speak one protocol, and OpenClaw can use any of them. It's the difference between an agent that only chats and one that can open a browser, read a database, or push to a repo.
What it unlocks
The useful part isn't the protocol, it's what you can plug in. A few that earn their keep:
- Browser automation — let the agent open a page, click, and scrape, with a real session instead of a raw HTTP call.
- Filesystem — scoped read/write access so the agent can work with your files directly.
- GitHub / GitLab — review PRs, file issues, read issues, without pasting API keys into prompts.
- Databases — query Postgres or SQLite and hand you back results instead of a wall of JSON.
Adding a server
The pattern is consistent across servers: point OpenClaw at the MCP server's command or URL, restart, and the new tools show up. The exact config key varies by release, so grab the current spelling from the docs rather than trusting a stale example.
openclaw config add mcp-server --name "filesystem" --command "npx -y @modelcontextprotocol/server-filesystem /path/to/dir"
After restarting, confirm it registered — the agent should now list the new tool when you ask what it can do. If a tool doesn't appear, nine times out of ten it's a config key mismatch or the server command failing to start.
Safety first
Every MCP server is a new set of permissions you're handing the agent. A browser-automation server that runs with your logged-in session can do anything you can do in that browser. A filesystem server with a too-wide path can read or delete more than you meant.
Two habits that keep this safe: scope every server to the smallest path or account it needs, and don't add a server unless you have a concrete task for it. A lean agent with three well-scoped tools beats a bloated one with twenty you'll never audit. The gateway and sandbox still apply on top.