Every AI agent framework eventually runs into the same problem: integrations. You build a GitHub integration, then someone needs Jira. You add Jira, and they need Linear. You add Linear, and they need Notion. Each integration is custom code that only works inside your framework. The wheel gets reinvented constantly.
MCP — the Model Context Protocol — was built to end that cycle. Released by Anthropic in late 2024 and now adopted across the industry, MCP is to AI tools what USB is to hardware: a single standard that lets any tool plug into any AI agent.
OpenClaw's skills system is MCP-compatible. You can plug any MCP server into your SOUL.md and your agent gains access to that tool instantly — no custom code, no framework-specific wrapper, no rebuilding integrations that already exist.
This guide covers what MCP is, why it matters in 2026, how OpenClaw implements it, and how to connect real MCP servers — GitHub, PostgreSQL, Brave Search, and more — to your agents.
MCP (Model Context Protocol) is an open standard that defines how AI agents communicate with external tools and data sources. It has two sides:
list_pull_requests, create_issue, and read_file. A PostgreSQL MCP server exposes run_query, list_tables, and describe_schema.The key insight is that an MCP server is written once and works everywhere. If the GitHub team publishes an official MCP server, every MCP-compatible AI tool gets GitHub integration automatically. No framework needs to build and maintain its own GitHub connector.
Think of it as the USB standard for AI tools. Before USB, every device needed a proprietary cable. After USB, you plug anything into anything. MCP does the same for AI integrations.
MCP launched in late 2024 as a spec and a handful of reference implementations. By early 2026, it has become the de facto standard for AI tool integration. The adoption curve has been steep:
@modelcontextprotocol npm scope alone has dozens of servers. The community has published hundreds more.For OpenClaw users, this means a rapidly growing library of pre-built tools you can plug into any agent without writing integration code. The work of connecting to GitHub, Slack, Postgres, or Brave Search has already been done — and it follows a standard you can rely on.
OpenClaw integrates MCP at the SOUL.md level. You declare MCP servers in the skills section of your agent configuration. The OpenClaw gateway starts each MCP server as a child process, establishes a connection over stdio, and makes the server's tools available to the agent alongside its built-in skills.
From the agent's perspective, MCP tools look identical to built-in skills. The agent does not know or care whether a tool came from an MCP server or a built-in integration. It simply sees a set of available tools and uses whichever one fits the task.
Here is what MCP configuration looks like in SOUL.md:
## Skills
- browser: Search the web
- mcp:
server: npx @modelcontextprotocol/server-github
env:
GITHUB_TOKEN: YOUR_TOKEN
- mcp:
server: npx @modelcontextprotocol/server-postgres
env:
POSTGRES_URL: YOUR_DB_URLEach mcp: block specifies a server command and any environment variables the server needs (API keys, connection strings, tokens). The gateway handles starting, restarting, and shutting down the server process.
Let's walk through adding the GitHub MCP server to an OpenClaw agent. This server gives your agent the ability to read repositories, list pull requests, create issues, review code, and more.
If you do not have an agent yet, create one. If you have an existing agent, open its SOUL.md file.
# Create a new agent
openclaw agents add github-assistant
# Navigate to its workspace
cd ~/.openclaw/agents/github-assistant/The GitHub MCP server needs a token to authenticate. Go to GitHub Settings → Developer settings → Personal access tokens → Fine-grained tokens and create a token with the permissions your agent needs: repository read/write, issues, pull requests.
Open your agent's SOUL.md and add the MCP skills section. Here is a complete example for a GitHub assistant agent:
# SOUL.md — GitHub Assistant
## Identity
You are a GitHub Assistant. You help developers manage repositories, review pull requests, triage issues, and understand codebases. You have direct access to GitHub via MCP tools.
## Behavior
- When asked about a repository, use your GitHub tools to fetch real data — do not guess
- For pull request reviews, read the diff and provide specific, actionable feedback
- When creating issues, ask for title and description before submitting
## Skills
- mcp:
server: npx -y @modelcontextprotocol/server-github
env:
GITHUB_TOKEN: ghp_YOUR_TOKEN_HERE
## Channels
- telegramStart or restart the OpenClaw gateway. It will read your SOUL.md, see the MCP server declaration, and start the GitHub MCP server as a subprocess.
# Start the gateway
openclaw gateway start
# Or restart if it's already running
openclaw gateway restart
# Verify the MCP server is connected
openclaw gateway statusSend a message to your agent that requires GitHub access. If the MCP server is connected correctly, the agent will use its GitHub tools to fetch real data.
# Ask the agent about a repository
openclaw agent --agent github-assistant \
--message "List the open pull requests in mergisi/awesome-openclaw-agents"
# Ask for a code review
openclaw agent --agent github-assistant \
--message "Review PR #47 in mergisi/awesome-openclaw-agents and summarize the changes"
# Create an issue
openclaw agent --agent github-assistant \
--message "Create an issue in mergisi/awesome-openclaw-agents titled 'Add MCP skill templates'"The MCP ecosystem has a server for almost every developer tool. Here are the most useful ones to add to OpenClaw agents, with the exact SOUL.md configuration for each.
Repository management, pull request reviews, issue triage, code search, and file reading. The most widely used MCP server by far.
## Skills
- mcp:
server: npx -y @modelcontextprotocol/server-github
env:
GITHUB_TOKEN: YOUR_GITHUB_PATTools exposed: list_repos, get_file_contents, list_pull_requests, create_issue, search_code, get_pull_request, and more.
Run SQL queries, inspect schemas, and analyze data from a PostgreSQL database. Perfect for analytics agents and data pipeline monitoring.
## Skills
- mcp:
server: npx -y @modelcontextprotocol/server-postgres
env:
POSTGRES_URL: postgresql://user:pass@host:5432/dbnameTools exposed: query, list_tables, describe_table. The server is read-only by default for safety.
Same as PostgreSQL but for local SQLite databases. Great for personal agents, log analysis, and offline workflows.
## Skills
- mcp:
server: npx -y @modelcontextprotocol/server-sqlite
env:
SQLITE_DB_PATH: /path/to/your/database.dbWeb search via Brave's Search API. Returns structured results with titles, URLs, and descriptions. Better privacy than Google and widely used in production MCP setups.
## Skills
- mcp:
server: npx -y @modelcontextprotocol/server-brave-search
env:
BRAVE_API_KEY: YOUR_BRAVE_API_KEYGet a free API key at brave.com/search/api. The free tier covers 2,000 queries per month — enough for most agent workloads.
Read and write files on the local filesystem. Useful when you want controlled file access beyond OpenClaw's built-in file skill. You specify which directories are accessible.
## Skills
- mcp:
server: npx -y @modelcontextprotocol/server-filesystem /Users/me/projects /Users/me/documentsThe paths after the server command are the allowed directories. The server refuses requests to access anything outside those paths.
Browser automation via Puppeteer. Navigate pages, take screenshots, fill forms, and extract content from JavaScript-rendered sites. Complements OpenClaw's built-in browser skill with a different automation backend.
## Skills
- mcp:
server: npx -y @modelcontextprotocol/server-puppeteerTools exposed: navigate, screenshot, click, fill, evaluate, get_content.
Read and send Slack messages, list channels, search messages, and manage notifications. Combine with OpenClaw's built-in Slack channel to get both inbound (from Slack) and outbound (to Slack via MCP) capabilities.
## Skills
- mcp:
server: npx -y @modelcontextprotocol/server-slack
env:
SLACK_BOT_TOKEN: xoxb-YOUR-BOT-TOKEN
SLACK_TEAM_ID: YOUR_TEAM_IDHere is a complete SOUL.md for an SEO research agent that combines GitHub MCP (for storing reports) and Brave Search MCP (for live web research). This is the kind of agent that used to require custom integration code for each tool.
# SOUL.md — SEO Research Agent
## Identity
You are an SEO research specialist. You analyze keywords, study competitor content, identify ranking opportunities, and produce actionable reports. You use web search to find current data and GitHub to store and version your research.
## Behavior
- Always search the web before making claims about keyword trends or competitor rankings
- Store research reports as markdown files in the GitHub repository
- Structure reports with: executive summary, keyword analysis, competitor landscape, recommendations
- When asked to research a topic, ask: target market, competitors to include, and report depth (quick vs. deep)
## Skills
- mcp:
server: npx -y @modelcontextprotocol/server-brave-search
env:
BRAVE_API_KEY: YOUR_BRAVE_API_KEY
- mcp:
server: npx -y @modelcontextprotocol/server-github
env:
GITHUB_TOKEN: YOUR_GITHUB_PAT
## Channels
- telegram
- slackWith this configuration, the agent can run a full SEO research workflow from a single Telegram message: search for competitors, analyze keyword patterns, draft a report, and commit it to a GitHub repository — all without any custom glue code.
# Trigger a research session via CLI
openclaw agent --agent seo-researcher \
--message "Research 'openclaw alternatives 2026'. Check top 5 Google results, analyze their content structure, and save a report to my seo-reports GitHub repo."
# From Telegram — just message the bot:
# "Research 'mcp server guide 2026' and compare the top 3 results"
# The agent will:
# 1. Use Brave Search MCP to query the web
# 2. Read competitor pages using Brave's content extraction
# 3. Analyze structure, word count, headings, and key topics
# 4. Draft a markdown report
# 5. Use GitHub MCP to commit the report to the repoOpenClaw ships with built-in skills for the most common tasks: web search, file management, shell commands, API requests, browser automation, and code execution. MCP servers extend this further. Here is when to use each:
The most powerful setup combines both. Built-in skills handle general tasks; MCP servers handle specific integrations. This agent uses built-in browser for general web scraping and MCP servers for structured service integrations:
## Skills
- browser: Navigate and extract content from web pages
- file: Read and write local files
- mcp:
server: npx -y @modelcontextprotocol/server-github
env:
GITHUB_TOKEN: YOUR_TOKEN
- mcp:
server: npx -y @modelcontextprotocol/server-brave-search
env:
BRAVE_API_KEY: YOUR_KEY
- mcp:
server: npx -y @modelcontextprotocol/server-slack
env:
SLACK_BOT_TOKEN: YOUR_TOKEN
SLACK_TEAM_ID: YOUR_IDThe MCP server ecosystem has grown faster than anyone expected. Here is where to find servers and how to evaluate them.
Before giving an MCP server access to sensitive credentials, check:
@modelcontextprotocol)?MCP servers are separate processes, which means there are a few more failure modes than built-in skills. Here are the most common issues and how to fix them.
Check that Node.js is installed on the machine running the gateway. Most MCP servers usenpx, which requires Node.js 18 or later.
# Check Node.js version
node --version # Should be v18.0.0 or higher
# Test the MCP server command directly
npx -y @modelcontextprotocol/server-github
# Check OpenClaw gateway logs
openclaw gateway logs --tail 50If the server starts but the agent cannot see its tools, the most common cause is a SOUL.md formatting error. YAML is indent-sensitive. Make sure the mcp: block is correctly indented under the - list item.
# Correct indentation
## Skills
- mcp:
server: npx -y @modelcontextprotocol/server-github
env:
GITHUB_TOKEN: YOUR_TOKEN
# Wrong — will not parse correctly
## Skills
- mcp:
server: npx -y @modelcontextprotocol/server-github
env:
GITHUB_TOKEN: YOUR_TOKENIf the server starts but returns authentication errors, verify your token is correct and has the right permissions. Tokens in SOUL.md are passed as environment variables to the MCP server process — check that they are not accidentally quoted or truncated.
# Verify your GitHub token works directly
curl -H "Authorization: Bearer YOUR_TOKEN" \
https://api.github.com/userMCP turns every OpenClaw agent from a general-purpose assistant into a specialist with real access to real systems. A GitHub agent can actually read your code. A database agent can actually query your data. A search agent can actually fetch current information from the web.
The pattern is always the same: find the MCP server for your tool, add it to SOUL.md, tell the agent what it can do, and start working. No custom integration code required.
If you want a starting point, the awesome-openclaw-agents repository has agent templates that already include MCP configurations for common setups. Fork one, swap in your credentials, and you have a production-ready agent in minutes.
Or browse the CrewClaw gallery for pre-configured agents with tested MCP integrations and deploy one directly to your machine.
Choose from 240+ pre-configured agents. Connect GitHub, Postgres, Brave Search, and more via MCP in minutes.
MCP (Model Context Protocol) is an open standard released by Anthropic in late 2024 that defines how AI agents connect to external tools and data sources. Instead of every framework building custom integrations for every service, you write one MCP server and any MCP-compatible agent can use it. OpenClaw's skills system supports MCP natively — you declare an MCP server in your SOUL.md and the gateway handles the rest.
No additional OpenClaw plugins are required. MCP servers are usually distributed as npm packages (npx) or Docker containers. You install Node.js on the machine running the gateway, declare the MCP server in your SOUL.md skills section, and OpenClaw manages the connection. Most popular MCP servers are one npx command away.
Yes. You can declare as many MCP servers as you need in a single SOUL.md. Each server exposes its own set of tools. The agent has access to all of them simultaneously and chooses the right tool based on the task. For example, a research agent can combine Brave Search MCP for web queries, GitHub MCP for code lookup, and PostgreSQL MCP for internal data — all in the same conversation.
Built-in skills are tightly integrated capabilities that ship with OpenClaw: file management, shell execution, browser automation, API requests. MCP servers are external programs that expose tools over a standard protocol. Built-in skills are faster to set up and have zero extra dependencies. MCP servers shine when you need deep integration with a specific service (GitHub, Postgres, Slack) or when you want to reuse the same tool across multiple AI frameworks without rewriting it.
The official MCP registry lives at modelcontextprotocol.io. The @modelcontextprotocol npm scope on npm contains Anthropic's reference implementations. The awesome-mcp-servers repository on GitHub has hundreds of community-built servers. Most major developer tools (GitHub, Linear, Notion, Stripe, Cloudflare) now publish official MCP servers.
MCP servers run as separate processes and communicate with the OpenClaw gateway over stdio or HTTP. They only have access to what you give them — environment variables you set in SOUL.md. A GitHub MCP server only has access to the GitHub token you provide; it cannot read your filesystem or other credentials. Always review what an MCP server does before giving it sensitive tokens, just as you would with any third-party dependency.
Skip the setup. Pick a template and deploy in 60 seconds.
Pick a role. Your AI employee starts working in 60 seconds. WhatsApp, Telegram, Slack & Discord. No setup required.
Get Your AI Employee