## What is MCP?

MCP (Model Context Protocol) is the open standard that lets your Clawdi agent talk to external tools and services. Think of it as a universal plug system — instead of building custom integrations for every tool, MCP provides a single protocol that any tool can implement.

With MCP, your agent can:

- Query databases
- Access APIs
- Read and write to external services
- Use specialized tools (calculators, code runners, search engines)

## Adding an MCP Server to Your Agent

### Step 1: Find an MCP Server

The MCP ecosystem is growing fast. Popular servers include:

- **Filesystem** — read/write files on the agent's workspace
- **GitHub** — manage repos, issues, and PRs
- **Slack** — read and send messages
- **PostgreSQL** — query databases
- **Brave Search** — web search with Brave's API

Browse the [MCP server registry](https://github.com/modelcontextprotocol/servers) for the full list.

### Step 2: Configure in Clawdi Dashboard

1. Open your agent's settings in the Clawdi dashboard
2. Navigate to **Skills → MCP Servers**
3. Click **Add MCP Server**
4. Enter the server configuration:

unknown node

1. Click **Save** — your agent will restart with the new server connected.

### Step 3: Test It

Send your agent a message that requires the new tool:

> "Check my GitHub notifications and summarize any PRs that need my review."

The agent will automatically discover the available MCP tools and use them to complete the task.

## Security Considerations

MCP servers run inside the same TEE as your agent, so they inherit the same privacy guarantees. However, keep in mind:

- **API keys** stored in MCP server env vars are encrypted at rest
- **Network access** is scoped to the server's needs
- **Tool calls** are logged and visible in your agent's activity log

## Building Custom MCP Servers

If you need a tool that doesn't exist yet, building an MCP server is straightforward. The protocol is simple JSON-RPC over stdio or HTTP.

Check the [MCP SDK documentation](https://modelcontextprotocol.io/docs) for quickstart guides in TypeScript and Python.

## What's Next

We're working on one-click MCP server installation directly from the Clawdi dashboard — no JSON config needed. Stay tuned.
